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
<h3>Sign up</h3> | |
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> | |
<h2>Registration</h2> | |
<% if alert %> | |
<div class="generalMessage"> | |
<ul> | |
<li><%= alert %></li> | |
</ul> |
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 dependencies | |
### | |
require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
express = require 'express' | |
app = module.exports = express.createServer() | |
RedisStore = require 'connect-redis' |
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
/home/node/local/bin:/home/node/local/nodejs/bin:/opt/nodejs/bin:/usr/nodejs/bin:/opt/local/bin:/opt/local/sbin:/usr/xpg4/bin:/usr/bin:/usr/sbin:/usr/sfw/bin:/usr/openwin/bin:/opt/SUNWspro/bin:/usr/ccs/bin |
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
aldo@macbook ~/.ssh > ssh -vvv node@64.30.137.237 | |
OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009 | |
debug1: Reading configuration data /Users/aldo/.ssh/config | |
debug1: Reading configuration data /etc/ssh_config | |
debug2: ssh_connect: needpriv 0 | |
debug1: Connecting to 64.30.137.237 [64.30.137.237] port 22. | |
debug1: Connection established. | |
debug1: identity file /Users/aldo/.ssh/identity type -1 | |
debug3: Not a RSA1 key file /Users/aldo/.ssh/id_rsa. | |
debug2: key_type_from_name: unknown key type '-----BEGIN' |
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
<marsell> Anyway, since I might be gone for a jog later, these are the steps I used to run CouchDB: | |
[21:43] <marsell> pkgin install erlang-14.1.1 couchdb-1.0.1nb1 | |
[21:43] <marsell> svccfg import /opt/local/share/smf/manifest/epmd.xml ; svccfg import /opt/local/share/smf/manifest/couchdb.xml | |
[21:44] <marsell> svcadm enable epmd couchdb | |
[21:44] <marsell> After that couchdb was running. | |
[21:44] <marsell> You can check with a "svcs -a | ack couch", which returns a line saying: | |
[21:44] <marsell> online 0:43:57 svc:/application/couchdb:default | |
[21:45] <marsell> The "online" bit is crucial. If it's not online, give me a ping later. |
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 Attendee < Ohm::Model | |
attribute :email | |
attribute :hash | |
attribute :group | |
attribute :prefix | |
attribute :ami_instance | |
attribute :confirmed | |
index :hash | |
index :confirmed | |
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
class Attendee < Ohm::Model | |
attribute :email | |
attribute :hash | |
attribute :group | |
attribute :prefix | |
attribute :ami_instance | |
attribute :confirmed | |
attribute :expires_on | |
attribute :expires_at | |
index :hash |
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
## | |
# Once email is confirmed | |
## | |
terminate_on = (Time.parse( params['expires_on'] + ' ' + params['expires_at']).gmtime + Time.zone_offset("PST")).strftime('%Y-%m-%d %H:%M') | |
attendee = Attendee.create :email => email, | |
:hash => hash_code, | |
:group => args_to_save[:groups], | |
:prefix => args_to_save[:prefix], | |
:ami_instance => args_to_save[:ami_instance], |
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
$.ajax({ | |
url: '/ajax_nyc_events', | |
dataType: 'json', | |
success: function(doc) { | |
$.each(doc, function( index, value ) { | |
var eventDate = new Date(value.start); | |
var keyDateFormat = $.fullCalendar.formatDate(eventDate, 'dd MMM yyyy'); | |
if (eventsByDayNYC[keyDateFormat] === undefined) { // date doesn't exist as key | |
//Create events array and add it | |
var temp_events = []; |
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
I do have this code: | |
controller = Backbone.Controller.extend({ | |
routes: { | |
'/': 'home' | |
}, | |
home: function() { | |
var view = new views.Home(); | |
this.res && this.res.send(view.el); |
OlderNewer