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
<table cellpadding="0" cellspacing="0" border="0" style="background: none; border-width: 0px; border: 0px; margin: 0; padding: 0;"> | |
<tr> | |
<td style="vertical-align: top; width: 70px;" valign="top" width="70" > | |
<a href="https://pocketworks.co.uk" style="border-width:0px; border:0px; text-decoration: none;"><img width="50" height="50" style="border: none; width: 50px; max-width: 50px !important; height: 50px; max-height: 50px !important;" src="https://pocketworks.co.uk/wp-content/uploads/2018/06/pw_logo_primary_100.png"></a> | |
</td> | |
<td> | |
<table cellpadding="0" cellspacing="0" border="0" style="background: none; border-width: 0px; border: 0px; margin: 0; padding: 0;"> | |
<tr><td colspan="2" style="padding-bottom: 5px; color: #444444; font-size: 14px; font-family: Arial, Helvetica, sans-serif;">Tobin Harris</td></tr> | |
<tr><td colspan="2" style="color: #333333; font-size: 14px; font-family: Arial, Helvetica, sans-serif;">CEO</td></tr> | |
<tr><td colspan="2" style="color: #333333; font-size: 14px; font-family: |
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
# /etc/init/clockwork.conf - DigitalOcean Rails Image - Clockwork config | |
# This example config should work with Ubuntu 14.04+. It | |
# allows you to manage clockwork with | |
# Upstart, Ubuntu's native service management tool. | |
# | |
# Assumes you have a clock.rb script in your Rails app root | |
# | |
# Use the service command: | |
# sudo service clockwork {start,stop,restart,status} |
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
/* TODO */ | |
#header{ | |
background-color: white; | |
} | |
#content{ | |
background-color: #eee; | |
} | |
.task-card{ |
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
class Device | |
attr_accessor :mac | |
attr_accessor :ip | |
attr_accessor :name | |
attr_accessor :is_online | |
attr_accessor :last_seen_at | |
attr_accessor :last_status_change_at | |
attr_accessor :status_changed | |
def initialize(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
@charset "utf-8"; | |
html { | |
width: 100%; | |
height: 100%; | |
} | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
*:focus { |
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
#/bin/bash | |
osascript '-e tell app "Skype" to send command "SET USERSTATUS ONLINE" script name "Tobins Skype Control"' | |
#/bin/bash | |
osascript '-e tell app "Skype" to send command "SET USERSTATUS DND" script name "Tobins Skype Control"' |
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
# Find all tweets containing the term Basecamp that were posted to @37signals | |
# You don't have to pipe to xpath, I just find it easier for understanding the results :) | |
curl http://search.twitter.com/search.atom?q=basecamp+to:37signals | xpath '//title/text()' | |
# Find all tweets containing the term Basecamp that were NOT posted to @37signals | |
curl http://search.twitter.com/search.atom?q=basecamp+-to:37signals | xpath '//title/text()' |
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
# | |
# Simple way of grabbing tweets for Rails | |
# http://[email protected] | |
# Example on the home page of http://yuml.me | |
# | |
require 'rexml/document' | |
require 'open-uri' | |
include REXML | |
class TwitterController < ApplicationController |
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
# Simple Git Analyzer | |
# | |
# WORK IN PROGRESS :) | |
# | |
# Tobin Harris ([email protected]) | |
# http://tobinharris.com | |
# http://engineroomapps.com | |
# Class to analyze git log | |
require 'rubygems' |
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
require 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
require 'pp' | |
class Spider | |
def initialize | |
@max_pages = 50 | |
@counter = 0 |
NewerOlder