-
hubot image me
query
- The Original. Queries Google Images forquery
and returns a random top result. -
hubot animate me
query
- The same thing asimage me
, except adds a few parameters to try to return an animated GIF instead. -
hubot mustache me
url
- Adds a mustache to the specified URL. -
hubot mustache me
query
- Searches Google Images for the specified query and mustaches it. -
hubot map me
query
- Returns a map view of the area returned byquery
. -
hubot math me
expression
- Calculate the given expression. -
hubot convert me
expression
tounits
- Convert expression to given units.
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 alphabetSoup(str) { | |
return str.split(' ').map(function(word) { | |
var parts = word.substr(1,word.length-2).split('') | |
.sort(function(){ return Math.random(); }) | |
.join(''); | |
return word[0] + parts + word[word.length-1]; | |
}).join(' '); | |
} | |
function rollercaster(str) { |
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 passport = require('passport'); | |
var BasicStrategy = require('passport-http').BasicStrategy; | |
var config = require('./config'); | |
passport.use(new BasicStrategy(function(user, pass, done) { | |
if (user !== config.auth.user) { | |
return done(null, false, { | |
message: 'Unknown user ' + user | |
}); | |
} |
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 IncomingForm = require('formidable'); | |
var util = require('util'); | |
var EventEmitter = require('events').EventEmitter; | |
var GridStore = require('mongodb').GridStore; | |
var pauseStream = require('pause-stream'); | |
var ObjectID = require('mongodb').ObjectID; | |
function IncomingFormGridFS(options) { | |
if(!(this instanceof IncomingFormGridFS)) return new IncomingFormGridFS(options); |
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
<title>some bubble fun</title> | |
<style> | |
body { | |
font-family: Arial; | |
padding-top: 10%; padding-left: 30%; | |
} |
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
_ = | |
pop: (ctx) -> | |
Array::pop.call ctx | |
slice: (args..., ctx) -> | |
Array::slice.apply ctx, args | |
reduce: (args..., ctx) -> | |
Array::reduce.apply ctx, args |
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
<head> | |
<title>protectMail Examples</title> | |
<script src="http://code.jquery.com/jquery-2.0.2.min.js"></script> | |
<script src="protectMail.js"></script> | |
</head> | |
<body> | |
<h1>protectMail Examples</h1> | |
<p> |
-
un-bot image me
query
- The Original. Queries Google Images forquery
and returns a random top result. -
un-bot animate me
query
- The same thing asimage me
, except adds a few parameters to try to return an animated GIF instead. -
un-bot mustache me
url
- Adds a mustache to the specified URL. -
un-bot mustache me
query
- Searches Google Images for the specified query and mustaches it. -
un-bot map me
query
- Returns a map view of the area returned byquery
. -
un-bot math me
expression
- Calculate the given expression. -
un-bot convert me
expression
tounits
- Convert expression to given units.
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
for(n=0;++n<101;){console.log((n%3?'':'Fizz')+(n%5?'':'Buzz')||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
#!/usr/bin/ruby | |
require 'mustache' | |
require 'yaml' | |
LAYOUT = 'layout.html' | |
DATA = 'data.yaml' | |
OUT = 'index.html' | |