Skip to content

Instantly share code, notes, and snippets.

@joelnet
joelnet / example.html
Created June 3, 2011 18:03
Unobtrusive Knockout support library for jQuery
Choose a ticket class: <select id="tickets"></select>
<p id="ticketOutput"></p>
<script id="ticketTemplate" type="text/x-jquery-tmpl">
{{if chosenTicket}}
You have chosen <b>${ chosenTicket().name }</b>
($${ chosenTicket().price })
<button data-bind="click: resetTicket">Clear</button>
{{/if}}
@daveliepmann
daveliepmann / stopwatch.cljs
Created August 19, 2014 13:18
ClojureScript stopwatch
(ns stopwatch)
(defn seconds-to-time
[secs]
(let [d (js/Date. (* secs 1000))]
{:hours (.getUTCHours d)
:minutes (.getUTCMinutes d)
:seconds (.getUTCSeconds d)}))
(defn display-time
@benoittgt
benoittgt / in_relentless_pursuit_of_rest_notes.md
Created October 20, 2017 12:42
"In Relentless Pursuit of Rest" from Derek Prior
@Adirockzz95
Adirockzz95 / examples.py
Last active January 15, 2026 16:12
manim animation examples
#!/usr/bin/env python
#
# Usage: python extract_scene.py -p [filename] [classname]
# eg: python extract_scene.py -p examples.py DrawCircle
#
import math
import numpy as np