Skip to content

Instantly share code, notes, and snippets.

%%time
!conda install -c conda-forge fbprophet
!pip install [email protected]/oba11/pylib#egg=obalib
from fbprophet import Prophet
from obalib.athena import Athena
from obalib.s3 import S3 as s3_client
_, bucket, query_id = Athena.query('corona_cases', 'SELECT event_day as ds, cases as y FROM country')

Keybase proof

I hereby claim:

  • I am oba11 on github.
  • I am oba11 (https://keybase.io/oba11) on keybase.
  • I have a public key whose fingerprint is B053 96D5 ED31 9DA6 67F5 9965 0BEF A7CC 1E8F 0A83

To claim this, I am signing this object:

@oba11
oba11 / jsonval.sh
Last active August 29, 2015 14:06 — forked from cjus/jsonval.sh
#!/bin/bash
function jsonval {
temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop`
echo ${temp##*|}
}
json=`curl -s -X GET http://twitter.com/users/show/$1.json`
prop='profile_image_url'
picurl=`jsonval`
@oba11
oba11 / composer_config.json
Created November 14, 2013 09:42
Having Problems Running Composer Update?
{
"config": {
"github-oauth": {
"github.com": "YOUR_GITHUB_PERSONAL_API_KEYID"
}
}
}