Skip to content

Instantly share code, notes, and snippets.

View dahlia's full-sized avatar
⚰️
Off work for the bereavement of my father

Hong Minhee (洪 民憙) dahlia

⚰️
Off work for the bereavement of my father
View GitHub Profile
@dahlia
dahlia / gist:879076
Created March 21, 2011 05:23
LEP 11 — 서비스 애플리케이션 배포 표준

LEP: 11
LEP-Scope: lunant
Title: 서비스 애플리케이션 배포 표준
Author: Hong MinHee dahlia@lunant.net
Status: Active
Content-Type: text/x-markdown; charset=utf-8
Content-Language: ko-kr
Created: 04-Aug-2010

서비스 애플리케이션 배포 표준

<person> := class (name: <string>, email: url.<email>, url: url.<url>,
gender: <gender>, dob: datetime.<date>) {
name := name
email := email
url := url
gender := gender
dob := dob
first-last := property {
if (name.contains?(',')) {
@dahlia
dahlia / lisp.rb
Created August 31, 2011 09:04
30 miniute Lisp, 2011
# Lisp
class Symbol
def evaluate(env)
env[self]
end
end
[Fixnum, NilClass, TrueClass, FalseClass, String].each do |cls|
cls.class_eval %{
@dahlia
dahlia / __init__.py
Created September 2, 2011 13:42
Lisp Parser
""":mod:`lispparser` --- Lisp parser
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
__author__ = 'Hong Minhe <minhee' '@' 'dahlia.kr>'
__license__ = 'Public Domain'
@dahlia
dahlia / expected-clr.txt
Created September 7, 2011 11:03
Lisp Tests
11
4
hello, world
hello, world
<!DOCTYPE html>
@dahlia
dahlia / gist:1236923
Created September 23, 2011 07:52
nginx-upstream-dynamicweight
upstream styleshare {
weight_header X-App-Load '^\s*(\d+)\s*$';
server 127.0.0.1:5000;
server 127.0.0.1:5001;
server 127.0.0.1:5002;
}
<?php
function combinations(array $pool, $r) {
$n = count($pool);
if ($r > $n) {
return array();
}
$indices = range(0, $r - 1);
$result = array();
$tuple = array();
@dahlia
dahlia / hello_c++0x.cpp
Created October 23, 2011 00:45 — forked from suminb/hello_c++0x.cpp
My First C++0x (C++11) Program
#include <iostream>
#include <iterator>
#include <list>
using namespace std;
template<typename Iter>
iterator_traits<Iter>::value_type
reduce(function<iterator_traits<Iter>::value_type (iterator_traits<Iter>::value_type, iterator_traits<Iter>::value_type)> f,
Iter begin, Iter end,
@dahlia
dahlia / gist:1527847
Created December 28, 2011 12:54
멘토 제안 자유 프로젝트 후보

멘토 제안 자유 프로젝트 후보

안녕하세요. 홍민희 멘토입니다. 이번에 제가 자유 프로젝트를 멘티 여러분들께 제안해볼까 합니다만, 생각중인 것이 몇개 있는데 그 중 어떤 것이 주로 호응이 좋은지 모르겠어서 이렇게 설문을 할까 합니다. 아래 제가 제안한 프로젝트 가운데 가장 흥미로운 프로젝트가 무엇인지(만약 제가 제안한다면 함께 도전해볼 마음이 생기는지) 알려주셨으면 합니다.

(제가 제안하는 세 프로젝트 모두 자유 프로젝트이기 때문에 성공에 대한 부담은 없습니다. 따라서 제 개인적인 흥미 위주로 선정된 것들입니다.)

클라우드에서의 대용량 서비스 디플로이 자동화

@dahlia
dahlia / hstore.py
Created February 18, 2012 14:58
PostgreSQL hstore + SQLAlchemy
""":mod:`hstore` --- Using PostgreSQL hstore with SQLAlchemy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. note::
I released it under Public Domain. Feel free to use!
It provides :class:`Hstore` type which makes you to store Python
dictionaries into hstore columns in PostgreSQL. For example::