From 263470970c45213385ce349e6e80979400af2262 Mon Sep 17 00:00:00 2001 From: Tim Rayburn Date: Thu, 12 Sep 2019 08:48:01 -0500 Subject: [PATCH] update doco --- docs/.gitignore | 5 + docs/Gemfile | 26 ++ docs/Gemfile.lock | 255 ++++++++++++++++++ docs/_posts/2011-01-02-Numbers-Kihon.html | 40 --- docs/_posts/2011-01-02-Numbers-Kihon.md | 40 +++ docs/_posts/2011-01-19-String-Kihon.md | 75 ++++++ .../2011-01-19-StringKihon-Solutions.html | 77 ------ docs/_posts/2011-01-20-Console-Kihon.html | 26 -- docs/_posts/2011-01-20-Console-Kihon.md | 26 ++ .../2011-01-22-Control-Structures-Kihon.html | 43 --- .../2011-01-22-Control-Structures-Kihon.md | 43 +++ docs/_posts/2011-02-26-Sql-Kihon.md | 35 +++ .../_posts/2011-02-26-SqlKihon-Solutions.html | 35 --- ...olutions.html => 2011-03-26-Linq-Kihon.md} | 6 +- docs/index.md | 4 +- 15 files changed, 511 insertions(+), 225 deletions(-) create mode 100644 docs/.gitignore create mode 100644 docs/Gemfile create mode 100644 docs/Gemfile.lock delete mode 100644 docs/_posts/2011-01-02-Numbers-Kihon.html create mode 100644 docs/_posts/2011-01-02-Numbers-Kihon.md create mode 100644 docs/_posts/2011-01-19-String-Kihon.md delete mode 100644 docs/_posts/2011-01-19-StringKihon-Solutions.html delete mode 100644 docs/_posts/2011-01-20-Console-Kihon.html create mode 100644 docs/_posts/2011-01-20-Console-Kihon.md delete mode 100644 docs/_posts/2011-01-22-Control-Structures-Kihon.html create mode 100644 docs/_posts/2011-01-22-Control-Structures-Kihon.md create mode 100644 docs/_posts/2011-02-26-Sql-Kihon.md delete mode 100644 docs/_posts/2011-02-26-SqlKihon-Solutions.html rename docs/_posts/{2011-03-26-LinqKihon-Solutions.html => 2011-03-26-Linq-Kihon.md} (92%) diff --git a/docs/.gitignore b/docs/.gitignore new file mode 100644 index 0000000..f40fbd8 --- /dev/null +++ b/docs/.gitignore @@ -0,0 +1,5 @@ +_site +.sass-cache +.jekyll-cache +.jekyll-metadata +vendor diff --git a/docs/Gemfile b/docs/Gemfile new file mode 100644 index 0000000..a80322b --- /dev/null +++ b/docs/Gemfile @@ -0,0 +1,26 @@ +source "https://rubygems.org" +# Hello! This is where you manage which Jekyll version is used to run. +# When you want to use a different version, change it below, save the +# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: +# +# bundle exec jekyll serve +# +# This will help ensure the proper Jekyll version is running. +# Happy Jekylling! +# If you want to use GitHub Pages, remove the "gem "jekyll"" above and +# uncomment the line below. To upgrade, run `bundle update github-pages`. +gem "github-pages", group: :jekyll_plugins +# If you have any plugins, put them here! +group :jekyll_plugins do + gem "jekyll-feed"#, "~> 0.12" +end + +# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem +# and associated library. +install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do + gem "tzinfo", "~> 1.2" + gem "tzinfo-data" +end + +# Performance-booster for watching directories on Windows +gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform? diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock new file mode 100644 index 0000000..7935515 --- /dev/null +++ b/docs/Gemfile.lock @@ -0,0 +1,255 @@ +GEM + remote: https://rubygems.org/ + specs: + activesupport (4.2.11.1) + i18n (~> 0.7) + minitest (~> 5.1) + thread_safe (~> 0.3, >= 0.3.4) + tzinfo (~> 1.1) + addressable (2.7.0) + public_suffix (>= 2.0.2, < 5.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.11.1) + colorator (1.1.0) + commonmarker (0.17.13) + ruby-enum (~> 0.5) + concurrent-ruby (1.1.5) + dnsruby (1.61.3) + addressable (~> 2.5) + em-websocket (0.5.1) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.6.0) + ethon (0.12.0) + ffi (>= 1.3.0) + eventmachine (1.2.7-x64-mingw32) + execjs (2.7.0) + faraday (0.15.4) + multipart-post (>= 1.2, < 3) + ffi (1.11.1-x64-mingw32) + forwardable-extended (2.6.0) + gemoji (3.0.1) + github-pages (198) + activesupport (= 4.2.11.1) + github-pages-health-check (= 1.16.1) + jekyll (= 3.8.5) + jekyll-avatar (= 0.6.0) + jekyll-coffeescript (= 1.1.1) + jekyll-commonmark-ghpages (= 0.1.5) + jekyll-default-layout (= 0.1.4) + jekyll-feed (= 0.11.0) + jekyll-gist (= 1.5.0) + jekyll-github-metadata (= 2.12.1) + jekyll-mentions (= 1.4.1) + jekyll-optional-front-matter (= 0.3.0) + jekyll-paginate (= 1.1.0) + jekyll-readme-index (= 0.2.0) + jekyll-redirect-from (= 0.14.0) + jekyll-relative-links (= 0.6.0) + jekyll-remote-theme (= 0.3.1) + jekyll-sass-converter (= 1.5.2) + jekyll-seo-tag (= 2.5.0) + jekyll-sitemap (= 1.2.0) + jekyll-swiss (= 0.4.0) + jekyll-theme-architect (= 0.1.1) + jekyll-theme-cayman (= 0.1.1) + jekyll-theme-dinky (= 0.1.1) + jekyll-theme-hacker (= 0.1.1) + jekyll-theme-leap-day (= 0.1.1) + jekyll-theme-merlot (= 0.1.1) + jekyll-theme-midnight (= 0.1.1) + jekyll-theme-minimal (= 0.1.1) + jekyll-theme-modernist (= 0.1.1) + jekyll-theme-primer (= 0.5.3) + jekyll-theme-slate (= 0.1.1) + jekyll-theme-tactile (= 0.1.1) + jekyll-theme-time-machine (= 0.1.1) + jekyll-titles-from-headings (= 0.5.1) + jemoji (= 0.10.2) + kramdown (= 1.17.0) + liquid (= 4.0.0) + listen (= 3.1.5) + mercenary (~> 0.3) + minima (= 2.5.0) + nokogiri (>= 1.8.5, < 2.0) + rouge (= 2.2.1) + terminal-table (~> 1.4) + github-pages-health-check (1.16.1) + addressable (~> 2.3) + dnsruby (~> 1.60) + octokit (~> 4.0) + public_suffix (~> 3.0) + typhoeus (~> 1.3) + html-pipeline (2.12.0) + activesupport (>= 2) + nokogiri (>= 1.4) + http_parser.rb (0.6.0) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + jekyll (3.8.5) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (~> 0.7) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 2.0) + kramdown (~> 1.14) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (>= 1.7, < 4) + safe_yaml (~> 1.0) + jekyll-avatar (0.6.0) + jekyll (~> 3.0) + jekyll-coffeescript (1.1.1) + coffee-script (~> 2.2) + coffee-script-source (~> 1.11.1) + jekyll-commonmark (1.3.1) + commonmarker (~> 0.14) + jekyll (>= 3.7, < 5.0) + jekyll-commonmark-ghpages (0.1.5) + commonmarker (~> 0.17.6) + jekyll-commonmark (~> 1) + rouge (~> 2) + jekyll-default-layout (0.1.4) + jekyll (~> 3.0) + jekyll-feed (0.11.0) + jekyll (~> 3.3) + jekyll-gist (1.5.0) + octokit (~> 4.2) + jekyll-github-metadata (2.12.1) + jekyll (~> 3.4) + octokit (~> 4.0, != 4.4.0) + jekyll-mentions (1.4.1) + html-pipeline (~> 2.3) + jekyll (~> 3.0) + jekyll-optional-front-matter (0.3.0) + jekyll (~> 3.0) + jekyll-paginate (1.1.0) + jekyll-readme-index (0.2.0) + jekyll (~> 3.0) + jekyll-redirect-from (0.14.0) + jekyll (~> 3.3) + jekyll-relative-links (0.6.0) + jekyll (~> 3.3) + jekyll-remote-theme (0.3.1) + jekyll (~> 3.5) + rubyzip (>= 1.2.1, < 3.0) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) + jekyll-seo-tag (2.5.0) + jekyll (~> 3.3) + jekyll-sitemap (1.2.0) + jekyll (~> 3.3) + jekyll-swiss (0.4.0) + jekyll-theme-architect (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-cayman (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-dinky (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-hacker (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-leap-day (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-merlot (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-midnight (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-minimal (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-modernist (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-primer (0.5.3) + jekyll (~> 3.5) + jekyll-github-metadata (~> 2.9) + jekyll-seo-tag (~> 2.0) + jekyll-theme-slate (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-tactile (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-time-machine (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-titles-from-headings (0.5.1) + jekyll (~> 3.3) + jekyll-watch (2.2.1) + listen (~> 3.0) + jemoji (0.10.2) + gemoji (~> 3.0) + html-pipeline (~> 2.2) + jekyll (~> 3.0) + kramdown (1.17.0) + liquid (4.0.0) + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + mercenary (0.3.6) + mini_portile2 (2.4.0) + minima (2.5.0) + jekyll (~> 3.5) + jekyll-feed (~> 0.9) + jekyll-seo-tag (~> 2.1) + minitest (5.11.3) + multipart-post (2.1.1) + nokogiri (1.10.4-x64-mingw32) + mini_portile2 (~> 2.4.0) + octokit (4.14.0) + sawyer (~> 0.8.0, >= 0.5.3) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + public_suffix (3.1.1) + rb-fsevent (0.10.3) + rb-inotify (0.10.0) + ffi (~> 1.0) + rouge (2.2.1) + ruby-enum (0.7.2) + i18n + ruby_dep (1.5.0) + rubyzip (1.2.4) + safe_yaml (1.0.5) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sawyer (0.8.2) + addressable (>= 2.3.5) + faraday (> 0.8, < 2.0) + terminal-table (1.8.0) + unicode-display_width (~> 1.1, >= 1.1.1) + thread_safe (0.3.6) + typhoeus (1.3.1) + ethon (>= 0.9.0) + tzinfo (1.2.5) + thread_safe (~> 0.1) + tzinfo-data (1.2019.2) + tzinfo (>= 1.0.0) + unicode-display_width (1.6.0) + wdm (0.1.1) + +PLATFORMS + x64-mingw32 + +DEPENDENCIES + github-pages + jekyll-feed + tzinfo (~> 1.2) + tzinfo-data + wdm (~> 0.1.1) + +BUNDLED WITH + 2.0.2 diff --git a/docs/_posts/2011-01-02-Numbers-Kihon.html b/docs/_posts/2011-01-02-Numbers-Kihon.html deleted file mode 100644 index 34fd022..0000000 --- a/docs/_posts/2011-01-02-Numbers-Kihon.html +++ /dev/null @@ -1,40 +0,0 @@ ---- -layout: default -title: Solutions - Numbers Kihon ---- -
-        protected override int Return_The_Maximum_Value_Of_Int32()
-        {
-            return int.MaxValue;
-        }
-
-        protected override int Return_The_Minimum_Value_Of_Int32()
-        {
-            return int.MinValue;
-        }
-
-        protected override int Return_The_Remainder_Of_a_Divided_By_b(int a, int b)
-        {
-            return a % b;
-        }
-
-        protected override double Return_The_Maximum_Value_Of_Double()
-        {
-            return double.MaxValue;
-        }
-
-        protected override double Return_The_Minimum_Value_Of_Double()
-        {
-            return double.MinValue;
-        }
-
-        protected override bool Return_True_If_a_Is_Not_A_Number(double a)
-        {
-            return double.IsNaN(a);
-        }
-
-        protected override bool Return_True_If_a_Is_An_Infinity(double a)
-        {
-            return double.IsInfinity(a);
-        }
-
\ No newline at end of file diff --git a/docs/_posts/2011-01-02-Numbers-Kihon.md b/docs/_posts/2011-01-02-Numbers-Kihon.md new file mode 100644 index 0000000..2375bd5 --- /dev/null +++ b/docs/_posts/2011-01-02-Numbers-Kihon.md @@ -0,0 +1,40 @@ +--- +layout: default +title: Numbers Kihon +--- +``` +protected override int Return_The_Maximum_Value_Of_Int32() +{ + return int.MaxValue; +} + +protected override int Return_The_Minimum_Value_Of_Int32() +{ + return int.MinValue; +} + +protected override int Return_The_Remainder_Of_a_Divided_By_b(int a, int b) +{ + return a % b; +} + +protected override double Return_The_Maximum_Value_Of_Double() +{ + return double.MaxValue; +} + +protected override double Return_The_Minimum_Value_Of_Double() +{ + return double.MinValue; +} + +protected override bool Return_True_If_a_Is_Not_A_Number(double a) +{ + return double.IsNaN(a); +} + +protected override bool Return_True_If_a_Is_An_Infinity(double a) +{ + return double.IsInfinity(a); +} +``` diff --git a/docs/_posts/2011-01-19-String-Kihon.md b/docs/_posts/2011-01-19-String-Kihon.md new file mode 100644 index 0000000..eb96ef8 --- /dev/null +++ b/docs/_posts/2011-01-19-String-Kihon.md @@ -0,0 +1,75 @@ +--- +layout: default +title: String Kihon +--- +``` +protected override string Convert_To_Uppercase(string data) +{ + return data.ToUpper(); +} + +protected override string Convert_To_Lowercase(string data) +{ + return data.ToLower(); +} + +protected override string Combine_Parts_Of_A_Name(string firstName, string middleName, string lastName) +{ + return string.Format("{0} {1} {2}",firstName,middleName,lastName); +} + +protected override string Combine_Two_Strings(string a, string b) +{ + return a + b; +} + +protected override int Determine_The_Length_Of_A_String(string data) +{ + return data.Length; +} + +protected override string Remove_All_Leading_Whitespace(string data) +{ + return data.TrimStart(); +} + +protected override string Remove_All_Trailing_Whitespace(string data) +{ + return data.TrimEnd(); +} + +protected override string[] Split_A_String_Into_An_Array(string input, char divider) +{ + return input.Split(divider); +} + +protected override string Join_An_Array_Into_A_String(string[] input, string divider) +{ + return string.Join(divider, input); +} + +protected override bool Return_True_If_a_Contains_b(string a, string b) +{ + return a.Contains(b); +} + +protected override int Determine_The_Position_Of_a_In_b(string a, string b) +{ + return b.IndexOf(a); +} + +protected override bool Return_True_If_a_Starts_With_b(string a, string b) +{ + return a.StartsWith(b); +} + +protected override bool Return_True_Is_a_Ends_With_b(string a, string b) +{ + return a.EndsWith(b); +} + +protected override string Return_The_Fourth_Through_Seventh_Characters_Of_Input(string input) +{ + return input.Substring(3,4); +} +``` diff --git a/docs/_posts/2011-01-19-StringKihon-Solutions.html b/docs/_posts/2011-01-19-StringKihon-Solutions.html deleted file mode 100644 index 8f94b6b..0000000 --- a/docs/_posts/2011-01-19-StringKihon-Solutions.html +++ /dev/null @@ -1,77 +0,0 @@ ---- -layout: default -title: Solutions - String Kihon ---- -

StringKihon Solutions

- -
-        protected override string Convert_To_Uppercase(string data)
-        {
-            return data.ToUpper();
-        }
-
-        protected override string Convert_To_Lowercase(string data)
-        {
-            return data.ToLower();
-        }
-
-        protected override string Combine_Parts_Of_A_Name(string firstName, string middleName, string lastName)
-        {
-            return string.Format("{0} {1} {2}",firstName,middleName,lastName);
-        }
-
-        protected override string Combine_Two_Strings(string a, string b)
-        {
-            return a + b;
-        }
-
-        protected override int Determine_The_Length_Of_A_String(string data)
-        {
-            return data.Length;
-        }
-
-        protected override string Remove_All_Leading_Whitespace(string data)
-        {
-            return data.TrimStart();
-        }
-
-        protected override string Remove_All_Trailing_Whitespace(string data)
-        {
-            return data.TrimEnd();
-        }
-
-        protected override string[] Split_A_String_Into_An_Array(string input, char divider)
-        {
-            return input.Split(divider);
-        }
-
-        protected override string Join_An_Array_Into_A_String(string[] input, string divider)
-        {
-            return string.Join(divider, input);
-        }
-
-        protected override bool Return_True_If_a_Contains_b(string a, string b)
-        {
-            return a.Contains(b);
-        }
-
-        protected override int Determine_The_Position_Of_a_In_b(string a, string b)
-        {
-            return b.IndexOf(a);
-        }
-
-        protected override bool Return_True_If_a_Starts_With_b(string a, string b)
-        {
-            return a.StartsWith(b);
-        }
-
-        protected override bool Return_True_Is_a_Ends_With_b(string a, string b)
-        {
-            return a.EndsWith(b);
-        }
-
-        protected override string Return_The_Fourth_Through_Seventh_Characters_Of_Input(string input)
-        {
-            return input.Substring(3,4);
-        }
-
\ No newline at end of file diff --git a/docs/_posts/2011-01-20-Console-Kihon.html b/docs/_posts/2011-01-20-Console-Kihon.html deleted file mode 100644 index b7b1114..0000000 --- a/docs/_posts/2011-01-20-Console-Kihon.html +++ /dev/null @@ -1,26 +0,0 @@ ---- -layout: default -title: Solutions - Console Kihon ---- -
-        protected override void Write_FooBar_To_The_Console(IConsoleWrapper console)
-        {
-            console.Write("FooBar");
-        }
-
-        protected override void WriteLine_FooBar_To_The_Console(IConsoleWrapper console)
-        {
-            console.WriteLine("FooBar");
-        }
-
-        protected override void Write_Foo_In_Blue_To_The_Console(IConsoleWrapper console)
-        {
-            console.ForegroundColor = ConsoleColor.Blue;
-            console.Write("Foo");
-        }
-
-        protected override object Read_Line_From_Console_And_Return_Value(IConsoleWrapper console)
-        {
-            return console.ReadLine();
-        }
-
\ No newline at end of file diff --git a/docs/_posts/2011-01-20-Console-Kihon.md b/docs/_posts/2011-01-20-Console-Kihon.md new file mode 100644 index 0000000..d0ba8ce --- /dev/null +++ b/docs/_posts/2011-01-20-Console-Kihon.md @@ -0,0 +1,26 @@ +--- +layout: default +title: Console Kihon +--- +``` +protected override void Write_FooBar_To_The_Console(IConsoleWrapper console) +{ + console.Write("FooBar"); +} + +protected override void WriteLine_FooBar_To_The_Console(IConsoleWrapper console) +{ + console.WriteLine("FooBar"); +} + +protected override void Write_Foo_In_Blue_To_The_Console(IConsoleWrapper console) +{ + console.ForegroundColor = ConsoleColor.Blue; + console.Write("Foo"); +} + +protected override object Read_Line_From_Console_And_Return_Value(IConsoleWrapper console) +{ + return console.ReadLine(); +} +``` diff --git a/docs/_posts/2011-01-22-Control-Structures-Kihon.html b/docs/_posts/2011-01-22-Control-Structures-Kihon.html deleted file mode 100644 index 8934af8..0000000 --- a/docs/_posts/2011-01-22-Control-Structures-Kihon.html +++ /dev/null @@ -1,43 +0,0 @@ ---- -layout: default -title: Solutions - Control Structures Kihon ---- -
-        protected override void Call_Hit_On_a_If_val_Is_True_Else_Call_Hit_On_b(bool val, ITarget a, ITarget b)
-        {
-            if (val) a.Hit();
-            else b.Hit();
-        }
-
-        protected override void Call_Hit_On_a_Once_For_Each_Member_Of_list(ITarget a, List list)
-        {
-            foreach (string item in list)
-            {
-                a.Hit();
-            }
-        }
-
-        protected override void Call_Hit_On_a_While_a_IsValid_Is_True(ITarget a)
-        {
-            while (a.IsValid)
-            {
-                a.Hit();
-            }
-        }
-
-        protected override void n_Times_Call_Hit_On_a(int n, ITarget a)
-        {
-            for (int i = 0; i < n; i++)
-            {
-                a.Hit();
-            }
-        }
-
-        protected override void Call_Hit_On_a_Once_And_Loop_Until_IsValid_Is_False(ITarget a)
-        {
-            do
-            {
-                a.Hit();
-            } while (a.IsValid);
-        }
-
\ No newline at end of file diff --git a/docs/_posts/2011-01-22-Control-Structures-Kihon.md b/docs/_posts/2011-01-22-Control-Structures-Kihon.md new file mode 100644 index 0000000..e20487b --- /dev/null +++ b/docs/_posts/2011-01-22-Control-Structures-Kihon.md @@ -0,0 +1,43 @@ +--- +layout: default +title: Control Structures Kihon +--- +``` +protected override void Call_Hit_On_a_If_val_Is_True_Else_Call_Hit_On_b(bool val, ITarget a, ITarget b) +{ + if (val) a.Hit(); + else b.Hit(); +} + +protected override void Call_Hit_On_a_Once_For_Each_Member_Of_list(ITarget a, List list) +{ + foreach (string item in list) + { + a.Hit(); + } +} + +protected override void Call_Hit_On_a_While_a_IsValid_Is_True(ITarget a) +{ + while (a.IsValid) + { + a.Hit(); + } +} + +protected override void n_Times_Call_Hit_On_a(int n, ITarget a) +{ + for (int i = 0; i < n; i++) + { + a.Hit(); + } +} + +protected override void Call_Hit_On_a_Once_And_Loop_Until_IsValid_Is_False(ITarget a) +{ + do + { + a.Hit(); + } while (a.IsValid); +} +``` diff --git a/docs/_posts/2011-02-26-Sql-Kihon.md b/docs/_posts/2011-02-26-Sql-Kihon.md new file mode 100644 index 0000000..d1851a0 --- /dev/null +++ b/docs/_posts/2011-02-26-Sql-Kihon.md @@ -0,0 +1,35 @@ +--- +layout: default +title: SQL Kihon +--- +``` +protected override string Select_All_Fields_And_Rows_From_Person() +{ + return "SELECT * FROM PERSON"; +} + +protected override string Select_All_Fields_From_Person_Joined_To_Address() +{ + return "SELECT * FROM PERSON JOIN ADDRESS ON PERSON.PERSONID = ADDRESS.PERSONID"; +} + +protected override string Select_FirstName_From_Person_Where_LastName_Equals_Rayburn() +{ + return "SELECT FIRSTNAME FROM PERSON WHERE LASTNAME='Rayburn'"; +} + +protected override string Select_All_Fields_From_Person_Left_Outer_Joined_To_Address() +{ + return "SELECT * FROM PERSON LEFT OUTER JOIN ADDRESS ON PERSON.PERSONID = ADDRESS.PERSONID"; +} + +protected override string Insert_PersonId_4_Named_Mike_Johnson_Age_5_To_Person() +{ + return "INSERT INTO PERSON VALUES (4,'Mike','Johnson',5)"; +} + +protected override string Update_All_LastNames_Rayburn_To_Johnson_In_Person() +{ + return "UPDATE PERSON SET LASTNAME='Johnson' WHERE LASTNAME='Rayburn'"; +} +``` diff --git a/docs/_posts/2011-02-26-SqlKihon-Solutions.html b/docs/_posts/2011-02-26-SqlKihon-Solutions.html deleted file mode 100644 index 0a0e757..0000000 --- a/docs/_posts/2011-02-26-SqlKihon-Solutions.html +++ /dev/null @@ -1,35 +0,0 @@ ---- -layout: default -title: Solutions - SQL Kihon ---- -
-        protected override string Select_All_Fields_And_Rows_From_Person()
-        {
-            return "SELECT * FROM PERSON";
-        }
-
-        protected override string Select_All_Fields_From_Person_Joined_To_Address()
-        {
-            return "SELECT * FROM PERSON JOIN ADDRESS ON PERSON.PERSONID = ADDRESS.PERSONID";
-        }
-
-        protected override string Select_FirstName_From_Person_Where_LastName_Equals_Rayburn()
-        {
-            return "SELECT FIRSTNAME FROM PERSON WHERE LASTNAME='Rayburn'";
-        }
-
-        protected override string Select_All_Fields_From_Person_Left_Outer_Joined_To_Address()
-        {
-            return "SELECT * FROM PERSON LEFT OUTER JOIN ADDRESS ON PERSON.PERSONID = ADDRESS.PERSONID";
-        }
-
-        protected override string Insert_PersonId_4_Named_Mike_Johnson_Age_5_To_Person()
-        {
-            return "INSERT INTO PERSON VALUES (4,'Mike','Johnson',5)";
-        }
-
-        protected override string Update_All_LastNames_Rayburn_To_Johnson_In_Person()
-        {
-            return "UPDATE PERSON SET LASTNAME='Johnson' WHERE LASTNAME='Rayburn'";
-        }
-
diff --git a/docs/_posts/2011-03-26-LinqKihon-Solutions.html b/docs/_posts/2011-03-26-Linq-Kihon.md similarity index 92% rename from docs/_posts/2011-03-26-LinqKihon-Solutions.html rename to docs/_posts/2011-03-26-Linq-Kihon.md index c010dfc..d9526a8 100644 --- a/docs/_posts/2011-03-26-LinqKihon-Solutions.html +++ b/docs/_posts/2011-03-26-Linq-Kihon.md @@ -1,8 +1,8 @@ --- layout: default -title: Solutions - Linq Kihon +title: Linq Kihon --- -
+```
          protected override IEnumerable<int> Select_the_Something_property_from_list(List<Product> list)
         {
             return list.Select(x => x.Something);
@@ -22,4 +22,4 @@
         {
             return list.Where(x => x.Something == 2);
         }
-
+``` diff --git a/docs/index.md b/docs/index.md index 82a3fd3..f3205c9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,7 +2,8 @@ title: Squire --- -## Solutions 1 + +## Solutions +