- 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 Bus
constructor: ->
class Bus
#!/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 |
<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> | |
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] |
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.