(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.
| #!/bin/bash | |
| # If you're reading this on the GitHub gist, scroll down for instructions. | |
| # If not, go to https://gist.github.com/1071034 | |
| icon_url="http://shaun.boyblack.co.za/blog/wp-content/uploads/2009/05/maceclipse4.zip" | |
| eclipse_bin="#!/bin/sh | |
| export ECLIPSE_HOME='/opt/eclipse' | |
| \$ECLIPSE_HOME/eclipse \$*" |
| !------------------------------------------------------------------------------- | |
| ! Xft settings | |
| !------------------------------------------------------------------------------- | |
| Xft.dpi: 96 | |
| Xft.antialias: false | |
| Xft.rgba: rgb | |
| Xft.hinting: true | |
| Xft.hintstyle: hintslight |
(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.
| // Promise.all is good for executing many promises at once | |
| Promise.all([ | |
| promise1, | |
| promise2 | |
| ]); | |
| // Promise.resolve is good for wrapping synchronous code | |
| Promise.resolve().then(function () { | |
| if (somethingIsNotRight()) { | |
| throw new Error("I will be rejected asynchronously!"); |
Emacs packages, features, files, layers, extensions, auto-loading, require,
provide, use-package… All these terms getting you confused? Let’s clear up
a few things.
Emacs files contains code that can be evaluated. When evaluated, the functions, macros and modes defined in that file become available to the current Emacs session. Henceforth, this will be termed as loading a file.
One major problem is to ensure that all the correct files are loaded, and in the
| function setjdk | |
| if test -n "$JAVA_HOME" | |
| removeFromPath "$JAVA_HOME/bin" | |
| end | |
| set -gx JAVA_HOME (/usr/libexec/java_home -v $argv[1]) | |
| set -gx PATH $JAVA_HOME/bin $PATH | |
| end | |
| function removeFromPath | |
| set -l idx 0 |
| export ORG_ALIAS='DummyScratchOrg' | |
| export PROJECT_NAME='DummyProject' | |
| export PERMISSION_SET='DummyPermSet' | |
| export IMPORT_PLAN='Dummy-plan.json' | |
| # Create a Salesforce DX project | |
| sfdx force:project:create -n $PROJECT_NAME | |
| # Regist development/sandbox org | |
| sfdx force:auth:web:login [-d] -a $ORG_ALIAS |
Some notes on how to setup various open-source XMR Miners on Ubuntu 16
| { | |
| "env": { | |
| "browser": true | |
| }, | |
| "parserOptions": { | |
| "ecmaVersion": 5 | |
| }, | |
| "globals": { | |
| "$A": true, | |
| "AuraContext": true, |
brew install mingw-w64rustup target add x86_64-pc-windows-gnu.cargo/config.cargo/config[target.x86_64-pc-windows-gnu]