Skip to content

Instantly share code, notes, and snippets.

View minhoryang's full-sized avatar
😍
Happy Today!

Minho Ryang minhoryang

😍
Happy Today!
View GitHub Profile
from flask import Flask, request, session, g, redirect, url_for
from flask import abort, render_template, flash
app = Flask(__name__)
app.config.from_object(__name__)
hosts = {
'b': "https://code.google.com/p/android/issues/"
's': "https://android.googlesource.com/",
'r': "https://android-review.googlesource.com/",

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

--- appicon.py 2015-01-23 02:21:33.000000000 +0900
+++ appicon2.py 2015-01-23 02:47:26.000000000 +0900
@@ -4,6 +4,7 @@
import os
import sys
from wand.image import Image
+from wand.exceptions import BlobError, CoderError, MissingDelegateError
DIMENSIONS = {
'OSX': [
@allieus
allieus / app_icon_creator.py
Last active September 22, 2015 17:55
OSX/iOS/Android 앱 아이콘 생성기
#!/usr/bin/env python2
# coding: utf-8
from __future__ import print_function
from tempfile import NamedTemporaryFile
import os
import sys
from shutil import copyfile
from wand.image import Image
DIMENSIONS = {
@allieus
allieus / spellchecker.py
Last active August 29, 2015 14:13
네이버 자동 띄어쓰기
#!/usr/bin/env python2
# coding: utf-8
from __future__ import print_function
import sys
import re
import json
import urllib
from colorama import init, Fore, Back, Style
URL = 'http://csearch.naver.com/dcontent/spellchecker.nhn'
@splhack
splhack / Unity-unionfs.md
Last active April 14, 2017 23:04
Unity with unionfs on OS X
@lxfontes
lxfontes / gist:8a6ce11a33a1171a9390
Created December 8, 2014 20:16
nginx + consul
server {
server_name titans.local;
location / {
set $target '';
set $upstream_name 'titans_staging_web';
rewrite_by_lua '
local resolver = require "resty.dns.resolver"
local r, err = resolver:new {
nameservers = {{"127.0.0.1", 8600}},
anonymous
anonymous / launch-or-activate_putty.ahk
Created November 25, 2014 07:35
launch-or-activate putty
!+p::
If WinExist("ahk_class PuTTY") {
WinActivate
} else {
Run, D:\Dropbox\Bin\putty.exe
}
Return
from ws4py.client.threadedclient import WebSocketClient
class DummyClient(WebSocketClient):
def opened(self):
print "Opened websocket"
def closed(self, code, reason=None):
print "Closed down", code, reason
def received_message(self, m):
@usagi
usagi / 2014-11-19.md
Last active August 29, 2015 14:09
HTTP2: nghttp2_asioにウェブブラウザーでアクセスしてみる

ブログポストより綺麗(´・ω:;.:...

−−−−

HTTP2サーバーを組み込んだソフトウェアを開発しようと思うと、現在有力な選択肢は nghttp2h2o かなって思います。今回は nghttp2 をビルドして得られる libnghttp2_asio.so をリンクしたサーバーと、このサーバーをHTTP2で利用可能なクライアントとして Firefox 35 Developer Edition を使ってみます。