Skip to content

Instantly share code, notes, and snippets.

Jess Anand's Chickpea Curry

Ingredients

  • Vegetable oil to cover pan
  • 1 Onion, chopped
  • 1 TSP whole cumin
  • 1/2 TSP whole cloves
  • 2 TSP dried coriander, ground
  • 1/2 TSP cinnamon, ground
  • 1/2 TSP nutmeg, ground
@aesnyder
aesnyder / random-weighted.coffee
Last active October 22, 2017 16:55
Weighted random value in underscore or lodash
## First you can generate a weighted array
weighted 1: true, 2: false # [true, false, false]
weighted 1: true, 3: false # [true, false, false, false]
## Then random picks one randomly
## The following will return true or false with a 1:3 ratio
random weighted 1: true, 3: false
@angrytoast
angrytoast / pr-populate.js
Last active August 29, 2015 14:00
github pull request template bookmarklet
javascript:(function() {var e = jQuery('[id^=pull_request_body]');if (e.length) {e.val('## What? Why?\nWhat was changed. Why did are we making this change?\n\n\n## Release Notes\n- Description text for the weekly report.\n- Description text for the weekly report.\n\n\n## Deployment Steps\nWhat needs to be done on day of launch.');}})();