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
#Record a file: | |
voice = new Recording() | |
voice.start() | |
#Stop Recording: | |
voice.stop() | |
#Reference the File (returns a URL Object) | |
voice.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
window.onbeforeunload = function(){ return 'Testing...' } |
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
module SRS | |
require 'active_support' | |
field current_interval, type: Integer, default: 4 | |
field repetition_number, type: Integer, default: 0 | |
field streak, type: Integer, default: 0 | |
field next_review, type: TimeDate | |
def mark_correct | |
if current_interval < 32 |
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 Item etends Backbone.model | |
initialize: -> | |
console.log 'hello, world!' | |
alert 'hi' | |
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
#after setting up mongoid and requiring ThinkingLobster | |
class FlashCard | |
include Mongoid::Document | |
include ThinkingLobster | |
field :question | |
field :answer | |
end |
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
#Jeepers, this standard library has everything! | |
require 'socket' | |
server = TCPServer.new "127.0.0.1" , 4000 | |
while connection = server.accept | |
Thread.new(connection) do |client| | |
while (client_input = client.gets.chomp) |
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
// GET api/v1/user/MONGOID_UUID | |
{"_id":"527873df5269631100030000","email":"[email protected]","sign_in_count":0,"current_sign_in_at":null,"last_sign_in_at":null,"current_sign_in_ip":null,"last_sign_in_ip":null} | |
// GET api/v1/users | |
[{"_id":"527873df5269631100030000","email":"[email protected]","sign_in_count":0,"current_sign_in_at":null,"last_sign_in_at":null,"current_sign_in_ip":null,"last_sign_in_ip":null}] | |
// POST api/v1/users/MONGOID_UUID | |
// PUT api/v1/users/MONGOID_UUID | |
// DELETE /api/v1/users/MONGOID_UUID |
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
{ | |
"message": "accurate", | |
"cod": "200", | |
"count": 10, | |
"list": [{ | |
"id": 5308655, | |
"name": "Phoenix", | |
"coord": { | |
"lon": -112.074043, |
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/local/rvm/rubies/ruby-2.0.0-p195-dev/bin/ruby extconf.rb | |
creating Makefile | |
make "DESTDIR=" | |
compiling native.c | |
In file included from /usr/local/rvm/rubies/ruby-2.0.0-p195-dev/include/ruby-2.0.0/ruby/ruby.h:1567:0, | |
from /usr/local/rvm/rubies/ruby-2.0.0-p195-dev/include/ruby-2.0.0/ruby.h:33, | |
from native.c:26: | |
/usr/local/rvm/rubies/ruby-2.0.0-p195-dev/include/ruby-2.0.0/ruby/intern.h:323:1: error: unknown type name ‘fd_set’ | |
/usr/local/rvm/rubies/ruby-2.0.0-p195-dev/include/ruby-2.0.0/ruby/intern.h:412:1: error: unknown type name ‘fd_set’ |
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
E, [2013-12-10T02:22:19.034490 #787] ERROR -- : reaped #<Process::Status: pid=13979,exited(1)> worker=1 | |
I, [2013-12-10T02:22:19.034843 #787] INFO -- : worker=1 spawning... | |
: no such file to load -- bundler/setup (LoadError) | |
from /home/rails/config/boot.rb:4 | |
from /home/rails/config/application.rb:1:in `require' | |
from /home/rails/config/application.rb:1 | |
from /home/rails/config/environment.rb:2:in `require' | |
from /home/rails/config/environment.rb:2 | |
from config.ru:4:in `require' | |
from config.ru:4 |