Skip to content

Instantly share code, notes, and snippets.

console.log('Started');
$.getScript("https://www.google.com/jsapi", function(data, textStatus, jqxhr) {
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(function(){
alert('Chart API Loaded');
});
});
@gingerhendrix
gingerhendrix / Get Current App
Created March 7, 2011 22:51
Applescript to get the name of the foreground App
set AppleScript's text item delimiters to ":"
set front_app to front_app's text items
set AppleScript's text item delimiters to {""} --> restore delimiters to default value
set item_num to (count of front_app) - 1
--display dialog item_num
--display dialog item item_num of front_app
set app_name to item item_num of front_app
set AppleScript's text item delimiters to "."
set app_name to app_name's text items
set AppleScript's text item delimiters to {""} --> restore delimiters to default value
@gingerhendrix
gingerhendrix / gist:833752
Created February 18, 2011 14:53
Blank branch and submodule setup for deployment config
#Create blank branch
git symbolic-ref HEAD refs/heads/deploy_production
rm .git/index
git clean -fdx
touch .gitignore
git add .gitignore
git commit -m "Initial Commit"
#Add submodule as html
git submodule add -b production git@kaizen:somesite.com.git html
@gingerhendrix
gingerhendrix / Wordpress Admin Styles
Created February 5, 2011 21:41
How to make an wordpress plugin panel with the same look and feel as the rest of the admin area
Outer Div
.metabox-holder
.has-right-sidebar
Sidebar
@gingerhendrix
gingerhendrix / gh-pages with template via git
Created August 4, 2009 23:59
github pages installed in a project as a blank branch, and a submodule and with a remote used to pull down shared template
#Create blank branch
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
touch .gitignore
git add .gitignore
git commit -m "Initial Commit"
#Push to origin
git push origin gh-pages