Cherry pick multiple commits from a remote or upstream branch into your local branch.
Saw this from a comment on an answer on Stack Overflow
git fetch upstream
git cherry-pick A^..B| git config --global merge.tool p4merge | |
| git config --global mergetool.p4merge.cmd 'p4merge.exe \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"' | |
| git config --global diff.tool p4merge | |
| git config --global difftool.p4merge.cmd 'p4merge.exe \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"' |
| #r "System.Xml.dll" | |
| #r "System.Runtime.Serialization.dll" | |
| open Microsoft.FSharp.Reflection | |
| open System.IO | |
| open System.Reflection | |
| open System.Runtime.Serialization | |
| open System.Runtime.Serialization.Formatters.Binary | |
| open System.Runtime.Serialization.Json | |
| open System.Text |
| //This script generates | |
| //a file named __project.fsx, for each proejct which can be #load "__project.fsx" in script intending to use the same dependency graph as the code in VS | |
| //a file named __solmerged.fsx, at the solution root which can be #load "__solmerged.fsx" in script intending to use the same dependency graph as the code in VS | |
| //In both cases, this enforce that a script compiling in VS should work from within FSI | |
| #if INTERACTIVE | |
| #r "System.Xml" | |
| #r "System.Xml.Linq" | |
| #endif |
Cherry pick multiple commits from a remote or upstream branch into your local branch.
Saw this from a comment on an answer on Stack Overflow
git fetch upstream
git cherry-pick A^..B| (* | |
| This script counts lines in C# and F# projects. | |
| It is used to compare the "useful lines" in F# projects with those in C# projects. | |
| Copied from Kit Eason's code at http://www.fssnip.net/h4 | |
| REQUIRES: | |
| * FSharp.Charting for charts | |
| via NuGet |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| open System | |
| open System.IO | |
| let find_files dir = Directory.GetFiles( dir, "*.fs?", SearchOption.AllDirectories ) | |
| let not_start (s:string) p = not <| s.StartsWith p | |
| let has_type (s:string) = if s.Contains @"type" then 1 else 0 | |
| let has_module (s:string) = if s.Contains @"module" then 1 else 0 | |
| let has_binding (s:string) = if s.Contains @"let" || | |
| s.Contains @"member" then 1 else 0 |
| #r "PresentationCore" | |
| #r "PresentationFramework" | |
| #r "WindowsBase" | |
| #r "System.Xaml" | |
| #I "../../packages/FSharp.Control.Reactive.2.3.1/lib/net40/" | |
| #I "../../packages/Rx-Linq.2.2.5/lib/net45" | |
| #I "../../packages/Rx-Core.2.2.5/lib/net45" | |
| #I "../../packages/Rx-Interfaces.2.2.5/lib/net45" | |
| #I "../../packages/Rx-PlatformServices.2.2.5/lib/net45" | |
| #I "../../packages/Rx-Providers.2.2.5/lib/net45" |
| Capability Red - Requirements at Scale by Liz Keogh | |
| http://www.ndcvideos.com/#/app/video/2111 | |
| ---- | |
| Beyond Rectangles in Web Design - CSS Shapes and CSS Masking by Razvan Caliman | |
| http://www.ndcvideos.com/#/app/video/2121 | |
| ---- | |
| Coding Culture by Sven Peters | |
| http://www.ndcvideos.com/#/app/video/2131 | |
| ---- | |
| The Ultimate Logging Architecture - You KNOW You Want It by Michele Leroux Bustamante |