Skip to content

Instantly share code, notes, and snippets.

View jthomp's full-sized avatar
🏠
Working from home

Justin Thompson jthomp

🏠
Working from home
View GitHub Profile
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
ActionView::Template::Error (Table 'bubbletimer_development.time_slice' doesn't exist):
18: <th class='hour-divider' <%= hide_or_show(bt_start_hour, current_time.hour, bt_end_hour) %>>&nbsp;</th>
19: <th id="<%= time_header_id(current_time) %>"
20: class="time hour <%= hour_marker(current_time.hour) %> <%= time_for_hour(day.time_slices, current_time) %>"
21: <%= hide_or_show(bt_start_hour, current_time.hour, bt_end_hour) %>>
22: <span><%= user_time_display(current_time, @day.user) %></span>
23: </th>
24: <% else %>
activerecord-mysql2-adapter (0.0.3) lib/active_record/connection_adapters/mysql2_adapter.rb:263:in `query'
activerecord-mysql2-adapter (0.0.3) lib/active_record/connection_adapters/mysql2_adapter.rb:263:in `execute'
@jthomp
jthomp / gist:7347469
Created November 7, 2013 01:37
dem gems
# Recent Updates' Gems
config.gem 'kramdown', :version => '~> 0.13.2' #Recent Updates plugin dependency
config.gem 'uuidtools', :version => '~> 2.1.1' # Recent Updates plugin dependency
config.gem 'grit', :version => '~> 2.2.0' # Recent Updates plugin dependency
config.gem 'diff-lcs', :version => '~>1.1.2', :lib => false # Recent Updates plugin (via grit) dependency
config.gem 'mime-types', :lib => 'mime/types', :version => '~>1.16' # Recent Updates plugin (via grit) dependency
config.gem 'rest-client', :version => '~> 1.6.1' # Recent Updates plugin dependency
config.gem 'twitter', :version => '~> 1.3.0' # Recent Updates plugin dependency
config.gem 'hashie', :version => '~> 1.0.0' # Twitter dependency
config.gem 'addressable', :lib => false, :version => '~> 2.2.4' # Twitter dependency
@jthomp
jthomp / gist:7347041
Created November 7, 2013 00:50
honeybadger dont care
### Instructions to set up honeybadger for a Rails 2 app. ###
Add the honeybadger gem to your app.
In config/environment.rb:
config.gem 'honeybadger'
# omitting some bundler-specific stuff here.
Then from your project's RAILS_ROOT, and in your development environment, run:
rake gems:install
import java.util.*;
import java.io.*;
public class JustinThompsonHw9
{
static LinkedList list;
static final int MAX = 10; // using this for count.
public static void main(String[] args) throws Exception
{
import java.util.Scanner;
import java.io.*;
import java.text.DecimalFormat;
public class StudentDissector
{
public static void main (String[] args) throws IOException
{
String record;
Scanner fileScan, recordScan;
class Product < ActiveRecord::Base
###########################
# Including our Permalinked module
include Permalinked
###########################
# Products should have:
# => name [r]
# => permalink
# => description [r]