Skip to content

Instantly share code, notes, and snippets.

View JialunC's full-sized avatar

Thomas C JialunC

  • in a galaxy far, far away
View GitHub Profile
@JialunC
JialunC / example.py
Last active October 24, 2018 17:32
A simple async code
import asyncio
async def print_something_twice():
print('Hello World')
await asyncio.sleep(1)
print('Hello to you three')
async def print_something():
print('Hello to you two')
@JialunC
JialunC / synchronous.py
Created October 30, 2017 02:38
My Synchronous Code
import requests
import json
import pandas as pd
import config
def store_json(symbol):
payload = {
'function': 'TIME_SERIES_DAILY_ADJUSTED',
'symbol': symbol,
'outputsize': 'full',

#Simple Authentication with Bcrypt

This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.

The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).

You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault

##Steps