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="javascript:(function(){ | |
script = document.createElement( 'script' ); | |
script.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'; | |
script.onload=releasetheKraken; | |
document.body.appendChild(script); | |
function releasetheKraken () { |
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
syntax on | |
set autoindent | |
set smartindent | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set nu | |
call pathogen#infect() | |
filetype plugin indent on |
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
#!/bin/bash | |
# vars | |
SANDBOX_DIR=sandbox | |
if [[ `which ldd` ]]; then | |
DEPENDENCY_TOOL=ldd | |
else | |
DEPENDENCY_TOOL='otool -L' | |
fi |
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
// this should work and give us 1 to 5 | |
var Step = function (steps) { | |
// this only works with arrays, @todo better check | |
if (typeof steps !== 'object') { | |
return; | |
} | |
var currentStep = 0, lastStep = steps.length; | |
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
// this should work and give us 1 to 5 | |
var Step = function (steps) { | |
// this only works with arrays, @todo better check | |
if (typeof steps !== 'object') { | |
return; | |
} | |
var currentStep = 0, lastStep = steps.length; | |
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>floating search</title> | |
<style> | |
*:focus { | |
outline: 0; | |
} | |
* { |
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>notifications</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script> | |
$(function () { | |
if (window.webkitNotifications) { | |
console.log('Notifications are supported!'); |
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
!!! 5 | |
html | |
head | |
meta(charset='utf-8') | |
title jadepreview | |
body | |
h1 jadepreview | |
h2 | |
| Converts | |
a(href='http://jade-lang.com/') jade templates |
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 code = req.query.code, body = 'client_id=&client_secret=&grant_type=authorization_code&redirect_uri=https://localhost:3000/callback&code=' + code | |
options = { | |
method: 'POST', | |
uri: 'https://alpha.app.net/oauth/access_token', | |
form: body | |
}; | |
request.post(options, function (err, res, body) { | |
console.log(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
AppDotNet | |
.getUser() | |
✓ returns a user object (827ms) | |
✓ returns an error when not authorized (730ms) | |
.followUser() | |
✓ returns a user object (835ms) | |
✓ returns an error when not authorized (747ms) | |
.unfollowUser() | |
✓ returns a user object (811ms) | |
✓ returns an error when not authorized (733ms) |
OlderNewer