| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $snapins = Get-PSSnapin -Registered | |
| $snapins | Add-PSSnapin | |
| Get-Module -ListAvailable | Import-Module | |
| Get-PSSnapin | Format-Table -autosize PSVersion, Name | |
| Get-Module | Format-Table -autosize ModuleType, Name | |
| function ff ([string] $glob) { get-childitem -recurse -include $glob } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class TestHelpers | |
| { | |
| public static void ShouldEqualWithDiff(this string actualValue, string expectedValue) | |
| { | |
| ShouldEqualWithDiff(actualValue, expectedValue, DiffStyle.Full, Console.Out); | |
| } | |
| public static void ShouldEqualWithDiff(this string actualValue, string expectedValue, DiffStyle diffStyle) | |
| { | |
| ShouldEqualWithDiff(actualValue, expectedValue, diffStyle, Console.Out); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class WebApiConfig | |
| { | |
| public static void Register(HttpConfiguration config) | |
| { | |
| config.Routes.MapHttpRoute( | |
| name: "DefaultApi", | |
| routeTemplate: "api/{controller}/{id}", | |
| defaults: new { id = RouteParameter.Optional } | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Bump-Version | |
| { | |
| param([string]$part = $(throw "Part is a required parameter.")) | |
| $version = Get-AssemblyInfoVersion -Directory ..\Source -GlobalAssemblyInfo $true | |
| $bumpedVersion = Clone-Object -Object $version | |
| switch -wildcard ($part) | |
| { | |
| "ma*" { $bumpedVersion.Major = Bump-NumericVersion -Current $version.Major } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SetAssemblyVersion.ps1 | |
| # | |
| # http://www.luisrocha.net/2009/11/setting-assembly-version-with-windows.html | |
| # http://blogs.msdn.com/b/dotnetinterop/archive/2008/04/21/powershell-script-to-batch-update-assemblyinfo-cs-with-new-version.aspx | |
| # http://jake.murzy.com/post/3099699807/how-to-update-assembly-version-numbers-with-teamcity | |
| # https://github.com/ferventcoder/this.Log/blob/master/build.ps1#L6-L19 | |
| Param( | |
| [string]$path=$pwd | |
| ) |
OlderNewer