Skip to content

Instantly share code, notes, and snippets.

View saystone's full-sized avatar

Seungjae Lee saystone

View GitHub Profile
@saystone
saystone / FrontendFrameworksPopularity.md
Created March 31, 2021 06:22 — forked from tkrotoff/FrontendFrameworksPopularity.md
Front-end frameworks popularity (React, Vue and Angular)

Findings: React is by far the most popular front-end framework/library (and continues to grow faster), except for the GitHub stars. In addition, React is more loved and "wanted" than other front-end frameworks (although it is more used: satisfaction tends to decrease with popularity).

Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.

Stack Overflow trends

https://insights.stackoverflow.com/trends?tags=reactjs%2Cvue.js%2Cangular%2Cangularjs

insights.stackoverflow.com

@saystone
saystone / 한글과유니코드.md
Created February 7, 2019 05:06 — forked from Pusnow/한글과유니코드.md
한글과 유니코드

한글과 유니코드

유니코드에서 한글을 어떻게 다루는지를 정리하였다.

유니코드

  • 유니코드(Unicode)는 전 세계의 모든 문자를 컴퓨터에서 일관되게 표현하고 다룰 수 있도록 설계된 산업 표준 (위키 백과)
  • 단순히 문자마다 번호를 붙임
  • 계속 업데이트되며 현재는 Unicode Version 9.0.0 이 최신이다.

UTF

  • 유니코드를 실제 파일 등에 어떻게 기록할 것인지를 표준화한 것이다.
@saystone
saystone / pre-commit-php
Created May 11, 2018 09:06
pre-commit-php
#!/usr/bin/env bash
git diff --cached --name-status | while read status file; do
if [ $status == "D" ]; then continue; fi
echo "processing: $file"
if [[ $file =~ \.php$ ]]; then
if ! php -l $file; then
echo "PHP syntax check failed for file: $file"
@saystone
saystone / React Native Clear Cache
Last active February 26, 2018 06:04 — forked from jarretmoses/React Native Clear Cache
with npm i & npm start
watchman watch-del-all &&
rm -rf $TMPDIR/react-* &&
rm -rf node_modules/ &&
npm cache clean --force &&
npm install &&
npm start -- --reset-cache
@saystone
saystone / pre-push
Created January 30, 2018 01:49
git hook for linting & building before push
#!/usr/bin/env bash
echo === pre-push: STARTED
npm run lint && npm run build
if [ ! $? -eq 0 ]
then
echo "=== pre-push: FAILED"
exit 1
fi
@saystone
saystone / post-checkout
Created January 29, 2018 05:40 — forked from flesler/post-checkout
git hook to run a command after `git pull` and `git checkout` if a specified file was change for example, package.json or bower.json
#!/usr/bin/env bash
# fork from https://gist.github.com/jakemhiller/d342ad51505addf78ec628a16fd3280f
changed_files="$(git diff-tree -r --name-only --no-commit-id $1 $2)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
}
check_run package.json "npm prune && npm install"
@saystone
saystone / pre-commit
Created January 10, 2018 03:01
pre commit for type repository
#!/bin/sh
npm run build
git add ./dist/index.d.ts ./dist/index.js
class @BaseCtrl
@register: (app, name) ->
name ?= @name || @toString().match(/function\s*(.*?)\(/)?[1]
app.controller name, this
@inject: (annotations...) ->
ANNOTATION_REG = /^(\S+)(\s+as\s+(\w+))?$/
@annotations = _.map annotations, (annotation) ->
@saystone
saystone / coolsms_sendlms.js
Last active January 22, 2019 08:04
coolsms(http://www.coolsms.co.kr/) REST API를 통해 LMS(장문형 문자) 발송하기
var crypto = require('crypto');
var randomstring = require('randomstring');
var request = require("request");
var api_key = 'YOUR_API_KEY';
var api_secret = 'YOUR_API_SECRET';
var timestamp = parseInt(new Date().getTime() / 1000);
var salt = randomstring.generate(30);
var signature = crypto.createHmac('md5', api_secret).update(timestamp + salt).digest('hex');