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
#!/usr/bin/env python | |
# | |
# this script will convert the hdhomerun listings (channels) to | |
# m3u format for use with external media players. before running | |
# this script, be sure to modify the <<config>> variable settings | |
# below. | |
# | |
# Suggested Usage: This script should be run on a cron to keep | |
# the channel lineup to date. Below is an example of how to execute this script: | |
# python /path/to/script/hdhomerun-prime-listings-to-m3u.py > /path/to/playlist.m3u |
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
/** @jsx this */ | |
//classic callback | |
function clicker(props, children, render) { | |
var clicks = 0; | |
function clicked(event) { | |
event.preventDefault(); | |
clicks += 1; | |
render(); //or render(clicks) to allow caching | |
} | |
return function() { |
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 siteDef(state) { | |
return <div> | |
function* () { | |
var state = "Your Site"; | |
var resolve; | |
function render() { | |
return <h1 contentEditable={true} onInput={onInput}>{state}</h1>; | |
} | |
function rerender() { |