Skip to content

Instantly share code, notes, and snippets.

View sublee's full-sized avatar
✔️
Hello, world!

Heungsub Lee sublee

✔️
Hello, world!
View GitHub Profile
@sublee
sublee / gist:10810018
Created April 16, 2014 05:14
ack-grep --help
Usage: ack-grep [OPTION]... PATTERN [FILE]
Search for PATTERN in each source file in the tree from cwd on down.
If [FILES] is specified, then only those files/directories are checked.
ack-grep may also search STDIN, but only if STDIN is a
pipe instead of a terminal.
Default switches may be specified in ACK_OPTIONS environment variable or
an .ackrc file. If you want no dependency on the environment, turn it
off with --noenv.
#include <stdio.h>
#include "zmq.h"
int main(int argc, char const *argv[]) {
printf("%d.%d.%d", ZMQ_VERSION_MAJOR, ZMQ_VERSION_MINOR, ZMQ_VERSION_PATCH);
return 0;
}
0: 278ms
1: 293ms
2: 279ms
3: 273ms
4: 280ms
5: 272ms
6: 278ms
7: 280ms
8: 275ms
9: 275ms
@sublee
sublee / actual-sourcecode.cs
Last active August 29, 2015 14:02
[삺 문제] Unity3D 소스코드를 BOM 없이 UTF-8으로 저장하면, 코드가 OS 기본 인코딩(내 경우 cp949)으로 읽히면서 못 읽는 문자는 '?'로 치환됨. "사<LF>"로 끝나는 한 줄 주석을 쓰면 끝 부분이 "??"로 읽혀서 다음 줄까지 주석으로 인식됨.
using UnityEngine;
using System;
using System.Text;
public class UTF8SourceCode : MonoBehaviour {
void Start () {
/* string sa = "사"; error CS1010: Newline in constant */
string sa = "사
"; /* EC-82-AC-0A */
string sasa = "사사"; /* EC-82-AC-EC-82-AC */
@sublee
sublee / sublee.txt
Last active August 29, 2015 14:07
ASCII art of my logo
     
     
  ▄▄▄  
     
     
>>> a, b = -60.44590665056613, 89.04689154734581
>>> a + 1.0 * (b - a)
89.04689154734582
>>> a, b = 68.98093438784633, -77.63391120367295
>>> a + 1.0 * (b - a)
-77.63391120367294
@sublee
sublee / fuckie.js
Created November 4, 2010 07:23
This source makes an error in Internet Explorer
{,};
$ curl -H"Accept: application/json" "http://www.hangulize.org/langs"
{
"length": 38,
"langs": [
{
"iso639-1": "az",
"iso639-2": "aze",
"code": "aze",
"name": "Azerbaijani",
"iso639-3": "aze"
@sublee
sublee / quine.py
Created January 27, 2011 05:48
A quine in Python I made at 2007
x='print"x=\'%s\'\\n%s"%(x.replace("\\\\","\\\\\\\\").replace("\'","\\\\\'"),x)'
print"x='%s'\n%s"%(x.replace("\\","\\\\").replace("'","\\'"),x)
@sublee
sublee / README.md
Last active October 10, 2015 18:58
WebOffice Login for Google Chrome

WebOffice Login for Google Chrome

소개

Google Chrome으로 WebOffice에서 출근체크할 수 있도록 해주는 사용자 스크립트입니다. 아주 빠른 Google Chrome으로 남들보다 빨리 출근해보세요.

만든이: 루팡팀 이흥섭

사용법