Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
/* | |
* a way to save time when you want to output a bunch of class names with corresponding filenames | |
*/ | |
$icons: sprite-map("icons/*.png"); | |
.select-custom--icons{ | |
background-image: sprite-url($icons); | |
background-color:white; | |
background-repeat: no-repeat; | |
} | |
$languages : (en, zh-cn, ja, it, pt, es, de); |
{ | |
"requireCurlyBraces": [ "if", "else", "for", "while", "do" ], | |
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"], | |
"requireSpacesInFunctionExpression": { | |
"beforeOpeningCurlyBrace": true | |
}, | |
"disallowSpacesInFunctionExpression": { | |
"beforeOpeningRoundBrace": true | |
}, | |
"requireSpacesInFunctionDeclaration": {"beforeOpeningCurlyBrace": true}, |
NCSEND_PORT=6666 | |
ncsend() { | |
local DEST_HOST="${1-smair}" | |
pbpaste | nc "${DEST_HOST}" "${NCSEND_PORT}" | |
} | |
ncreceive() { | |
while true | |
do | |
nc -l "${NCSEND_PORT}" | tee /dev/tty | pbcopy |
{ | |
// -------------------------------------------------------------------- | |
// JSHint Configuration, Strict Edition | |
// -------------------------------------------------------------------- | |
// | |
// This is a options template for [JSHint][1], using [JSHint example][2] | |
// and [Ory Band's example][3] as basis and setting config values to | |
// be most strict: | |
// | |
// * set all enforcing options to true |
#!/bin/sh | |
## | |
# Keep local path in sync with remote path on server. | |
# Ignore .git metadata. | |
# | |
local=$BASEDIR | |
project='projetctname' | |
remote='root@vagrantbox.com:/var/www/'$project | |
# Initialization - copy entire directory to host |
$default_rounded_amount: 5px | |
// Round corner at position by amount. | |
@mixin round-corner($position, $amount: $default_rounded_amount) | |
border-#{$position}-radius: $amount | |
-webkit-border-#{$position}-radius: $amount | |
@mixin round-corner-mozilla($position, $amount: $default_rounded_amount) | |
-moz-border-radius-#{$position}: $amount | |
// Round left corners by amount |
[ | |
{"keys": ["super+alt+ctrl+d"], "command": "add_date_time_stamp" }, | |
{"keys": ["super+alt+d"], "command": "add_date_stamp" }, | |
{"keys": ["super+alt+t"], "command": "add_time_stamp" } | |
] |
Remove osxfuse if installed via homebrew: | |
> brew uninstall osxfuse | |
Install osxfuse binary and choose to install the MacFUSE compatibility layer: | |
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files | |
Reboot (optional but recommended by osxfuse) | |
Install ntfs-3g via homebrew: | |
> brew update && brew install ntfs-3g |
function transfer | |
if test (count $argv) -eq 0 | |
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md" | |
return 1 | |
end | |
## get temporarily filename, output is written to this file show progress can be showed | |
set tmpfile ( mktemp -t transferXXX ) | |
## upload stdin or file |