Skip to content

Instantly share code, notes, and snippets.

@tomhicks
tomhicks / plink-plonk.js
Last active March 18, 2024 02:23
Listen to your web pages
@eunjae-lee
eunjae-lee / gist:3793233
Created September 27, 2012 09:59
Get Html5 Video Url of Youtube
url = document.getElementsByTagName('video')[0].src
console.log(url);
@joshleitzel
joshleitzel / pull_to_refresh.coffee
Created August 19, 2012 21:29
Pull to Refresh on a TableView with Appcelerator Titanium
# (This is CoffeeScript. The compiled JavaScript is below.)
# Pull to Refresh in a TableView on Appcelerator Titanium
# Create an instance of the PullToRefresh class and set it as the table's pullView
# This class is based on code from http://developer.appcelerator.com/blog/2010/05/how-to-create-a-tweetie-like-pull-to-refresh-table.html
# Appcelerator Titanium SDK version 2.1.0.GA, tested only with iOS
class PullToRefresh
constructor: ->
@render()
@dakrone
dakrone / core.clj
Created February 25, 2011 02:59
Collapse page results into a lazy-seq that only fetches when needed
(ns lazywindow.core)
;; Lazily fetch page results as needed
;; How many results in a page
(def page-size 5)
(defn get-page*
"Retrieve a vector of results for a page"
[page-num]