Skip to content

Instantly share code, notes, and snippets.

View jeffreychung's full-sized avatar
🌴
On vacation

Jeff jeffreychung

🌴
On vacation
View GitHub Profile
@jeffreychung
jeffreychung / blockstackverify
Created May 5, 2018 07:49
gist to verify my identity for blockstack
Verifying my Blockstack ID is secured with the address 15WiGi47fsXR7MbNZfSXYtcDy2gAzNP6SS https://explorer.blockstack.org/address/15WiGi47fsXR7MbNZfSXYtcDy2gAzNP6SS
@jeffreychung
jeffreychung / weed.json
Created October 1, 2017 07:14 — forked from coleww/weed.json
2,945 types of weed
{
"weeds": [
"+ Speed",
"1 Eyed Jamaican",
"1024",
"2 Pounder",
"2 Can Sam",
"2064",
"3fer",
"3 Kings",

Build a scalable Twitter clone with Django and GetStream.io

In this tutorial we are going to build a Twitter clone using Django and GetStream.io, a hosted API for newsfeed development. We will show you how easy is to power your newsfeeds with GetStream.io. At the end of this tutorial we will have a Django app with a profile feed, a timeline feed, support for following users, hashtags and mentions.

I assume that you are familiar with Django. If you're new to Django the [official tutorial] (https://docs.Djangoproject.com/en/1.7/intro/install/) explains it very well.

Bootstrap the Django application

@jeffreychung
jeffreychung / log.md
Created September 14, 2017 19:25 — forked from mattstauffer/log.md
Introduction to Gistlog

So, you might be asking yourself, what is Gistlog?

Gistlog is a blogging "platform" for people who want to quickly write and publish content, in Markdown, and don't want to bother with yet another platform and yet another login and yet another group hoarding their content. With Gistlog, you use your pre-existing Github login, you store the data in your own Github account, and you can publish with a single click.

Using Gistlog

  1. Create a public gist with a single file using Markdown. Set the gist description to be the title of your blog post
  2. Copy the gist URL, and paste it into the text box on the Gistlog home page
  3. Copy your resulting URL and share it as your blog post--note that it will be in the form of http://gistlog.co/your-github-username/gist-id
  4. If you want to have your own Gistlog landing page (e.g. gistlog.co/mattstauffer), read all about it

Keybase proof

I hereby claim:

  • I am jeffreychung on github.
  • I am jeffreychung (https://keybase.io/jeffreychung) on keybase.
  • I have a public key whose fingerprint is 94A8 62B8 D2A9 18A5 779E D44F 624A 18FA 5779 3E73

To claim this, I am signing this object:

We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 17 columns, instead of 5. in line 4.
the_geom,Business_N,Business_T,Business_A,Business_C,Business_S,Business_Z,Business_B,Business_O,Permitting,Location_T,Neighborho,Number_o_3,CV_for_N_1,SqMi,ZIP,ID_2
POINT (-122.41941327978273 37.78662965327916),Grass Roots,Medical Cannabis Dispensary,1077 Post St,San Francisco,California,94109,693017,"""Grass Roots Nonprofit Collective"," Inc.""",SFDPH,Fixed,Tenderloin,"532,593,654",2.7%,0.39280575812,94109
POINT (-122.42987786420763 37.771891944364775),Good Fellows Cannabis Club,Medical Cannabis Dispensary,473 Haight St,San Francisco,California,94117,859038,Mohamed Khatib,SFDPH,Fixed,Hayes Valley,"332,407,882",3.0%,0.49039175549,94117,2
POINT (-122.43852349455584 37.776067021942126),BASA,Medical Cannabis Dispensary,1328 Grove St,San Francisco,California,94117,1182005,"""Bay Area Safe Alternatives Collective"," Inc.""",SFDPH,Fixed,Hayes Valley,"332,407,882",3.0%,0.49039175549,94117
POINT (-122.47113174292065 37.780400497045804),Hemp Center (aka Patient Place),Medical Cannabis Dispensary,4811 Geary Blvd,San F
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 17 columns, instead of 5. in line 4.
the_geom,Business_N,Business_T,Business_A,Business_C,Business_S,Business_Z,Business_B,Business_O,Permitting,Location_T,Neighborho,Number_o_3,CV_for_N_1,SqMi,ZIP,ID_2
POINT (-122.41941327978273 37.78662965327916),Grass Roots,Medical Cannabis Dispensary,1077 Post St,San Francisco,California,94109,693017,"""Grass Roots Nonprofit Collective"," Inc.""",SFDPH,Fixed,Tenderloin,"532,593,654",2.7%,0.39280575812,94109
POINT (-122.42987786420763 37.771891944364775),Good Fellows Cannabis Club,Medical Cannabis Dispensary,473 Haight St,San Francisco,California,94117,859038,Mohamed Khatib,SFDPH,Fixed,Hayes Valley,"332,407,882",3.0%,0.49039175549,94117,2
POINT (-122.43852349455584 37.776067021942126),BASA,Medical Cannabis Dispensary,1328 Grove St,San Francisco,California,94117,1182005,"""Bay Area Safe Alternatives Collective"," Inc.""",SFDPH,Fixed,Hayes Valley,"332,407,882",3.0%,0.49039175549,94117
POINT (-122.47113174292065 37.780400497045804),Hemp Center (aka Patient Place),Medical Cannabis Dispensary,4811 Geary Blvd,San F
@jeffreychung
jeffreychung / WordPress Setup Script.md
Created November 8, 2016 03:57 — forked from kjbrum/WordPress Setup Script.md
Easily set up a project with a Bitbucket repository, ServerPilot application, base plugin and theme, as well as run miscellaneous WordPress tasks.

WordPress Setup Script

Easily set up a project with a Bitbucket repository, ServerPilot application, base plugin and theme, as well as run miscellaneous WordPress tasks. Should be used with https://github.com/Mixd/wp-deploy.

Step 1: Setup project

# Enter your project directory
cd your/desired/project/directory
@jeffreychung
jeffreychung / devex_news_lab.md
Created April 13, 2016 00:11 — forked from dsager/devex_news_lab.md
The Devex NewsLab: Using Google Docs as a CMS

The Devex NewsLab: Using Google Docs as a CMS

Note: This post was originally published on the Devex Tech Blog

This article describes our current content management solution and gives some insight on the parts of the implementation we think are interesting.

As you might know a big part of our website is dedicated to News content covering various aspects of international development. At Devex we usually publish around 10 articles per day which are sometimes planned and worked on several days or even weeks in advance. There are different people involved in the process including both internal and external writers, editors, researchers or marketing folks. Some of them contribute to the article's content while others just need to be aware what is going on to coordinate their own work like social media campaigns.

Marijwhatnow? A Guide to Legal Marijuana Use In Seattle
Written by Jonah Spangenthal-Lee on November 9, 2012
The people have spoken. Voters have passed Initiative 502 and beginning December 6th, it is not a violation of state law for adults over 21 years old to possess up to an ounce of marijuana (or 16 ounces of solid marijuana-infused product, like cookies, or 72 ounces of infused liquid, like oil) for personal use. The initiative establishes a one-year period for the state to develop rules and a licensing system for the marijuana production and sale.
Marijuana has existed in a grey area in Seattle for some time now. Despite a longstanding national prohibition on marijuana, minor marijuana possession has been the lowest enforcement priority for the Seattle Police Department since Seattle voters passed Initiative 75 in 2003. Officers don’t like grey areas in the law. I-502 now gives them more clarity.
Marijuana legalization creates some challenges for the Seattle Police Department, but SPD is already workin