Skip to content

Instantly share code, notes, and snippets.

Rabbie Swift Medley
Ah bide it tay late
got naethin' in mah brain
I’m a staumrel fowk say
that's whit fowk say, mmm
i gang oan tay mony dates
but Ah cannae make them bide
at leest that's whit fowk say, mmm-mmm
<html>
<!-- http://docs.jquery.com/ -->
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
// we will add our javascript code here
$(document).ready(function() {
//Tag cloud selection logic
$("#tag_cloud li").click(function() {
#given the following models---------------------------
class Parent
has_many :children
end
class Child
belongs_to :parent #column: parent_id in the db
end
<<<<<<< HEAD
#Anything in here is what
#was in the branch you merged into
=======
#Anything in here is what
#was in the branch you merged from
>>>>>>> a-n-other-branch
#Small function to generate a comma delimited dictionary on a unix system
def gen_dictionary
f = open("| cat /usr/share/dict/words")
g = Array.new
while (foo = f.gets)
g << foo.strip
end
puts g.join(', ')
end
center = [500,500]
radius = 500
height = 100
width = 100
num_edge = 50
num_hour = 10
num_min = 10
length_hour = 300
var exec = require('child_process').exec;
var config = require('./src/browser.webpack.config.js');
var compiler = require('webpack')(config);
var path = require('path');
compiler.run(function (err, stats) {
if (err) {
throw err
}
#Subclassing Array instead of including Enumerable
class Core < Array
attr_reader :name
def initialize( name, data )
@name = name
self[0..-1] = data
end
#!/bin/bash
createdb NEW_DB
pg_restore -d NEW_DB BACKUP_FILE
# List of environments and their heroku git remotes
ENVIRONMENTS = {
:staging => 'myapp-staging',
:production => 'myapp-production'
}
namespace :deploy do
ENVIRONMENTS.keys.each do |env|
desc "Deploy to #{env}"
task env do