Skip to content

Instantly share code, notes, and snippets.

Jonathan Beech JonathanBeech

Block or report user

Report or block JonathanBeech

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
JonathanBeech / Alias's to use in the terminal
Created Jan 19, 2013
alias's for the terminal created by Jonny Beech
View Alias's to use in the terminal
# 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 ../..'
JonathanBeech / gist:4556330
Created Jan 17, 2013
A list of useful terminal commands
View gist:4556330
defaults write _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 _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
View gist:3487834
a,a *{cursor:pointer}

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
JonathanBeech / gist:3403282
Created Aug 20, 2012
Terminal: list of useful zsh alias's and functions
View gist:3403282
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'
JonathanBeech / custom-posts-helper.php
Created Aug 20, 2012 — forked from GreenGeorge/custom-posts-helper.php
Wordpress: Functions to quickly automate making custom post types in wordpress
View custom-posts-helper.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
View Default (OSX).sublime-keymap
{ "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",
{ "key": "setting.command_mode", "operand": false },
JonathanBeech / Side Bar.sublime-menu
Created Aug 17, 2012
Sublime Text: sidebar enhancement settings
View Side Bar.sublime-menu
{"id": "side-bar-files-open-with",
// Espresso
"caption": "Espresso",
"id": "side-bar-files-open-with-espresso",
JonathanBeech / gist:3288912
Created Aug 7, 2012 — forked from padolsey/gist:527683
Javascript: Detect ie
View gist:3288912
// ----------------------------------------------------------
// 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) {}
JonathanBeech / gist:3288881
Created Aug 7, 2012
Javascript: JQueryPubSub
View gist:3288881
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
(function($) {
var o = $({});
$.subscribe = function() {
o.on.apply(o, arguments);
You can’t perform that action at this time.