Skip to content

Instantly share code, notes, and snippets.

# Pyenv 설치 (https://github.com/yyuu/pyenv-virtualenv)
brew install pyenv-virtualenv
# ~/.bash_profile 파일에 아래 내용 추가
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

# 사용할 Python 버전을 미리 깔고 (최신버전을 쓰세요, 예로 3.6.1을 들겠습니다.)
pyenv install 3.6.1
 아쏜석   처샤져  쌱셔산썩  사아우아아
밯     빠   부 아   아   아
 산썩수  우   주 샥쏘뻐사    싹
    맣 석   차 뽀  아    희
어어샤여   아아아  오   아   우
@danharper
danharper / gulpfile.js
Last active April 11, 2024 08:31
New ES6 project with Babel, Browserify & Gulp
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var watchify = require('watchify');
var babel = require('babelify');
function compile(watch) {
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel));

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).

@ericelliott
ericelliott / essential-javascript-links.md
Last active April 22, 2024 10:15
Essential JavaScript Links
@seoh
seoh / Package Control.sublime-settings
Last active August 29, 2015 14:11
Sublime Text Preferences
{
"installed_packages":
[
"AutoFileName", // 열려있는 디렉토리 기준으로 리소스의 경로 자동 완성
"Better CoffeeScript", // CoffeeScript 추가 Snippet들
"DashDoc", // Dash의 Snippet 연동
"Diffy", // 2 Column으로 파일을 열면 비교
"DocBlockr", // Doxygen 스타일 등의 주석 포맷 자동생성
"Emmet",
"FixMyJS", // 뭔가 구림. 잘 안씀.
@gmr
gmr / consul.lua
Created July 14, 2014 17:03
Dynamic Nginx upstream nodes using Consul
module("resty.consul", package.seeall)
_VERSION = '0.1.0'
function service_nodes(service)
local http = require "resty.http"
local json = require "cjson"
local hc = http:new()
local upstream = ""
import code
from myapp import app
env = {
'app': app,
}
with app.app_context():
code.interact(local=env)
@branneman
branneman / better-nodejs-require-paths.md
Last active April 25, 2024 13:21
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions