Skip to content

Instantly share code, notes, and snippets.

View saml's full-sized avatar

Sam Lee saml

  • New York, NY
View GitHub Profile
D D/F# Em G A E/G# Bm
선을 봐봐도 안돼요. 너무 못생겨서 안돼요.
C#dim F# Bm A#m Am G A Dsus4
실물이 더 나 빠 서. 대머리라 미안해요.
그대 손잡아도 안돼요. 사랑 한단말도 안돼요.
걸을땐 좀 떨어져. 귀찮게 해서 미안해요.
Em A F#m Bm
나도 사랑 하고싶은데. 그린라이튼줄 알고 문자했는데.
Em G
그냥 불쌍해. 불쌍해서래요.
$ xrandr
Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 8192 x 8192
eDP-1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 294mm x 165mm
3200x1800 59.98 + 47.99
2048x1536 60.00
1920x1440 60.00
1856x1392 60.01
1792x1344 60.01
1600x1200 60.00
1400x1050 59.98
const loading = new Promise(resolve => setTimeout(resolve, 3000));
async function f() {
await loading;
return 1;
}
(async function() {
console.log(new Date().toJSON(), process.pid, 'hello');
for (let i = 0; i < 100000000; i++) {
a a
a b
a c
b a
b 2
c 1
d a
d b
d 1
d 2
const randomstring = require('randomstring');
const Benchmark = require('benchmark');
const numOfKeys = parseInt(process.argv[2], 10) || 1000000;
const keyLength = 13;
console.time('keygen');
const randomKeys = Array.from({length: numOfKeys}, () => randomstring.generate(keyLength));
console.timeEnd('keygen');
@saml
saml / mono.js
Last active February 21, 2017 22:20
/**
* ImageMagick MONO format encoder.
*
* https://www.imagemagick.org/script/formats.php
* Bi-level bitmap in least-significant-byte first order
*
* Turning 8 bytes to 1 byte (least significant bit first):
* 00 ff ff ff ff ff ff ff => 01111111 => 111111110
* @param greyscaleBuffer
* @returns {Buffer}
@saml
saml / streams.js
Last active February 10, 2017 21:44
'use strict';
const http = require('http');
const fs = require('fs');
const stream = require('stream');
const req = http.request({hostname:'localhost',port:5000,method:'PUT',path:'/'});
class Null extends stream.Writable {
_write(chunk, encoding, callback) {
I think of you everytime I close my eyes. Maybe it is because I closed my eyes.
When can I talk to you?
That's all I can think.
I shouldn't be like this. I should study.
Exams next week.
I shouldn't be like this. I should do homework.
I think of you even I say stop.
A Bm E A Bm E F#m
눈감으면 그대생각나 눈감아서 생각나는건지
D E/D C#m F#
언제쯤 그대에게 말을걸어 볼수있나
Bm B E
이런생각들만 자꾸나
A Bm C# F#m D#dim
내가 이럴때가 아닌데 공부해야 하는데
Bm E
시험이 다음준데