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
.animated-class.ng-hide-add.ng-hide-add-active, | |
.animated-class.ng-hide-remove.ng-hide-remove-active { | |
transition: height 1s linear; | |
-webkit-transition: height 1s linear; | |
-moz-transition: height 1s linear; | |
-o-transition: height 1s linear; | |
overflow: hidden; | |
} | |
.animated-class.ng-hide { |
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
/home/<user>/.nvm/v0.8.28/lib/node_modules/npm/bin/node-gyp-bin/node-gyp rebuild | |
./node_modules/mocha/bin/mocha ./test --reporter spec |
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
# check MTU size with ping | |
ping 196.30.66.46 -t -f -l 1472 | |
# view adapters | |
netsh interface ipv4 show subinterfaces | |
# set MTU size | |
netsh interface ipv4 set subinterface "Ethernet" mtu=1492 store=persistent |
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
# default: 0.6875 | |
# default (new): 1.5 | |
# read the current mouse accel | |
defaults read -g com.apple.mouse.scaling | |
# no mouse acceleration | |
defaults write -g com.apple.mouse.scaling -1 |
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
############################################################################## | |
## | |
## Invoke-CmdScript | |
## | |
## From Windows PowerShell Cookbook (O'Reilly) | |
## by Lee Holmes (http://www.leeholmes.com/guide) | |
## | |
############################################################################## | |
<# |
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
Set-StrictMode -Version 3 | |
# create temp file to store batch local env | |
$tempFile = [IO.Path]::GetTempFileName() | |
Invoke-Command -ScriptBlock { cmd /c "nvmw.bat $args && set > `"$tempFile`"" } -ArgumentList $args -NoNewScope | |
# find path variable and set path | |
Get-Content $tempFile | Foreach-Object { | |
if($_ -match "^(PATH)=(.*)$") |
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
$env:Path.split(";") |
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
# http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.vcprojectengine.compileasoptions.aspx | |
# 0 - compileAsDefault | |
# 1 - compileAsC | |
# 2 - compileAsCPlusPlus | |
['OS=="win"', { | |
'msvs_settings': { | |
'VCCLCompilerTool': { | |
'CompileAs': '2' | |
} |
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
valgrind --leak-check=full node --expose_gc script.js |
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
## add color to terminal output | |
git config --global color.ui true |