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
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
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
url = document.getElementsByTagName('video')[0].src | |
console.log(url); |
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
# (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() |
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
(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] |