- balanced_controller.rb
- _bank_account_form.html.haml
- _credit_card_form.html.haml
- bank_account_submission.js
- credit_card_submission.js
import BaseHTTPServer | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
import sys | |
import base64 | |
key = "" | |
class AuthHandler(SimpleHTTPRequestHandler): | |
''' Main class to present webpages and authentication. ''' | |
def do_HEAD(self): |
This is a livecountdown timer jquery script. The concept is simple. | |
1. I have a slider on my homepage that when the counter is counting down shows the slider | |
2. when the countdown timer hits zero, then the slider div is hidden and the video div is displayed in it's place. | |
The primary jquery file livecountdown.js basically does 2 things: | |
1. the countdown timer itself is wrapped in a div ".live_countdown" When the timer is counting down then the ".live_countdown" is displayed, when the countdown timer hits zero, then the ".live_countdown" is faded out to display none | |
*That basically takes care of displaying the timer and removing the timer when it hits zero. | |
**alternately instead of hiding the timer, I can just as easily replace the timer with a 'now playing' graphic or something like that | |
2. The slider carousel is wrapped in a div ".stepcarousel" This slider is displayed while the countdown timer is greater than zero or still counting down |
Ext.grid.GridPanel.prototype.getFeatures = function() { | |
return this.view.featuresMC; | |
}; | |
Ext.grid.GridPanel.prototype.getFilters = function() { | |
var features = this.getFeatures(); | |
if (features && features.items) { | |
for (var i = 0; i < features.items.length; i++) { | |
if (features.items[i].ftype === 'filters') { | |
return features.items[i]; |
var express = require('express'); | |
var sys = require('util'); | |
var oauth = require('oauth'); | |
var app = express.createServer(); | |
var _twitterConsumerKey = process.env['TWITTER_CONSUMER_KEY']; | |
var _twitterConsumerSecret = process.env['TWITTER_CONSUMER_SECRET']; | |
console.log("_twitterConsumerKey: %s and _twitterConsumerSecret %s", process.env['TWITTER_CONSUMER_KEY'], process.env['TWITTER_CONSUMER_SECRET']); |
Originally published in June 2008
When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.
To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.
Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.
<table id="people"> | |
<thead> | |
<th>First Name</th> | |
<th>Last Name</th> | |
<th>Phone Number</th> | |
<th>Location</th> | |
</thead> | |
<tbody> | |
<tr> | |
<td><input /></td> |
/* | |
* Template backbone.js code that encapsulates a | |
* datatable.net table within a view for a hypothetical ;) | |
* auction listings application. | |
*/ | |
var HomeRouter = Backbone.Router.extend({ | |
routes: { | |
'refresh' : 'refresh', |
#!/bin/bash | |
# Functions ============================================== | |
# return 1 if global command line program installed, else 0 | |
# example | |
# echo "node: $(program_is_installed node)" | |
function program_is_installed { | |
# set to 1 initially | |
local return_=1 |