This file contains hidden or 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
assert.throws( | |
function() { | |
throw new Error("Wrong value"); | |
}, | |
Error | |
); |
This file contains hidden or 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
// define all common settings here | |
exports.common = { | |
storage: { | |
host: 'localhost', | |
database: 'server_dev', | |
user: 'qirogami_user', | |
password: 'password' | |
} | |
}; |
This file contains hidden or 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 rid of these parens? | |
define('List'). | |
oid('_id'). | |
string('title'). | |
string('description') |
This file contains hidden or 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> | |
<head> | |
<meta http-equiv="content-type" content="text/html;charset=utf-8"> | |
<title>test.rb</title> | |
<link rel="stylesheet" href="http://github.com/jashkenas/docco/raw/0.3.0/resources/docco.css"> | |
</head> | |
<body> | |
<div id='container'> | |
<div id="background"></div> |
This file contains hidden or 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 CreateUsers < ActiveRecord::Migration | |
def self.up | |
create_table :users do |t| | |
t.string :login, :null => false # optional, you can use email instead, or both | |
t.string :email, :null => false # optional, you can use login instead, or both | |
t.string :crypted_password, :null => false # optional, see below | |
t.string :password_salt, :null => false # optional, but highly recommended | |
t.string :persistence_token, :null => false # required | |
t.string :single_access_token, :null => false # optional, see Authlogic::Session::Params | |
t.string :perishable_token, :null => false # optional, see Authlogic::Session::Perishability |
NewerOlder