Skip to content

Instantly share code, notes, and snippets.

Steve Yang yyang

Block or report user

Report or block yyang

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
id word meaning convert
47 demanding adj. 苛求的 troublesome
49 accelerate v. 加速,促进;强调 speed up
79 unexpectedly adv. 出乎意料地 surprising
86 incentive n. 刺激,鼓励;动机 motive, stimulus
101 comply with 照做,遵守 obey
105 co-ordinate v. 使......协调 organize, harmonize
136 be consistent with 与……一致 compatible
142 calamity n. 灾难 disaster
View gist:8cb39f6058820eae3f863b274c7c9029
// when your webapp is loaded, before adding listener for weixing js bridge, check if it's already initialized:
var timeoutID = 0;
if (typeof WeixinJSBridge == "undefined") {
alert('Already in WeChat!');
} else {
// setup a time out of let's say 5 seconds, to wait for the bridge:
timeoutID = window.setTimeout(WeChatBridgeTimeout, 5000);
// now add listener for the bridge:
document.addEventListener('WeixinJSBridgeReady', WeChatBridgeReady, false);
yyang / Preferences.sublime-settings
Last active Sep 18, 2016
Sublime Text Preferences
View Preferences.sublime-settings
"always_show_minimap_viewport": true,
"auto_complete_commit_on_tab": true,
"color_scheme": "Packages/Material Theme/schemes/OLD/Material-Theme-Darker.tmTheme",
"default_line_ending": "unix",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"highlight_line": true,
"overlay_scroll_bars": "enabled",
yyang /
Created Sep 14, 2016
macOS Sierra spoiler for VMWare Workstation installation.
# Mount the Installer image
hdiutil attach /Applications/Install\ macOS\ -noverify -nobrowse -mountpoint /Volumes/install_app
# Create Sierra sparseimage of 7316mb with a Single Partition - Apple Partition Map
hdiutil create -o /tmp/Sierra -size 7316m -layout SPUD -fs HFS+J -type SPARSE
# Mount the Sierra sparseimage
hdiutil attach /tmp/Sierra.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build
yyang / buffer.js
Created May 28, 2016
Buffer polyfill.
View buffer.js
import semver from 'semver';
let supportedEncoding = ['ascii', 'utf8', 'utf16le', 'ucs2', 'base64',
'binary', 'hex'];
let currentVersion = semver.clean(process.version);
* Polifills Object to obtain modern APIs.
* @param {String} targetVersion Target version to be polyfilled.
* @param {Object} object Object to polyfill.
yyang /
Last active Oct 11, 2018
centos 7 pptpd firewalld
# pptpd installation script on my own CentOS 7 box.
# inspired by:
# and
# Author: 2015 Steve Yang <>
# The script comes with ABSOLUTELY NO WARRANTY.
You can’t perform that action at this time.