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
require.paths.unshift(__dirname + '/../lib'); | |
var fs = require('fs'); | |
var exec = require('child_process').exec; | |
function uuid() { | |
return '________-____-____-____-____________'.replace(/\_/g, function(n) { | |
return Math.floor(Math.random() * 16).toString(16); | |
}); | |
} |
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
require.paths.unshift 'vendor/connect/lib' | |
require.paths.unshift 'vendor/markdown-js/lib' | |
connect = require 'connect' | |
markdown = require 'markdown' | |
class CoffeeWiki | |
constructor: -> | |
# The endpoint for the wiki. | |
@baseUrl = '/pages' |
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
# http://codegolf.stackexchange.com/questions/1360/how-to-write-a-single-line-password-generator | |
a = [('a'..'z'), ('A'..'Z'), (0..9)].map { |n| n.to_a }.flatten | |
puts (0...8).map { a[a.size * rand] }.join |
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
# http://news.ycombinator.net/item?id=2238846 | |
# enable zsh bookmarks | |
# example: | |
# b chuck # bookmark current directory as "chuck" | |
# ~chuck # recall the "chuck" directory | |
touch ~/.zshmarks && source ~/.zshmarks | |
function b() { | |
echo "hash -d $1=\"`pwd`\"" >> ~/.zshmarks && source ~/.zshmarks | |
} |
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
# odd synchronus patterns -- purported 'monadic' flow control | |
events = require 'events' | |
step = (callback) -> | |
first = true | |
queue = [] | |
emitter = new events.EventEmitter | |
this.step = (callback) -> |
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
/* | |
Syntax error: Undefined variable: "$host". | |
on line 21 of /Users/wildfireinteractive/Development/messenger/public/stylesheets/ui_toolkit/sass/ui/jquery-ui.custom.scss | |
16: .ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } | |
17: | |
18: .ui-widget { font-family: Helvetica Neue,Arial,sans-serif; font-size: 1.1em; } | |
19: .ui-widget .ui-widget { font-size: 1em; } | |
20: .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Helvetica Neue,Arial,sans-serif; font-size: 1em; } | |
21: .ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff url(#{$host}/jquery_ui/ui-bg_flat_100_ffffff_40x100.png) 50% 50% repeat-x; color: #333333; } |
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
.gitignore | 1 + | |
Gemfile | 3 +- | |
Gemfile.lock | 14 +- | |
app/controllers/messages_controller.rb | 1 + | |
app/controllers/recipients_controller.rb | 82 ++++++++++ | |
app/helpers/recipients_helper.rb | 2 + | |
app/models/message.rb | 25 +++- | |
app/views/messages/_form.html.haml | 71 +-------- | |
app/views/recipients/_recipient.json.haml | 6 + | |
config/routes.rb | 5 + |
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
<!-- an example "friend label" --> | |
<div class='friend_container'> | |
<div class='friend_image'> | |
<div class='image'></div> | |
</div> | |
<div class='friend_name'>@adorableLizard</div> | |
<div class='friend_info'>Twitter User</div> | |
</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 UiController < ApplicationController | |
layout 'standard_with_top' | |
def index | |
end | |
def buttons | |
end | |
def accordion |