Skip to content

Instantly share code, notes, and snippets.

View vinayh's full-sized avatar

Vinay Hiremath vinayh

View GitHub Profile
@vinayh
vinayh / chocolate_chip_cookies.md
Last active November 12, 2018 13:53
Chocolate chip cookies (plant-based!)

Chocolate chip cookies (plant-based!)

Dry

  • 120g (1 cup) white flour, spelt or whole-grain should also work
  • 1/2 teaspoon (TL) baking soda (Natron), can be substituted with 3/2 teaspoon (TL) baking powder (Backpulver)
  • 1/4 teaspoon (TL) salt
  • 50g (1/4 cup) white sugar
  • 50g (1/4 cup) brown sugar, can be substituted with more white sugar though this is less preferable
  • 60g (1/3 cup) dark chocolate chips, chunks, or chopped dark chocolate bar

Wet

Keybase proof

I hereby claim:

  • I am vinayh on github.
  • I am vinayh (https://keybase.io/vinayh) on keybase.
  • I have a public key whose fingerprint is 021A FEA9 0E73 5DFA C443 AB89 AF3A 6359 1FA7 B9A3

To claim this, I am signing this object:

@vinayh
vinayh / data.json
Created July 29, 2015 13:11
JSON data
[
{
"fullName": "Clayton Schneider",
"qualifiedSchoolName": "Snowpoke",
"email": "test@umich.edu",
"fullGradDate": "May 2017",
"major": "mollit",
"secondMajor": "laboris"
},
{
Warning 1: Latitude grid not spaced evenly.
Seting projection for grid spacing is within 0.1 degrees threshold.
Driver: netCDF/Network Common Data Format
Files: csdsf.sfc.gauss.2014.nc
Size is 192, 94
Coordinate System is `'
Origin = (-0.937500000000000,89.494064331054688)
Pixel Size = (1.875000000000000,-1.904129028320312)
Metadata:
Driver: netCDF/Network Common Data Format
Files: csdsf.sfc.gauss.2015.nc
Size is 512, 512
Coordinate System is `'
Metadata:
NC_GLOBAL#Conventions=COARDS
NC_GLOBAL#description=Data is from NMC initialized reanalysis
(4x/day). It consists of T62 variables interpolated to
pressure surfaces from model (sigma) surfaces.
NC_GLOBAL#history=created 2013/12 by Hoop (netCDF2.3)
@vinayh
vinayh / apply
Created July 4, 2015 18:38
Source of apply
(defn apply
"Applies fn f to the argument list formed by prepending intervening arguments to args."
{:added "1.0"
:static true}
([^clojure.lang.IFn f args]
(. f (applyTo (seq args))))
([^clojure.lang.IFn f x args]
(. f (applyTo (list* x args))))
([^clojure.lang.IFn f x y args]
(. f (applyTo (list* x y args))))
2015-07-01T22:12:35.707580+00:00 heroku[web.1]: State changed from up to starting
2015-07-01T22:12:38.355846+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2015-07-01T22:12:38.892956+00:00 app[web.1]: /app/.lein/bin/lein: line 1: 9 Terminated $LEIN_JAVA_CMD -XX:+TieredCompilation $LEIN_JVM_OPTS -Dfile.encoding=UTF-8 -Dmaven.wagon.http.ssl.easy=false -Dmaven.wagon.rto=10000 -Dleiningen.original.pwd="$PWD" -Dleiningen.trampoline-file="$TRAMPOLINE_FILE" -cp "$CLASSPATH" clojure.main -m leiningen.core.main "$@"
2015-07-01T22:12:39.880999+00:00 heroku[web.1]: Starting process with command `java $JVM_OPTS -jar target/contact-form.jar`
2015-07-01T22:12:39.876670+00:00 heroku[web.1]: Process exited with status 143
2015-07-01T22:12:45.308762+00:00 app[web.1]: Listening on port: 33787
2015-07-01T22:12:45.366297+00:00 app[web.1]: 2015-07-01 22:12:45.365:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:33787
2015-07-01T22:12:45.324083+00:00 app[web.1]: 2015-07-01 22:12:45.323:
@vinayh
vinayh / 370_final_review.md
Created April 21, 2015 20:04
EECS 370 Final Review Nodes

EECS 370 (Winter 2015) final review session on 2015-04-18 at 14:00

Random things to know

  • little endian vs big endian
  • address space

Single-cycle datapath

  • clock period is an electrical stimulus that activates the processor
  • CPI of 1 (one cycle per instruction) with a loong clock period
  • if an instruction takes 10ns, another takes 20ns, another takes 25ns, the clock period is 25ns