Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Kraus zbyte64

  • Kraus Dev House
  • Fresno, CA USA
View GitHub Profile
@zbyte64
zbyte64 / hdhr-listings-to-m3u.py
Last active Dec 6, 2020 — forked from caseyavila/hdhr-listings-to-m3u.py
Convert HDHomeRun Prime Listings to M3U Format
View hdhr-listings-to-m3u.py
#!/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
@zbyte64
zbyte64 / sample.jsx
Last active Aug 29, 2015 — forked from anonymous/sample.jsx
Custom React
View sample.jsx
/** @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() {
View sample.jsx
function siteDef(state) {
return <div>
function* () {
var state = "Your Site";
var resolve;
function render() {
return <h1 contentEditable={true} onInput={onInput}>{state}</h1>;
}
function rerender() {