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 'pp' | |
require 'irb/completion' | |
require 'rubygems' | |
require 'wirble' | |
require 'hirb' | |
Wirble.init | |
Wirble.colorize | |
IRB.conf[:AUTO_INDENT]=true |
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
#!/usr/bin/env ruby | |
puts "\n** This is a regimen calculator based on the \"Get In Shape\" post on" | |
puts "** Justin Cunningham's \"Little Bit of Code\" blog post at" | |
puts "** http://littlebitofcode.com/2010/03/01/get-in-shape **\n\n" | |
class LiftCalc | |
attr_accessor :maxweight | |
def initialize |
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
<!DOCTYPE html> | |
<html lang='en'> | |
<head> | |
<title>LiftCalc</title> | |
<meta http-equiv='Content-type' content='text/html;charset=UTF-8'> | |
<meta name='viewport' content='width=device-width'> | |
<meta name='viewport' content='initial-scale=1.6'> | |
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script> | |
<script type='text/javascript'> |
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
# Throw this in config/initializers and add | |
# @import variables.sass to the top of application.sass | |
# to have all variables in app_config.yml | |
# available as variables in your sass stylesheets | |
sass_variables = [] | |
app_variables = YAML.load_file("#{Rails.root}/config/app_config.yml") | |
app_variables.each do |key, value| | |
sass_vars << "!#{key} = #{value}" |
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
# ***************************************** | |
# .irbrc | |
# | |
# Includes lots of nice stuff to make | |
# your irb and script/console ruby shell | |
# more pretty and productive | |
# | |
# ***************************************** |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>BackgroundColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NGMSAx | |
IDEAEAGAAtIQERITWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xvcqISFFhOU09iamVj | |
dF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290gAEIERojLTI3O0FITltiaWttcn2GjpGa |
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 | |
### SELF-UPDATING BASH SCRIPT | |
### Checks for update online, if not found, runs itself | |
# CONFIG: SET UPDATE FILE | |
UPDATE_FILE="update.sh" | |
UPDATE_URL="http://example.com/${UPDATE_FILE}" | |
### UPDATING CODE |
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
# == Schema Information | |
# | |
# Table name: flying_spaghetti_monsters | |
# | |
# id :integer(4) not null, primary key | |
# awesomeness :string | |
# meatballs :boolean | |
# last_seen :datetime | |
# model-specific requires |
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 | |
# This bash script is intended to be a solid starting point | |
# for a Ruby on Rails application server on Ubuntu Linux. | |
# Edit these settings if you wish | |
HOSTNAME="railsmachine" | |
DEPLOYUSER="deploy" | |
RUBYDIR="/opt/ruby" | |
RAILSAPPNAME="railsapp" |
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
# ***************************************** | |
# .profile | |
# | |
# Includes lots of nice funtions | |
# and aliases to make your command-line | |
# experience happy and productive | |
# | |
# ***************************************** | |
# Me and you; we have history, you know? |
OlderNewer