This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var plusOneScript = document.createElement('script'); | |
plusOneScript.setAttribute("src", "https://apis.google.com/js/plusone.js"); | |
plusOneScript.textContent = '{"parsetags": "explicit"}'; | |
plusOneScript.addEventListener("load", function() { | |
var script = document.createElement("script"); | |
script.textContent = "var addPlusOne = function(){gapi.plusone.go();setTimeout(addPlusOne, 1000);};setTimeout(addPlusOne, 1000);"; | |
document.body.appendChild(script); | |
}, false); | |
document.body.appendChild(plusOneScript); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Timer() { | |
this.gameTime = 0; | |
this.lastTick = 0; | |
this.maxStep = 0.05; | |
this.lastTimestamp = 0; | |
} | |
Timer.prototype.step = function() { | |
var current = Date.now(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body style="overflow:hidden"> | |
<embed width="100%" height="99%" src="main.swf" type="application/x-shockwave-flash"></embed> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CACHE MANIFEST | |
CACHE: | |
index.html | |
pattern8-pattern70c.png | |
swfobject.js | |
chromelogo-pulse.swf | |
NETWORK: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Chrome is Glowing", | |
"description": "Try to take your eyes off of the glowing Chrome orb.", | |
"version": "1", | |
"app": { | |
"urls": [ | |
"http://glowingchrome.appspot.com/" | |
], | |
"launch": { | |
"web_url": "http://glowingchrome.appspot.com/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "YOUR APP NAME", | |
"description": "YOUR APP DESCRIPTION", | |
"version": "1", | |
"app": { | |
"launch": { | |
"local_path": "index.html" | |
} | |
}, | |
"icons": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kind": "chromewebstore#license", | |
"id": "ejbknjbccnnccddiljheadjafeeagcan/https://www.google.com/accounts/o8/id?id\u003dAItOawlh_ZYIBQi-kNV-d3Rd8WIjQEBsLDh5LDQ", | |
"appId": "ejbknjbccnnccddiljheadjafeeagcan", | |
"userId": "https://www.google.com/accounts/o8/id?id\u003dAItOawlh_ZYIBQi-kNV-d3Rd8WIjQEBsLDh5LDQ", | |
"result": "YES", | |
"accessLevel": "FREE_TRIAL" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=$PATH:/Users/sladd/.gem/ruby/1.8/bin | |
alias gst='git status ' | |
alias gc='git commit ' | |
alias gca='git commit -a ' | |
alias ga='git add ' | |
alias gco='git checkout ' | |
alias gb='git branch ' | |
alias gm='git merge ' | |
alias gp='git push ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'nokogiri' | |
require 'httparty' | |
export = Nokogiri::XML(File.new(ARGV[0])) | |
export.root.xpath("//item/link").each do |node| | |
begin | |
# do this the hard way because no way to get final URI after redirects otherwise | |
request = HTTParty::Request.new(Net::HTTP::Head, node.text, {}) | |
response = request.perform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse_git_branch (){ | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
export PS1='\[\033[0;33m\]\w\[\033[00m\]\[\033[01;00m\]$(parse_git_branch): ' |