Skip to content

Instantly share code, notes, and snippets.

View zenyr's full-sized avatar
⚙️
Grinding gears

Jinhyeok Lee zenyr

⚙️
Grinding gears
View GitHub Profile
@zenyr
zenyr / _source.js
Last active October 18, 2015 16:41
javascript lua beautifier w/ modified luaparse
// "luaparse" lexer based dumb-beautifier - zenyr@zenyr.com
// requires TONS of fix here and there, using lexer was not the right way to do this anyway
//
// luaparse Lexer based dumb-beautifier
var luaparse = require('luaparse'); // requires forked variant
var fs = require('fs'); // for test
var text = fs.readFileSync('./simple.lua', 'utf8'); // input

Keybase proof

I hereby claim:

  • I am zenyr on github.
  • I am zenyr (https://keybase.io/zenyr) on keybase.
  • I have a public key ASCsXZU8yaQNZicRgP5532WUegbZPh3YJ-sDThxhavLYmQo

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- Title. -->
<key>ALERTS</key>
<string>알림</string>
<!-- Header for alert type selection. -->
<key>ALERT_TYPE</key>
@zenyr
zenyr / Credits.md
Last active November 10, 2016 18:08
TermHere 1.2

고지사항:

터미널 툴바 아이콘은 SIL Open Font License, version 1.1 라이센스의 적용을 받습니다.

본 앱이 유용하셨다면, 개발자에게 감사의 표시로 소액 기부해주시는 것도 고려해주세요. 기부하기

@zenyr
zenyr / Alerts.strings
Last active February 9, 2017 15:14
TypeStatus 2.2
<key>SENDING_FILE_HEADER</key>
<string>파일 전송</string>
<key>TEST_SENDING_FILE</key>
<string>파일 전송 알림 테스트</string>
<key>IGNORE_DND_SENDERS_EXPLANATION</key>
<string>누군가를 Mute하거나 블록하면, 그 사람에게서 온 알림을 TypeStatus에서 출력하지 않습니다.</string>
@zenyr
zenyr / Localizable.strings
Last active June 13, 2018 14:29
TermHere 1.3 New Strings
<!-- Title of the Help window. -->
<key>HELP</key>
<string>도움말</string>
<!-- Done button label. -->
<key>DONE</key>
<string>완료</string>
@zenyr
zenyr / readme.md
Last active October 9, 2022 18:52
Typescript: Throttle with trailing call v.2022

Why?

  • I needed to have a lightweight throttle function that I can rely on.
  • Calls ASAP
  • Defers call if throttled
  • Can cancel an enqueued call if you really want to (say, a component has unmounted, instance was destroyed etc.)
  • Something TSC would infer type safely

Code

/**