Skip to content

Instantly share code, notes, and snippets.

Avatar
🙃

Jonah B. jonahvsweb

🙃
View GitHub Profile
@jonahvsweb
jonahvsweb / .zshrc
Last active February 4, 2016 17:28
Useful ZSH custom functions
View .zshrc
###################
# Custom Functions
###################
function newdir { mkdir $1 && cd $1; } #Usage: newdir $new_dir_name
function parsecsv { cat $1 | cut -d $2 -f $3 | grep -v -e "^$" > ~/Desktop/$4.csv; } #Usage: parsecsv $original_csv $delimiter $column_num $new_csv_filename
# More to come
@jonahvsweb
jonahvsweb / README.md
Last active January 29, 2016 13:37 — forked from chrisjacob/README.md
Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
View README.md

Intro

Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").

Author: Chris Jacob @_chrisjacob

Tutorial (Gist): https://gist.github.com/833223

The Result

@jonahvsweb
jonahvsweb / gist:9337701
Last active August 29, 2015 13:56 — forked from liamdon/gist:2467603
Adding support for CoffeeScript, Jade, Stylus and EJS syntax highlighting in Sublime Text 2.
View gist:9337701

Step 1: Clone the bundles into your Sublime Text packages directory

cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript
git clone https://github.com/miksago/jade-tmbundle.git Jade
git clone https://github.com/LearnBoost/stylus.git Stylus
git clone git://github.com/gregory-m/ejs-tmbundle.git EJS

Step 2: Restart Sublime Text 2

View gist:8141336

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@jonahvsweb
jonahvsweb / web.config
Created April 29, 2013 03:38
How to Setup WordPress Permalinks on Windows IIS ======================================= Place this file into the base directory of your WordPress installation to allow permalinks (or "pretty URLs") on Windows IIS.
View web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
View gist:4662025
//In your Main class :
public function Main() {
levelManager = new LevelManager(ALevel);
levelManager.applicationDomain = ApplicationDomain.currentDomain; // to be able to load your SWF level on iOS
levelManager.onLevelChanged.add(_onLevelChanged);
levelManager.levels = [[Level1, "levels/A1/LevelA1.swf"], [Level2, "levels/A2/LevelA2.swf"]];
levelManager.gotoLevel(); //load the first level, you can change the index. You can also call it later.
}
View gist:4354137

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt