Skip to content

Instantly share code, notes, and snippets.

@bigfleet
bigfleet / order.txt
Created June 12, 2012 15:07
Jimmy John's order
http://www.jimmyjohns.com/menu/menu.aspx
Tim Berglund: #11 Unwich
Thomas Lattimore:
Scott Deeter: #5, no tomato
Mark Shropshire: JJBLT
Denny Abraham: #9 with hot peppers
Kevin Mussleman: #9 no onions, cut in half
Glenn Goodrich: #12 without tomato
Duncan Mapes: #14
@bigfleet
bigfleet / union-find.md
Created April 5, 2012 18:03
Union find pseudocode instruction

Consider a 10x10 array that represents the coordinate system for a maze. I'll call each individual space in the array a cell.

To generate a maze, consider each cell as having "walls" up in each direction, indicating no ability to pass into it or from it. Assign each cell a unique number. In this scheme, when two cells have the same number, it indicates that you may pass from one cell to the other, either directly or through other cells. The success condition is when every cell has the same number-- at this point, you will have a perfectly traversable coordinate system. You can pick two random "edges" of the coordinates and relax the wall to the outside world to have entry and exit.

To apply the algorithm, begin with the fully partitioned system. Pick a cell. Check its neighbors to see if one of them has a different set number. If it's only one, lower the wall, and change all cells that are represented by one of the numbers to the other number. If there is more than one, choose between the choices rando

When /^the mail queue is processed$/ do
mcount = Resque.size("mailer")
mcount.times do |m|
Resque::Worker.new("mailer").process
end
end
Twitter: { user: { name: { formatted: 'Jim Van Fleet' } , photo: 'http://a0.twimg.com/profile_images/1096124084/Jim-Avatar_punchout_normal.gif' , displayName: 'Jim Van Fleet' , preferredUsername: 'bigfleet' , url: 'http://twitter.com/bigfleet' , providerName: 'Twitter' , identifier: 'http://twitter.com/account/profile?user_id=3123671'
Facebook: { user: { verifiedEmail: 'jim@jimvanfleet.com' , name: { givenName: 'Jim' , familyName: 'Fleet' , formatted: 'Jim Van Fleet' } , photo: 'http://graph.facebook.com/578726210/picture?type=large' , displayName: 'Jim Van Fleet' , preferredUsername: 'JimVanFleet' , url: 'http://www.facebook.com/bigfleet' , gender: 'male' , utcOffset: '-04:00' , providerName: 'Facebook' , identifier: 'http://www.facebook.com/profile.php?id=578726210' , email: 'jim@jimvanfleet.com
Google: { user: { googleUserId: '116388720626466295225' , verifiedEmail: 'jim.van.fleet@gmail.com' , name: { givenName: 'Jim' , familyName: 'Van Fleet' , formatted: 'Jim Van Fleet' } , displayName: 'jim.van.fleet' ,
var http = require('http');
var google = http.createClient(80, 'www.google.com');
var request = google.request('GET', '/',
{'host': 'www.google.com'});
request.end();
request.on('response', function (response) {
console.log('STATUS: ' + response.statusCode);
console.log('HEADERS: ' + JSON.stringify(response.headers));
response.setEncoding('utf8');
response.on('data', function (chunk) {
// Load the http module to create an http server.
var http = require('http');
// Configure our HTTP server to respond with Hello World to all requests.
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.write("Hello World\n");
response.close();
});
From bb2a78858cffa7c6937642986e9aca1a4f862c0d Mon Sep 17 00:00:00 2001
From: Ilya Grigorik <ilya@igvita.com>
Date: Thu, 10 Jun 2010 00:46:48 -0400
Subject: [PATCH] async rails3
---
Gemfile | 6 ++++++
app/controllers/widgets_controller.rb | 6 ++++++
app/models/widget.rb | 2 ++
config.ru | 1 +
STDOUT.sync = true
require 'queue'
start_time = Time.now.to_i
msg = 0
queue = Queue.new("testing")
queue.subscribe do |obj|
msg += 1
ssh-dss AAAAB3NzaC1kc3MAAAEBAPrvHTTNrmuGZfk2q37MYj44MjDW/EfSXycvRvm7uggOK93/4Zz4W4ZcvCGCfdmM6fsJ+bf5jeYE/5b/G5pDLvzFHh+YMrgBOYQkGcJsAZhZUx8cAbtjNsNugqEnPNeI/7VILI173Z9nfmyfQ7Plk6DVfiXG5tApSYmCNazOGalkVksKsIzrJPpoQX6C+d5K8W50H6j6eacFgOTfRJy1aZ76GkHkmb4bu/J06lZqL9ZJiDTDyggxWwcmkptysb9KZcgv0CI5gXe3qjTJSSwdn4iMqmvfdt1B2EFIPEVK/KLH3kG7gAouOVpmifVC+trX6Qk4++jAf4AYVx4CTKDBQA8AAAAVAIXhpniSImaCKtb6/WL2pmXI2Oz7AAABAFS+f/qhCwHbnL0SANxPjj6GtLk+QAXfmFDsDDFXp+OqU3tGtfMAydKG5tJ3LF7JVh12VFRvGi5yvQfg9d06YkCqPCFuuxBkmXQHETI8cd17iRf0nqLVkKHkz5gwNCZ5HbCMC70JzOzE2HyXw/JupO/kTpHICMkAeoTvrNDhXaD6zysIb4USaPfxxcJh2CinuXAeXx8FTxjCfpmNS0KDoDF3zLW3TjzaIzFJARa7vxXScBWu9semjzvdBNOGTbwlkYXivWCilEnq43Xhs/een55c4t13+1RVNHPvmlNk1Nf12zCMYwlVQMVKfKZJCWv0djlFdHvt+0/Fv0TPBIuE+bgAAAEBALT71Bk1r+tLKFwEKCHM/nphER1FAVA7S6PSPCf7pWfzQZQlHdJQnHzZ9gmOEqZsm7hAUO3GomxOpVydtrWr4Rp/BABsqPPpdku3a/0m2iF8QkdjA3IeoGlzs5EZmedjpnPfEp4n81+Xdzf5wLtqdr6JVbfTNfTg6GxGn3YxjkzFdeA2rNFZdm8Y+GaBpr4I8PD1RonFVWBDedZVnbJ9dWSKlu0Nekb++QUoVbsutI22bfO5k3lsnqmWLDtvKwRfg2Q7GZyPlA3Q

Privacy Policy

Last revised on [DATE]

The Gist

Work Montage, Inc. ("Work Montage") makes available services include our web sites (http://workmontage.com/ and http://mocksup.com/), our blog, and any other software, sites, and services offered by Work Montage in connection to any of those (taken together, the "Service"). It is Work Montage's policy to respect your privacy regarding any information we may collect while operating our websites.

Work Montage will collect certain non-personal information about you as you use our sites. We may use this data to better understand our users. We can also publish this data, but the data will be about a large group of users, not individuals.