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
var http = require('http'); | |
var url = require('url'); | |
var port = 9999; | |
var rooms = {}; | |
var users = {}; | |
console.log('listening on: 9999'); | |
http.createServer(function(req, res) { |
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
user root; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log; | |
events { | |
worker_connections 1024; | |
} | |
http { |
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
#CREATE 20 Venues With locations around Vancouver | |
names = [ | |
"", | |
] | |
addresses = [ | |
"", | |
] |
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
(function(b) { | |
var a = { | |
init: function(c) { | |
return this.each(function() { | |
var d = this, | |
h = b(d).empty(); | |
d.opt = b.extend(true, {}, b.fn.raty.defaults, c); | |
h.data("settings", d.opt); | |
d.opt.number = a.between(d.opt.number, 0, 20); | |
if (d.opt.path.substring(d.opt.path.length - 1, d.opt.path.length) != "/") { |
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
<form action="/" method="post"> | |
<!-- the stars are here in an empty div --> | |
<div id="rate" name="raty"></div><br> | |
<!-- this is the hidden input that raty sends the data to --> | |
<input type="number" name="rating" style="display:none;" id="rating"> | |
<input type="submit"> | |
</form> | |
<!-- do this for static ratings --> | |
<div class="rating" data-score="<%= review.rating %>"></div> |
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 Store < ActiveRecord::Base | |
has_many :employees | |
validates :name, | |
presence: true, | |
length: {maximum: 25} | |
integer_and_not_negative = { | |
numericality: { | |
only_integer: true, | |
greater_than_or_equal_to: 0 |
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
{ | |
"venue": [{ | |
"name": "VIVO Media Arts Centre", | |
"address": "2625 Kaslo Street Vancouver BC\nV5M 3G8" | |
}, { | |
"name": "PAL Studio Theatre", | |
"address": "#8th floor-581 Cardero Street Vancouver BC\nV6G3L3" | |
}, { | |
"name": "Guilt & Co.", | |
"address": "1 Alexander Street Vancouver BC" |
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
%252525252525252525252525ffffff |
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 'rspec' | |
require 'date' | |
require_relative '../config' | |
describe Teacher, "can create a teacher" do | |
before :each do | |
Teacher.destroy(Teacher.find_by(email:'g@g.com').id) unless Teacher.find_by(email:'g@g.com') == nil | |
@teacher = Teacher.create!(first_name:'Cow',last_name:'Jensen',gender:'ambigious',birthday:"11-30-88",email:'g@g.com',phone:'666-666-6666') | |
end |
This file has been truncated, but you can view the full file.
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
Script started on Sat Sep 13 16:06:05 2014 | |
_current_epoch:1: command not found: date | |
_current_epoch:1: bad math expression: operand expected at `/ 60 / 60 ...' | |
_current_epoch:1: command not found: date | |
_current_epoch:1: bad math expression: operand expected at `/ 60 / 60 ...' | |
[1m[7m%[27m[1m[0m | |
]2;allthetime@CHRONIC: ~]1;~]2;allthetime@CHRONIC: ~]1;~ | |
[0m[27m[24m[J[01;32mallthetime@CHRONIC [34m[04:06:06] [00m[37m[~][00m | |
[34m->[01;34m %[00m [K[?1h=zzsh -xv[?1l> |