Skip to content

Instantly share code, notes, and snippets.

@assaflavi
assaflavi / pandas.ipynb
Created February 7, 2013 17:06
pandas
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
"""
piphub - shortcut for user-only editable install from GitHub
usage:
piphub org[/repo] [name]
`name` only needs to be specified if it differs from `repo`.
If the organization, repo, and name all have the same value (e.g. ipython),
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@assaflavi
assaflavi / computeSunrise.js
Created January 6, 2021 17:58 — forked from Tafkas/computeSunrise.js
A simple sunrise-sunset algorithm taken from http://williams.best.vwh.net/sunrise_sunset_algorithm.htm in JavaScript
function computeSunrise(day, sunrise) {
/*Sunrise/Sunset Algorithm taken from
http://williams.best.vwh.net/sunrise_sunset_algorithm.htm
inputs:
day = day of the year
sunrise = true for sunrise, false for sunset
output:
time of sunrise/sunset in hours */

Keybase proof

I hereby claim:

  • I am assaflavi on github.
  • I am assaflavi (https://keybase.io/assaflavi) on keybase.
  • I have a public key ASC3R0c5eQAwOKBEQI3B3jKHNDbKJCeUiClGfXYunuds5wo

To claim this, I am signing this object:

`/+o/.
.+sso+/:oydyo/:-:+shdys/ `-:. `-/+o+/`
`/sdh+/::/::ss:`ymdhyso//hmMNyhNNms+ososys+/-:/shms/`
.+hNNy++oo+/.`.--/osyhdmNNMMMMMMMMMNdsssssoso+hhhhsoo+ymdo.
-smNy/+ymmmmmNNNNMNMMMMMNNNmmNMMMMMMMMMho:///:--shydNMMNdo-sNs`
-hNd+-sNMNdmNMMMNNNMNNNMMMddNMMNNmNMMMMMMNmy+///::/:-:/++ymNNdmMN:
`sNMs`+NMNNNMMMMNNNMMMMMMNmhyso///+ohMmoNMmoo+/::/-:oymNNmsosshdhmMM/
+NMMy`hMMMhyNMNMMNNNMds:-.`-:syddmNMMmyo`+yMMho:..-+//++omMNNNNNNNmdNMs
:mMMMh`yMNdodNNNMNMMMs.+sdmmmmmdhNMMMNhy/..`-syhNmdyssso+/.`:yNMMMMNMNMMMy
:NMNh:-+MMh+mdNNNNNMd.+NNMMMMMMMMmho:-......:--::ohNMMMMMMNmNy/.oNMNmNMNMMMs