You can answer with the language you love and why. Or upvote an answer if the language is already mentioned there.
Thanks! Just being curious :)
| import mobx from 'mobx' | |
| const DEFAULT_STYLE = 'color: #006d92; font-weight:bold;' | |
| // Just call this function after MobX initialization | |
| // As argument you can pass an object with: | |
| // - collapsed: true -> shows the log collapsed | |
| // - style -> the style applied to the action description | |
| export const startLogging = ({ collapsed, style } = {}) => { | |
| mobx.spy(event => { |
I've been asked a few times over the last few months to put together a full write-up of the Git workflow we use at RichRelevance (and at Precog before), since I have referenced it in passing quite a few times in tweets and in person. The workflow is appreciably different from GitFlow and its derivatives, and thus it brings with it a different set of tradeoffs and optimizations. To that end, it would probably be helpful to go over exactly what workflow benefits I find to be beneficial or even necessary.
| Moved to openjdk nashorn project. | |
| Please check "samples" directory in http://hg.openjdk.java.net/jdk9/dev/nashorn. |
(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.
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| function eachAsync(collection, iterator, callback) { | |
| var iterate = function(i) { | |
| setTimeout(function() { | |
| iterator(collection[i]); | |
| if (i < collection.length) { | |
| iterate(i + 1); | |
| } else { | |
| callback(); | |
| } | |
| }, 0); |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| function git-pull-safe() { | |
| local currentBranch=$(git-branch-current) | |
| local localLastCommit=$(git log --format="%H" $currentBranch | head -1) | |
| local localLastPushCommit="$(git log --format="%H" origin/${currentBranch}.. | tail -n-1)^" | |
| #local remoteLastCommit=$(git log origin/$currentBranch | head -1 | cut -f 2 -d ' ') | |
| git fetch origin $currentBranch | |
| local remoteHeadCommit=$(git log --format="%H" origin/$currentBranch | head -1) | |
| if [ "$remoteHeadCommit" = "$localLastCommit" ] ; then | |
| # Same message as git pull prints in this case |