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
| # Jonny Beech's alias's and functions | |
| alias desk='cd ~/Desktop' | |
| alias docs='cd ~/Documents' | |
| alias sites-'cd ~/Sites' | |
| alias ren='mv' | |
| alias up='cd ..' | |
| alias ..='cd ..' | |
| alias ...='cd ../..' |
| defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES | |
| killall Finder | |
| This is another terminal script to be put in the terminal allows the mac to display an absolute path in the Finder window. | |
| ➜ ~ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES | |
| ➜ ~ killall Finder | |
| #this is a shell script that allows you to have the folder and file paths to be displayed at the top of your finder window |
| html,body,blockquote,code,h1,h2,h3,h4,h5,h6,p,pre{margin:0;padding:0} | |
| button,fieldset,form,input,legend,textarea,select{margin:0;padding:0} | |
| fieldset{border:0} | |
| a,a *{cursor:pointer} | |
| div{margin:0;padding:0;background-color:transparent;text-align:left} | |
| hr,img{border:0} | |
| applet,iframe,object{border:0;margin:0;padding:0} | |
| button,input[type=button],input[type=image],input[type=reset],input[type=submit],label{cursor:pointer;} | |
| ul,li{list-style:none;margin:0;padding:0;} | |
| strong{font-weight:bold;} |
| alias doc='cd ~/Documents' | |
| alias desk='cd ~/Desktop' | |
| alias ren='mv' | |
| alias up='cd ..' | |
| alias ..='cd ..' | |
| alias ...='cd ../..' | |
| alias ls='ls -F' | |
| alias l='ls' |
| <?php | |
| // ***** Declare function that buids the post type | |
| function add_post_type($name, $args = array() ) { | |
| add_action('init',function() use($name, $args) { | |
| // make post type name capitalized | |
| $upper = ucwords($name); | |
| // make name acceptable |
| [ | |
| { "keys": ["ctrl+super+n"], "command": "new_snippet" }, | |
| { "keys": ["super+shift+v"], "command": "paste" }, | |
| { "keys": ["super+v"], "command": "paste_and_indent" }, | |
| { "keys": ["n", "n"], "command": "advanced_new_file", | |
| "context": [{"key": "setting.command_mode", "operand": true}]}, | |
| { "keys": ["j", "j"], "command": "exit_insert_mode", | |
| "context": | |
| [ | |
| { "key": "setting.command_mode", "operand": false }, |
| // ---------------------------------------------------------- | |
| // A short snippet for detecting versions of IE in JavaScript | |
| // without resorting to user-agent sniffing | |
| // ---------------------------------------------------------- | |
| // If you're not in IE (or IE version is less than 5) then: | |
| // ie === undefined | |
| // If you're in IE (>=5) then you can determine which version: | |
| // ie === 7; // IE7 | |
| // Thus, to detect IE: | |
| // if (ie) {} |
| /* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011 | |
| * http://benalman.com/ | |
| * Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */ | |
| (function($) { | |
| var o = $({}); | |
| $.subscribe = function() { | |
| o.on.apply(o, arguments); |