Skip to content

Instantly share code, notes, and snippets.

View bloudermilk's full-sized avatar

Brendan Loudermilk bloudermilk

View GitHub Profile
@bloudermilk
bloudermilk / explorer.rb
Created May 2, 2012 04:35
DCell Explorer Problem
require 'dcell/explorer'
DCell::Explorer.supervise("127.0.0.1", 8000)
@bloudermilk
bloudermilk / README.md
Created March 23, 2012 19:07
Facebook Page Categories

All of the categories!

I wrote a really simple JavaScript script that uses jQuery to extract all the categories from Facebook's "Create a page" page.

Instructions

  1. Navigate to the Create a page page.
  2. jQuerify the page.
  3. Open up your JavaScript console of choice and run the following script:
@bloudermilk
bloudermilk / overflow.html
Created November 27, 2011 10:52
Overflow example for a SO question
<!DOCTYPE HTML>
<html>
<head>
<title>Overflow!</title>
<style type="text/css">
#outer {
height: 200px;
position: relative;
overflow: hidden;
background-color: red;
@bloudermilk
bloudermilk / gist:1235737
Created September 22, 2011 19:19
CoffeseSript + Mongoose
BootModel = Mongoose.model "Boot", new Schema
laces: Number
tied: Boolean
class Boot extends BootModel
boot = new Boot
boot.laces = 4
boot.tied = true
@bloudermilk
bloudermilk / date.coffee
Created February 20, 2010 22:13
Javascript Date prototypes for finding the beginning and end of days and weeks. Beginning of the week is defined as Sunday
Date::beginningOfMonth = ->
beginningOfMonth = @beginningOfDay()
beginningOfMonth.setDate(1)
beginningOfMonth
Date::endOfMonth = ->
endOfMonth = @endOfDay()
endOfMonth.setMonth(endOfMonth.getMonth() + 1)
endOfMonth.setDate(0)
endOfMonth