- http://stackoverflow.com/questions/804115 (
rebase
vsmerge
). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebase
vsmerge
) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
reset
vscheckout
vsrevert
) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse
) - http://stackoverflow.com/questions/292357 (
pull
vsfetch
) - http://stackoverflow.com/questions/39651 (
stash
vsbranch
) - http://stackoverflow.com/questions/8358035 (
reset
vscheckout
vsrevert
)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"build": "npm run build:es2015 && npm run build:esm && npm run build:cjs && npm run build:umd && npm run build:umd:min", | |
"build:es2015": "tsc --module es2015 --target es2015 --outDir dist/es2015", | |
"build:esm": "tsc --module es2015 --target es5 --outDir dist/esm", | |
"build:cjs": "tsc --module commonjs --target es5 --outDir dist/cjs", | |
"build:umd": "rollup dist/esm/index.js --format umd --name YourLibrary --sourceMap --output dist/umd/yourlibrary.js", | |
"build:umd:min": "cd dist/umd && uglifyjs --compress --mangle --source-map --screw-ie8 --comments --o yourlibrary.min.js -- yourlibrary.js && gzip yourlibrary.min.js -c > yourlibrary.min.js.gz", | |
} | |
} |
Disclaimer: Многие доклады смотрелись и отчёты писались в поезде, спать хотелось капец.
Disclaimer 2: Если что, простите за орфорграфию.
Вступление, в основном - нудное бла, бла, бла. Из достижений - 547,138 ReactDevTools installed on Chrome. Тем кто териториально недалеко от San Francisco Bay Area может быть интересно, что FB проводит открытые митапы - ReactWednesday.
Докладчик харизматичный, слушать его приятно.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See original announcement at http://permalink.gmane.org/gmane.comp.java.openjdk.core-libs.devel/2628 | |
/** | |
* <at> author Vladimir Yaroslavskiy | |
* <at> version 2009.09.10 m765 | |
*/ | |
public class DualPivotQuicksort { | |
public static void sort(int[] a) { | |
sort(a, 0, a.length); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Using Operator Mono in Atom | |
* | |
* 1. Open up Atom Preferences. | |
* 2. Click the “Open Config Folder” button. | |
* 3. In the new window’s tree view on the left you should see a file called “styles.less”. Open that up. | |
* 4. Copy and paste the CSS below into that file. As long as you have Operator Mono SSm installed you should be golden! | |
* 5. Tweak away. | |
* | |
* Theme from the screenshot (http://cdn.typography.com/assets/images/blog/operator_ide2.png): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//npm i gulp gulp-stylus gulp-plumber browser-sync bs-fullscreen-message | |
var gulp = require('gulp'); | |
var stylus = require('gulp-stylus'); | |
var plumber = require('gulp-plumber'); | |
var browserSync = require('browser-sync').create(); | |
//Enable "Fullscreen Messages" plugin in Browsersync Plugins web settings (http://localhost:3001/plugins) | |
//Notification template | |
var bsError = function(data) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=force-new-lines-for-long-words | |
-ms-word-break: break-all | |
word-break: break-all | |
word-break: break-word | |
-webkit-hyphens: auto | |
-moz-hyphens: auto | |
hyphens: auto |
react + redux + RR
It uses https://gist.github.com/iNikNik/3c1b870f63dc0de67c38 for stores and actions.
1) create redux
const redux = createRedux(state);
2) get requireAccess func => bindCheckAuth to redux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Before using this configuration follow the instruction below | |
" | |
" Check the requirements for plugins: | |
" * highlight (brew) required for preview FZF | |
" * livedown (npm) required for vim-livedown | |
" * standard (npm) required for syntastic check of javascript | |
" * tslint (npm) required for syntastic check of typescript | |
" * typescript (npm) required for Quramy/tsuquyomi | |
" | |
" Create folders for storing temporary files |
- Intro: https://www.youtube.com/playlist?list=PL697D36B35F92E9E4 (1)
- JS:
- Single page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript (2)
- Video: http://video.ch9.ms/ch9/DF01/97ECAC6F-5413-486A-B9D5-9EB60082DF01/MIX11HTM06_high_ch9.mp4 (5)
- Intermediate: http://ejohn.org/apps/learn (6)
- Philip Roberts: What the heck is the event loop anyway? https://www.youtube.com/watch?v=8aGhZQkoFbQ
NewerOlder