Skip to content

Instantly share code, notes, and snippets.

View woosungchu's full-sized avatar

woosungchu woosungchu

View GitHub Profile
@woosungchu
woosungchu / app.js
Created February 7, 2017 14:34 — forked from jgwhite/app.js
Ember SVG Example
App = Ember.Application.create();
App.ApplicationRoute = Ember.Route.extend({
model: function() {
return DATA;
}
});
App.PieChartComponent = Ember.Component.extend({
tagName: 'svg',
@woosungchu
woosungchu / translate.py
Created October 9, 2016 16:05 — forked from jseabold/translate.py
Use Google Translate API from Python
# -*- coding: utf-8 -*-
"""
You need to fill in your API key from google below. Note that querying
supported languages is not implemented.
Language Code
-------- ----
Afrikaans af
Albanian sq
Arabic ar
@woosungchu
woosungchu / server.py
Created September 7, 2016 09:23 — forked from davidadamojr/server.py
Accept CORS requests in Flask
from flask import Flask
from flask.ext import restful
from flask.ext.restful import Api
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config.from_object('config')
#flask-sqlalchemy
db = SQLAlchemy(app)