Skip to content

Instantly share code, notes, and snippets.

View lethee's full-sized avatar

lethee lethee

  • Weaveus
  • Seoul, South Korea
View GitHub Profile
@lethee
lethee / future.cpp
Created February 13, 2014 07:45
future
#include <iostream>
#include <future>
#include <list>
// http://isocpp.org/blog/2013/07/what-is-stdpromise-stackoverflow
// g++ -std=c++0x -pthread test.cpp
// tested in gcc 4.6.3
class OneTask {
# 79328b2 - (master) update 5 (10 minutes ago) <Seonghwan Lee>
# d1a216d - update 4 (15 minutes ago) <Seonghwan Lee>
# 228c3ec - update 3 (15 minutes ago) <Seonghwan Lee>
| * 93c5cd1 - (HEAD, local) update 4 (11 minutes ago) <Seonghwan Lee
| * a4735b8 - update 3 (12 minutes ago) <Seonghwan Lee>
| * 124d2ad - Merge branch 'master' into local (12 minutes ago) <S
|/|
# | 31e5a9c - update 2 (15 minutes ago) <Seonghwan Lee>
# | ee51d80 - update 1 (16 minutes ago) <Seonghwan Lee>
| * 49a6d64 - update 2 (14 minutes ago) <Seonghwan Lee>
@lethee
lethee / install-node.sh
Created December 1, 2012 06:52
Install ZSH with w.eave.us
nvm install v0.8.15
nvm alias default v0.8.15
nvm use default
@lethee
lethee / server.py
Created September 13, 2012 13:09
Test server/client apps Using Python's subprocess
import time
import sys
for i in range(5):
time.sleep(1)
sys.stdout.write("%d\n" % i)
sys.stdout.flush()
@lethee
lethee / gist:2708814
Created May 16, 2012 08:50
disable me2day f... discovery view
/**
* Disable Discovery or Quick & Toggle with dblClick
*
* by http://me2day.net/ssemi
*/
function m2m_disable_discovery() {
jQuery('div.post_section').dblclick(function(){
jQuery(this).toggleClass('discovery');
}).removeClass('discovery');
}