Skip to content

Instantly share code, notes, and snippets.

View ltbringer's full-sized avatar
💭
😸 I overthink so that you don't have to.

ltbringer ltbringer

💭
😸 I overthink so that you don't have to.
View GitHub Profile
@asanoboy
asanoboy / makewav.js
Created October 30, 2012 11:39
How to make a WAV file in Javascript.
var Wav = function(opt_params){
/**
* @private
*/
this._sampleRate = opt_params && opt_params.sampleRate ? opt_params.sampleRate : 44100;
/**
* @private
*/

Pressure Cooker Chicken

Ingredients

  • 3-4 Onions
  • 2-3 Tomatoes
  • Pick a few aromats on whatever is available. eg. Elaichi, Dalchini, Laung, Bay Leaf

Powders and Pastes

  • Hing
  • Dhania
  • Jeera
@ttesmer
ttesmer / AD.hs
Last active October 29, 2024 15:35
Automatic Differentiation in 38 lines of Haskell using Operator Overloading and Dual Numbers. Inspired by conal.net/papers/beautiful-differentiation
{-# LANGUAGE TypeSynonymInstances #-}
data Dual d = D Float d deriving Show
type Float' = Float
diff :: (Dual Float' -> Dual Float') -> Float -> Float'
diff f x = y'
where D y y' = f (D x 1)
class VectorSpace v where
zero :: v