Skip to content

Instantly share code, notes, and snippets.

@rjungemann
rjungemann / watch.js
Created February 23, 2010 19:39
JQuery monitoring DOM properties
// Thanks to James Podolsey for this code, from the "Monitoring DOM
// Properties" article, located at
// http://james.padolsey.com/javascript/monitoring-dom-properties/
jQuery.fn.watch = function(id, fn) {
return this.each(function() {
var self = this, oldVal = self[id];
$(self).data('watch_timer',
setInterval(function() {
@tedheich
tedheich / todosqlite.py
Created October 21, 2009 13:19
A simple command line todo list using SQLite and Python
#! /sw/bin/python
# filename: todosqlite.py
# author: ted heich
# blog: http://fornoobs.info
#
# A simple todo list app using Python and sqlite using the cmd line interface
#
#from pysqlite2 import dbapi2 as sqlite
import pysqlite2.dbapi2 as sqlite
@tedheich
tedheich / todosqlite-createdb.py
Created October 21, 2009 13:18
script to create the sqlite db for todo.py
#-*- coding: ISO-8859-1 -*-
# filename: todosqlite-createdb.py
# author: ted heich
#
# This program is the first part of the todosqlite app, this program handles
# the creation of the table. If todo.sqlite does not exist on the file system.
# Everytime you run this code, the table todo will be dropped and recreated--so be warned.
# it is created automatically.
#
@nkohari
nkohari / linq.js
Created September 26, 2009 20:13
linq.js
/*
linq.js -- a simple LINQ implementation for javascript
Author: Nate Kohari <[email protected]>
Copyright (C) 2009 Enkari, Ltd.
Released under the Apache 2.0 license (http://www.opensource.org/licenses/apache2.0.php)
*/
Array.prototype.all = function(func) {
var result = true;
this.iterate(function(item) {

See .