Skip to content

Instantly share code, notes, and snippets.

View SiZapPaaiGwat's full-sized avatar

饭特稀 SiZapPaaiGwat

View GitHub Profile
@SiZapPaaiGwat
SiZapPaaiGwat / chinese-words.txt
Created May 13, 2016 06:18
常用汉字表3500(简体+繁体)
一乙乙二二十十丁丁廠厂七七蔔卜人人入入八八九九幾几兒儿了了力力乃乃刀刀又又三三於于幹干虧亏士士工工土土才才寸寸下下大大丈丈與与萬万上上小小口口巾巾山山千千乞乞川川億亿個个勺勺
久凡凡及及夕夕丸丸麽么廣广亡亡門门義义之之屍尸弓弓己己已已子子衛卫也也女女飛飞刃刃習习叉叉馬马鄉乡豐丰王王井井開开夫夫天天無无元元專专雲云紮扎藝艺木木五五支支廳厅不不太太犬犬
区歷历尤尤友友匹匹車车巨巨牙牙屯屯比比互互切切瓦瓦止止少少日日中中岡冈貝贝內内水水見见午午牛牛手手毛毛氣气升升長长仁仁什什片片仆仆化化仇仇幣币仍仍僅仅斤斤爪爪反反介介父父從从
今兇凶分分乏乏公公倉仓月月氏氏勿勿欠欠風风丹丹勻匀烏乌鳳凤勾勾文文六六方方火火為为鬥斗憶忆訂订計计戶户認认心心尺尺引引醜丑巴巴孔孔隊队辦办以以允允予予勸劝雙双書书幻幻玉玉刊刊
示末末未未擊击打打巧巧正正撲扑扒扒功功扔扔去去甘甘世世古古節节本本術术可可丙丙左左厲厉右右石石布布龍龙平平滅灭軋轧東东卡卡北北占占業业舊旧帥帅歸归且且旦旦目目葉叶甲甲申申叮叮
电號号田田由由史史只只央央兄兄叼叼叫叫另另叨叨嘆叹四四生生失失禾禾丘丘付付仗仗代代仙仙們们儀仪白白仔仔他他斥斥瓜瓜乎乎叢丛令令用用甩甩印印樂乐句句匆匆冊册犯犯外外處处冬冬鳥鸟
务包包饑饥主主市市立立閃闪蘭兰半半汁汁匯汇頭头漢汉寧宁穴穴它它討讨寫写讓让禮礼訓训必必議议訊讯記记永永司司尼尼民民出出遼辽奶奶奴奴加加召召皮皮邊边發发孕孕聖圣對对臺台矛矛糾纠
母幼幼絲丝式式刑刑動动扛扛寺寺吉吉扣扣考考托托老老執执鞏巩圾圾擴扩掃扫地地揚扬場场耳耳共共芒芒亞亚芝芝朽朽樸朴機机權权過过臣臣再再協协西西壓压厭厌在在有有百百存存而而頁页匠匠
夸奪夺灰灰達达列列死死成成夾夹軌轨邪邪劃划邁迈畢毕至至此此貞贞師师塵尘尖尖劣劣光光當当早早吐吐嚇吓蟲虫曲曲團团同同吊吊吃吃因因吸吸嗎吗嶼屿帆帆歲岁回回豈岂剛刚則则肉肉網网年年
朱先先丟丢舌舌竹竹遷迁喬乔偉伟傳传乒乒乓乓休休伍伍伏伏優优伐伐延延件件任任傷伤價价份份華华仰仰仿仿夥伙偽伪自自血血向向似似後后行行舟舟全全會会殺杀合合兆兆企企眾众爺爷傘伞創创
@SiZapPaaiGwat
SiZapPaaiGwat / what-forces-layout.md
Created February 2, 2016 08:25 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
@SiZapPaaiGwat
SiZapPaaiGwat / webpack.nginx.conf
Last active November 19, 2021 19:10
webpack-dev-server configuration in nginx on development server
upstream ws_server {
server 127.0.0.1:8080;
}
server {
listen 80;
server_name 10.1.2.225;
location / {
proxy_pass http://ws_server/;
@SiZapPaaiGwat
SiZapPaaiGwat / centos6.5_nginx
Created January 21, 2016 04:21 — forked from ifels/centos6.5_nginx
centos 6.5 nginx安装与配置
第一步,在/etc/yum.repos.d/目录下创建一个源配置文件nginx.repo:
cd /etc/yum.repos.d/
vim nginx.repo
填写如下内容:
[nginx]
name=nginx repo
@SiZapPaaiGwat
SiZapPaaiGwat / immutable-libraries.md
Created January 15, 2016 07:42 — forked from jlongster/immutable-libraries.md
List of immutable libraries

A lot of people mentioned other immutable JS libraries after reading my post. I thought it would be good to make a list of available ones.

There are two types of immutable libraries: simple helpers for copying JavaScript objects, and actual persistent data structure implementations. My post generally analyzed the tradeoffs between both kinds of libraries and everything applies to the below libraries in either category.

Libraries are sorted by github popularity.

Persistent Data Structures w/structural sharing

@SiZapPaaiGwat
SiZapPaaiGwat / browserify_for_webpack_users.markdown
Created December 30, 2015 10:09
browserify for webpack users

browserify for webpack users

There's been a strange explosion in misinformation about browserify recently, particularly in comparisons to webpack.

Generally speaking, most of this confusion stems from how webpack is more willing to pull features into its core to ease discoverability while browserify is more likely to push features out to userland instead.

I think that longer-term, separability has more benefits from a maintenance and

@SiZapPaaiGwat
SiZapPaaiGwat / sublime.txt
Created December 11, 2015 15:18
Sublime插件大全
My plugin list for Sublime Text:
AllAutoComplete
Better CoffeeScript
Clipboard History
EditorConfig
Emmet
HTMLBeautify
JavaPropertiesEditor
JavaScript Refactor

Interesting part (unmounting & API) is at the end if you're not interested in the rest =).

Stress Tests

This animation proposal is just an attempt. In case it doesn't work out, I've gathered a few examples that can test the power of a future animation system.

  1. Parent is an infinitely spinning ball, and has a child ball that is also spinning. Clicking on the parent causes child to reverse spinning direction. This tests the ability of the animation system to compose animation, not in the sense of applying multiple interpolations to one or more variables passed onto the child (this should be trivial), but in the sense that the parent's constantly updating at the same time as the child, and has to ensure that it passes the animation commands correctly to it. This also tests that we can still intercept these animations (the clicking) and immediately change their configuration instead of queueing them.

  2. Typing letters and let them fly in concurrently. This tests concurrency, coordination of an array of ch

@SiZapPaaiGwat
SiZapPaaiGwat / pac.txt
Last active December 11, 2015 03:21
个人GFWList不断更新中
// Generated by gfwlist2pac
// https://github.com/clowwindy/gfwlist2pac
var domains = {
"gimpshop.com": 1,
"directcreative.com": 1,
"speedpluss.org": 1,
"mingpaovan.com": 1,
"wikinews.org": 1,
"joachims.org": 1,

@kangax's ES6 quiz, explained

@kangax created a new interesting quiz, this time devoted to ES6 (aka ES2015). I found this quiz very interesting and quite hard (made myself 3 mistakes on first pass).

Here we go with the explanations:

Question 1:
(function(x, f = () => x) {