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
/** | |
* Unprefixed animations do nothing in Blink | |
*/ | |
@-webkit-keyframes foo { | |
to { background: lime; } | |
} | |
body { background: red; -webkit-animation: foo 1s infinite; } |
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
/** | |
* Unprefixed animations do nothing in Blink | |
*/ | |
@keyframes foo { | |
to { background: lime; } | |
} | |
div { background: red; animation: foo 1s infinite; } |
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
# Behavior filter turns method names into select/reject filters | |
# Example | |
# class User | |
# has_manny :comments, :extend => BehaviorFilter | |
# end | |
module BehaviorFilter | |
# creates magic methods like these | |
# user.comments.from_blocked_commentors | |
# # => user.comments.select{ |c| user.blocking?(c.commentor) } |
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
class Face | |
love = 5 | |
get_love = Proc.new{ love } | |
puts get_love.call | |
define_method :get_love, &get_love | |
def love | |
:wtf_lol | |
end |
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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Test</title> | |
</head> | |
<body id="test"> | |
<script> | |
function jaredsCreate(){ |
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
%a{href:"##{controller}"}= controller | |
:if action && action !== 'index' | |
> |
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
/** | |
* Showing with the Express framwork http://expressjs.com/ | |
* Express must be installed for this sample to work | |
* npm install express | |
* npm install tropo-webapi | |
*/ | |
var tropoapi = require('tropo-webapi'); | |
var express = require('express'); | |
var app = express.createServer(); |
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
//Various settings. | |
var Client = require('mysql').Client; | |
client = new Client(); | |
TEST_DATABASE = 't_voice'; | |
TEST_TABLE = 't_calls'; | |
client.host = 'database.domain.com'; | |
client.user = 'auser'; | |
client.password = 'apassword'; | |
client.connect(); | |
client.query('USE '+TEST_DATABASE); |
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 sh | |
git co gh-pages && | |
git merge master && | |
git push github gh-pages && | |
git co master |
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
Team behind Go: | |
- Ken Thompson | |
- Co-Creator of Unix | |
- Co-Creator of UTF-8 | |
- Creator of 'B', the direct predecessor to the 'C' programming language | |
- Rob Pike | |
- Member of Unix Team at Bell Labs | |
- Creator of Plan 9 | |
- Co-Creator of UTF-8 |
OlderNewer