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
rowView = | |
events: | |
'click .destroy': 'destroy' | |
destroy: (event)-> | |
event.preventDefault() | |
if confirm("Are you sure you want to delete " + setting.get("id") + "?") | |
@model.destroy() | |
class TableView extends Sagamore.Views.CollectionTable |
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
success_count = 0 | |
fail_count = 0 | |
lock = Mutex.new | |
DB = Application.db | |
DB.drop_table :race_test rescue nil | |
DB.create_table :race_test do |
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
var sys = require('sys'), | |
http = require('http'), | |
events = require('events'), | |
router = require('./lib/router').createRouter(); | |
// Routing table | |
router.get('/handlers/:name/messages', function(name) { | |
var response = this.response; | |
response.writeHead(200, {'Content-Type': 'text/plain'}); | |
handlers[name].addListener('message', function(message) { |
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
inthepink@inthepink1:~$ gem list | |
*** LOCAL GEMS *** | |
actionmailer (1.3.5) | |
Service layer for easy email delivery and testing. | |
actionpack (1.13.5) | |
Web-flow and rendering framework putting the VC in MVC. |
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
// ==UserScript== | |
// @name Lemmingtrail Image Inliner | |
// @namespace http://jasonstotz.com/ | |
// @version 0.0.1 | |
// @include http://*.lemmingtrail.com/* | |
// @include http://lemmingtrail.com/* | |
// ==/UserScript== | |
(function () { | |
var regex = /<a href="([^"]*)" class="tr1">IMAGE\s*REMOVED\s*-\s*CLICK\s*TO\s*VIEW<\/a>/g; |
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
function buffered_write(func) { | |
var old_write = document.write; | |
var buffer = ''; | |
document.write = function(string) { | |
buffer += string; | |
}; | |
func(); | |
document.write = old_write; | |
return buffer; | |
} |
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
function buffered_write(func) { | |
var old_write = document.write; | |
var buffer = ''; | |
document.write = function(string) { | |
buffer += string; | |
}; | |
func(); | |
document.write = old_write; | |
return buffer; | |
} |
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
12345 MY REALLY REALLY REALLY 123.99 | |
REALLY REALLY LONG DESC | |
RIPTION |
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
# rake/cap task completion | |
export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/} | |
_rakecomplete() { | |
COMPREPLY=($(compgen -W "`rake -s -T 2>/dev/null | awk '{{print $2}}'`" -- ${COMP_WORDS[COMP_CWORD]})) | |
return 0 | |
} | |
complete -o default -o nospace -F _rakecomplete rake |
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
json = getJsonFromServer(); | |
rule = Rule.from_json(json) | |
rule.condition_set | |
html = getHtmlRepresentation(); | |
rule = Rule.from_html(html) | |
rule.condition_set |