Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
#HealthHack2019

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

💭
#HealthHack2019
View GitHub Profile
@aspiringguru
aspiringguru / postgres-cheatsheet.md
Created Jul 18, 2017 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet
View postgres-cheatsheet.md

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 *.*

@aspiringguru
aspiringguru / pythonNumpyMedian.py
Created Feb 22, 2017
python numpy mean being weird
View pythonNumpyMedian.py
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)
View 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'},