Skip to content

Instantly share code, notes, and snippets.

View dexteryy's full-sized avatar

Dexter Yang dexteryy

View GitHub Profile
@dexteryy
dexteryy / keybase.md
Created August 8, 2018 18:15
keybase.md

Keybase proof

I hereby claim:

  • I am dexteryy on github.
  • I am dexteryy (https://keybase.io/dexteryy) on keybase.
  • I have a public key ASAZS7vPI9ElOpNre0oWbaDQ79LQqGsH8JUtdSpRzGwkawo

To claim this, I am signing this object:

@dexteryy
dexteryy / foods.md
Created May 7, 2018 12:00
Foods for Slow Carb Diet

豆腐/腐竹

No. – Tofu is not allowed on the slow carb diet, except on your Cheat day.

Tofu is not a recommended primary source of protein as recent studies suggest that the estrogen levels found in soy may be harmful to humans.

No tofu? Why not? Slow Carb Diet - Tofu products??

@dexteryy
dexteryy / gist:457c31503f61b55c00adcbd139370d03
Created December 20, 2017 03:54
早期版本 WOW 中用过的宏…
开始攻击A
/cast 腐化 (等级 X)
/script PetAttack();
/script SendChatMessage("以部落和九层地狱的名义,弱者必须死亡!", "SAY");
起手诅咒C
/script if (UnitMana("target")>0) then CastSpellByName("语言诅咒 (等级 X)") else CastSpellByName("痛苦诅咒 (等级 X)");end
@dexteryy
dexteryy / universal-js-monorepo.md
Last active September 29, 2022 21:26
A monorepo structure for large-scale Universal JS projects

The evolutionary path is: monolithic backend-web-framework-based repo -> multi repos with shared infra -> monorepo contains shared infra

The tool support is becoming matured (Yarn Workspace, VSCode's Multi Root Workspaces)

[monorepo]/
 ├── universal-js-app project for product A/
 │    ├── node_modules/
 │    ├── common/
@dexteryy
dexteryy / a.js
Created November 15, 2016 13:25
node.js question
// a.js
var b = require('./b');
b.a.b = 4;
module.exports = b.a;
@dexteryy
dexteryy / gist:91432c7a26557c8ddf66b122ee7f3146
Last active November 9, 2018 08:28
js question for tudou (2009)
/**
* ==================================================================
* 要求:
* 1, 只能在指定的位置填写自己的代码,本文件里的其他代码不能修改
* 2, 所有题目都不允许添加全局变量名
* 3, 本文件应该能在console里正常执行,并输出结果
* 4, 共4题,至少做2题
* ==================================================================
*/
export NVM_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node
export SASS_BINARY_SITE="https://npm.taobao.org/mirrors/node-sass"
export PHANTOMJS_CDNURL=http://npm.taobao.org/mirrors/phantomjs
export ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"
export CHROMEDRIVER_CDNURL=http://npm.taobao.org/mirrors/chromedriver
export SELENIUM_CDNURL=http://npm.taobao.org/mirrorss/selenium
alias cnpm="npm --registry=https://registry.npm.taobao.org \
--cache=$HOME/.npm/.cache/cnpm \
[alias]
ci = commit
co = checkout
br = branch
st = status
re = reset
rv = revert
go = checkout -b
l = log HEAD --stat --graph --name-status --pretty=format:'----------------------------%n%C(yellow)%h%C(white)%d %C(blue)%an, %Creset%ar%n%n%Cgreen%s%n'
@dexteryy
dexteryy / standards_for_webapps_on_mobile.md
Last active August 17, 2017 02:16
W3C Standards for Web Apps on Mobile (After HTML5)