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
@shlee322
shlee322 / check_password.js
Created February 17, 2015 04:28
개인정보의 기술적·관리적 보호조치 기준에 따른 비밀번호 작성 규칙 체크 함수
function check_password(pwd) {
// Copyright (c) 2015 Lee Sahghyuck <[email protected]>
// MIT License (http://opensource.org/licenses/mit-license.php)
// Author : Lee Sahghyuck <[email protected]>
// Date : 2015.02.17
var char_type = 0;
if (/[a-z]/.test(pwd)) char_type = char_type + 1;
if (/[A-Z]/.test(pwd)) char_type = char_type + 1;
if (/[0-9]/.test(pwd)) char_type = char_type + 1;
@allieus
allieus / crawling_naver_webtoon.py
Created February 9, 2015 07:02
네이버 웹툰 <마음의 소리> 목록 크롤링
# coding: utf8
import urllib
from bs4 import BeautifulSoup
HOST = "http://comic.naver.com"
is_next = True
page = 1
while is_next:
page_url = HOST + "/webtoon/list.nhn?titleId=20853&weekday=fri&page={}".format(page)
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