Skip to content

Instantly share code, notes, and snippets.

View XGHeaven's full-sized avatar
🐟
Finding web future

XGHeaven

🐟
Finding web future
View GitHub Profile
@XGHeaven
XGHeaven / iStat Menus Setting.ismp
Last active July 3, 2019 14:15
iStat Menus Setting
<?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>
<key>build</key>
<real>630</real>
<key>license</key>
<string>1574-5977-7956-8062-0000</string>
<key>preferences</key>
<dict>
@XGHeaven
XGHeaven / uncarryThis.js
Created February 1, 2016 04:59
JavaScript Magic Technology
/**
* call wrapper function is equal to use call/apply to invoke function
* see follow usage
*
* @param {Function} f - need to wrapper function
*/
var uncurryThis = function(f) {
var call = Function.call;
return function() {
return call.apply(f, arguments);
@XGHeaven
XGHeaven / style_guide.md
Created November 7, 2015 01:54 — forked from dominictarr/style_guide.md
style guide

High level style in javascript.

Opinions are like assholes, every one has got one.

This one is mine.

Punctuation: who cares?

Punctuation is a bikeshed. Put your semicolons, whitespace, and commas where you like them.