Combine default parameters and destructuring for a compact version of the defaults / overrides pattern.
function foo ({
bar = 'no',
baz = 'works!'
} = {}) {#Wheezy
##Remove Desktop Environment
To remove all desktops I just did (go make a pot of coffee. Take a walk this will take a while)
$ sudo apt-get remove --auto-remove --purge libx11-.*
Installed deborphan to get rid of orphaned files
Indonesia map from topojson file from indonesia.json
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <pre>Open Console</pre> → <pre>ctrl+shift+j</pre> | |
| <script id="jsbin-javascript"> | |
| // call() and apply() method |
| # You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
| # This is how I upload my new Sol Trader builds (http://soltrader.net) | |
| # Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
| S3KEY="my aws key" | |
| S3SECRET="my aws secret" # pass these in | |
| function putS3 | |
| { | |
| path=$1 |
| /** | |
| * Need io.js 1.x or promise native on Node.js (v0.11 ?) | |
| */ | |
| var request = require('request'); | |
| function NgeGithub() { | |
| } |
| /** | |
| * ngegithub.js | |
| * - ambil gist berdasarkan id gist. | |
| */ | |
| var Q = require('q'); | |
| var request = require('request'); | |
| function NgeGithub() { | |
| //constructor |
| var React = require("react"), Dom = React.DOM; | |
| var LogOutButton = require('./src/logout'); | |
| var events = require('api/events'); | |
| var Main = React.createClass({ | |
| // this mixin provides this.emitLogout, and if we set onLogout it'll be called when "logout" is emitted | |
| mixins: [events.mixinFor("logout")], | |
| getInitialState: function(){ | |
| return { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="Filter values on nested object based on key name" /> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-source-javascript" type="text/javascript"> |