(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
function SuperClass () {}; | |
SuperClass.prototype = { | |
constructor: SuperClass, | |
a: 'Hello', | |
b: 'super', | |
c: function () { | |
return this.a + ', ' + this.b + '!'; | |
} | |
}; |
(defun open-finder-1 (dir file) | |
(let ((script | |
(if file | |
(concat | |
"tell application \"Finder\"\n" | |
" set frontmost to true\n" | |
" make new Finder window to (POSIX file \"" dir "\")\n" | |
" select file \"" file "\"\n" | |
"end tell\n") | |
(concat |
// Webpack: Generate [hash].js in production html file | |
// From: https://github.com/webpack/webpack/issues/86 | |
if (process.env.NODE_ENV === 'production') { | |
// Hashing of this kind happens only in prod. | |
config.output.filename = "bundle-[hash].js"; // In dev's config, it's "bundle.js" | |
config.plugins.push( | |
// To rewrite stuff like `bundle.js` to `bundle-[hash].js` in files that refer to it, I tried and | |
// didn't like the following plugin: https://github.com/ampedandwired/html-webpack-plugin |
ref: http://www.aliued.com/?p=3240 | |
// babel-template.js file, line 124 to add below: | |
if (replacement) { | |
replacement[TEMPLATE_SKIP] = true; | |
path.replaceInline(replacement); | |
// fix es3 compatibility: |
let blacklists = ["http://1111hui.com/*","http://126.com/*","http://163.com/*"] |
1. Chrome+FF | |
2. Chrome Extension: | |
New Tab Redirect | |
Youdao dict | |
3. Emacs, with .emacs.d settings ( emacs MUST RUN AS ADMINISTRATOR) | |
HKLM\SOFTWARE\GNU\Emacs\HOME | |
string key set to d:\emacs | |
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced |
{ | |
"font_size": 12, | |
"hot_exit": false, | |
"line_padding_bottom": 6, | |
"line_padding_top": 6, | |
"save_on_focus_lost": false, | |
"show_encoding": true, | |
"translate_tabs_to_spaces": true, | |
"update_check": false, | |
"word_wrap": true |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
'use strict'; | |
var merge = require( 'lodash.merge' ); | |
var extras = { | |
parserOptions : { | |
ecmaVersion : 3, | |
}, |
[user] | |
name = James Yang | |
email = [email protected] | |
[credential] | |
helper = store | |
[filter "lfs"] | |
clean = git lfs clean %f | |
smudge = git lfs smudge %f | |
required = true |