Skip to content

Instantly share code, notes, and snippets.

View douglasdollars's full-sized avatar
💭
slam in the back of my dragula

Douglas Dollars douglasdollars

💭
slam in the back of my dragula
View GitHub Profile
@busterbenson
busterbenson / markov_tweets.rb
Created September 25, 2013 05:05
How I do @buster_ebooks.
#!/usr/bin/ruby
# Make sure you have these gems installed
require 'rubygems'
require 'thread'
require 'csv'
require 'twitter'
require 'marky_markov'
# Create a new Twitter account that you'd like to have your auto-tweets posted to
@ryanjones
ryanjones / cscheat.md
Last active December 15, 2015 10:29
CoffeeScript Cheat Sheet (CS 1.6)

Best Practices (no framework)

  • Method instantiation and method calls need parans () (ie. bus.drive(), new Bus())
  • Minimize dom selectors in classes (pass in dom elements into class constructor)

Class

class Bus
  constructor: ->

class Bus
@fnichol
fnichol / Manifest.html
Last active July 1, 2020 22:34
SmartOS Node (no disks)
<table width="100%" cellspacing="1" cellpadding="0" border="1">
<thead>
<th class="qty">Qty.</th>
<th class="image">Image</th>
<th class="product">Product Description</th>
<th class="unitPrice">Unit Price</th>
<th class="savings">Savings </th>
<th class="totalPrice">Total Price</th>
</thead>
@danielberlinger
danielberlinger / performance.rb
Created March 27, 2012 20:10
A Rails initializer for using Rails 3 notifications and statsd
require 'statsd'
$statsd = Statsd.new('your_host_here')
ActiveSupport::Notifications.subscribe /process_action.action_controller/ do |*args|
event = ActiveSupport::Notifications::Event.new(*args)
controller = event.payload[:controller]
action = event.payload[:action]
format = event.payload[:format] || "all"
format = "all" if format == "*/*"
status = event.payload[:status]
@fnichol
fnichol / README.md
Created November 21, 2011 16:41 — forked from xiplias/esca.rb
Campfire script for Pomodoro

Description

Simple [Campfire][campfire_app] notifier for the [Pomodoro app][pomodoro_app], based off [xiplias][xiplias]'s [gist][parent_gist].

The script reads a JSON file to match a leading pomodoro tag with a Campfire account. In the example file there is a campfire account with tag called "wco". Any pomodoros starting with "wco-", "wco_", "wco," will use the "wco" campfire account. If no campfire account exists with the leading tag, nothing will be broadcast.