Skip to content

Instantly share code, notes, and snippets.

View jwdeane's full-sized avatar

James Deane jwdeane

View GitHub Profile
@jwdeane
jwdeane / removeWord.js
Created November 17, 2009 16:58
Remove a word with jQuery
// http://johannburkard.de/blog/programming/javascript/6-quick-jquery-tips-text-manipulation-timers-and-elements.html
// The simple way – using regular expressions:
var el = $('#id');
el.html(el.html().replace(/word/ig, ""));
@jwdeane
jwdeane / snippet.txt
Created July 8, 2009 18:14 — forked from anonymous/snippet.txt
YQL Cinema Query
select * from html where url ="http://uk.movies.yahoo.com/cinemas/index.html?mid=&cid=3266&sp=mov&zip=me13er" and xpath="//div[@class='cintbl']/table[@class='timetable']"
@jwdeane
jwdeane / incrementer.js
Created March 19, 2009 13:51
incrementer
// Incrementer
$(document).ready(function() {
val = $('#episode').val();
$('#minus').click(function() {
if (val>0) {
$('#episode').attr('value', --val);
console.log(val);
} else if (val=0) {