Skip to content

Instantly share code, notes, and snippets.

View aspiringguru's full-sized avatar
💭
#HealthHack2019

.- ... .--. .. .-. .. -. --. --. ..- .-. ..- aspiringguru

💭
#HealthHack2019
View GitHub Profile
@aspiringguru
aspiringguru / d3lib.md
Last active August 29, 2015 14:23 — forked from widged/d3lib.md

chartFactory

/affini-tech/ChartFactory

Based on D3.JS and Dimple, ChartFactory provide the ability to build quickly D3.JS charts without coding any lines of javascript. Just define your dashboard in a JSON and voila !

charts: [
        {id:'chart1',
         width:800,height:250,

xAxis:{type:'Category',field: "Month",orderRule:'Date'},

@aspiringguru
aspiringguru / pythonNumpyMedian.py
Created February 22, 2017 21:43
python numpy mean being weird
import numpy as np
x = [-1.58, 0.91, -0.73, -4.22, 4.19, -0.33]
print x
print np.median(x, axis=0)
print np.median(x)
print np.mean(x)
x = np.sort(x)
print x
print np.median(x, axis=0)
print np.median(x)
@aspiringguru
aspiringguru / postgres-cheatsheet.md
Created July 18, 2017 00:00 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

If run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).

Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*