$ git config --global -e
[merge]
keepBackup = false;
tool = p4merge
[mergetool "p4merge"]
cmd = p4merge "$BASE" "$REMOTE" "$LOCAL" "$MERGED"
keepTemporaries = false
| " | |
| " While editing a Markdown document in Vim, preview it in the | |
| " default browser. | |
| " | |
| " Author: Nate Silva | |
| " | |
| " To install: Place markdown.vim in ~/.vim/ftplugin or | |
| " %USERPROFILE%\vimfiles\ftplugin. | |
| " | |
| " To use: While editing a Markdown file, press ',p' (comma p) |
| #!/bin/bash | |
| # | |
| # A kind of an alias support for the Perforce p4. | |
| # | |
| # This one aliases "interchanges" and "changes" commands to be printed out nicely in format: | |
| # | |
| # Change <change_no> on <date> by <user>@<workspace> [<status>] | |
| # <first line of change description> | |
| # -- | |
| # Change <change_no> on <date> by <user>@<workspace> [<status>] |
| #!/bin/bash | |
| # | |
| # A kind of an alias support for the Perforce p4. | |
| # | |
| # This one aliases "interchanges" and "changes" commands to be printed out nicely in format: | |
| # | |
| # Change <change_no> on <date> by <user>@<workspace> [<status>] | |
| # <first line of change description> | |
| # -- | |
| # Change <change_no> on <date> by <user>@<workspace> [<status>] |
| % Many a time we have HTML articles published across multiple pages. | |
| % And sometimes we want to print all those pages as one PDF. | |
| % Here is how to do it: | |
| % - Print into PDF from the browser into files like p01.pdf, p02.pdf etc | |
| % - Use LaTeX to assemble these into one PDF. | |
| % | |
| % Here is the example. The \includepdf command supports scaling too, | |
| % and I'm sure some other interesting commands as well. | |
| % | |
| % [copylifted from: http://yusung.blogspot.com/2007/02/combine-several-pdf-files-using-latex.html] |
| open System | |
| open System.Text | |
| /// Join a sequence of strings using a delimiter. | |
| /// Equivalent to String.Join() but without arrays. | |
| let join (items : seq<string>) (delim : string) = | |
| // Collect the result in the string builder buffer | |
| // The end-sequence will be "item1,delim,...itemN,delim" | |
| let buff = | |
| Seq.fold |
| /* Prelude.cs : What happens when a haskell programmer learns C#. | |
| Copyright (c) 2011 Clark Gaebel | |
| Permission is hereby granted, free of charge, to any person obtaining | |
| a copy of this software and associated documentation files (the "Software"), | |
| to deal in the Software without restriction, including without limitation | |
| the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
| and/or sell copies of the Software, and to permit persons to whom the | |
| Software is furnished to do so, subject to the following conditions: |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| module LogAgent = | |
| // Log writer implementation using F# asynchronous agents | |
| // Written as an excersise | |
| open System | |
| open System.IO | |
| type private Message = |
| internal static class FooBar | |
| { | |
| private static void DoStuff() | |
| { | |
| } | |
| private static class SelfTests | |
| { | |
| [TestFixture] |