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> | |
<head> | |
<meta charset="UTF-8"> | |
<title>JavaScript Testing Lab</title> | |
<style> | |
.pass:before { | |
content: 'PASS: '; | |
color: blue; | |
font-weight: bold; |
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 CLICOLOR=1; | |
export LSCOLORS=ExFxCxDxBxegedabagacad; | |
function git_branch { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return; | |
echo "("${ref#refs/heads/}") "; | |
} | |
function git_since_last_commit { | |
now=`date +%s`; |
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
#!/usr/bin/env ruby | |
# Memory usage script for WebFaction customers adapted to attempt to | |
# draw username from the pwd | |
# Nick Trew <[email protected]> | |
# 2009-05-25 | |
# START CONFIG # | |
require 'pathname' |
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
/* | |
* TypeHelpers version 1.0 | |
* Zoltan Hawryluk, Nov 24 2009. | |
* @see http://www.useragentman.com/blog/2009/11/29/how-to-detect-font-smoothing-using-javascript/ | |
* | |
* Released under the MIT License. http://www.opensource.org/licenses/mit-license.php | |
* | |
* Works for | |
* - IE6+ (Windows), | |
* - Firefox 3.5+ (Windows, Mac, Linux), |
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 Job = { | |
data : [ | |
"We are glad to see you here. This site is dedicated to", | |
"poetry and to the people who make poetry possible", | |
"poets and their readers. FamousPoetsAndPoems.com is", | |
"a free poetry site. On our site you can find a large", | |
"collection of poems and quotes from over 631 poets", | |
"Read and Enjoy Poetry", | |
"I, too, sing America", |
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 "httparty" | |
class GitRepos | |
include HTTParty | |
base_uri "https://api.github.com" | |
headers 'Accept' => 'application/json' | |
format :json | |
def get_repos_by_user(user) | |
repos = self.class.get("/users/#{user}/repos") |
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
def char_to_block(sentence_ary, &block) | |
if block_given? then | |
sentence_ary.each do |sentence| | |
sentence.split(//).each do |char| | |
block.call(char) | |
end | |
puts | |
end | |
else | |
puts sentence_ary.join("\n"); |
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
# Global GIT ignore file list. | |
# These files will be ignored from all GIT repositories on the system. | |
# Mac files. | |
*.DS_Store | |
# Swap files. | |
*.swp | |
*.swn | |
*.swo |
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
Error: SHA1 mismatch | |
Expected: 634c5eed18599c57c695cf58acdda59d | |
Got: 111bf871bda84e72fdf93f2877d97591b918db2a | |
Archive: /Library/Caches/Homebrew/v8-3.9.24.tgz | |
(To retry an incomplete download, remove the file above.) |
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
f = (a, b, c...) -> | |
console.log "arguments: #{a}, #{b}, #{c}".replace(/, $/,"") | |
for arg, i in arguments | |
console.log "#{i}: #{arg}" | |
f "ruby" | |
#"ruby" | |
#"0: ruby" | |
f "ruby", "coffeescript" | |
### |
OlderNewer