Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"| onCellPrepared(e) { | |
| if ( | |
| e.rowType === "data" && | |
| e.column.visibleIndex === 0 && | |
| e.value === "ROOT" | |
| ) { | |
| const el = e.cellElement as HTMLElement; | |
| const ck = el.getElementsByClassName("dx-select-checkbox")[0]; | |
| const instance = dxCheckBox.getInstance(ck); |
| #!/bin/sh | |
| # | |
| # init.d script with LSB support. | |
| # | |
| # Copyright (c) 2007 Javier Fernandez-Sanguino <[email protected]> | |
| # | |
| # This is free software; you may redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as | |
| # published by the Free Software Foundation; either version 2, | |
| # or (at your option) any later version. |
| # See list of docker virtual machines on the local box | |
| $ docker-machine ls | |
| NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS | |
| default * virtualbox Running tcp://192.168.99.100:2376 v1.9.1 | |
| # Note the host URL 192.168.99.100 - it will be used later! | |
| # Build an image from current folder under given image name | |
| $ docker build -t gleb/demo-app . |
| version: '2' | |
| volumes: | |
| mongo_data: | |
| cassandra_data: | |
| services: | |
| kong: | |
| image: kong:latest | |
| depends_on: |
| /** | |
| * Get a random floating point number between `min` and `max`. | |
| * | |
| * @param {number} min - min number | |
| * @param {number} max - max number | |
| * @return {number} a random floating point number | |
| */ | |
| function getRandomFloat(min, max) { | |
| return Math.random() * (max - min) + min; | |
| } |
| // set-up a connection between the client and the server | |
| var socket = io.connect(); | |
| // let's assume that the client page, once rendered, knows what room it wants to join | |
| var room = "abc123"; | |
| socket.on('connect', function() { | |
| // Connected, let's sign-up for to receive messages for this room | |
| socket.emit('room', room); | |
| }); |
| /** | |
| * How to implement cordova-background-geolocation with Ionic 2 | |
| * https://github.com/transistorsoft/cordova-background-geolocation-lt | |
| * Chris Scott, Transistor Software <[email protected]> | |
| */ | |
| import { Component } from '@angular/core'; | |
| import { NavController, Platform } from 'ionic-angular'; |
on El Capitan, after installing the brew...
$ brew update
$ brew tap caskroom/cask
$ brew install Caskroom/cask/java
And Java 8 will be installed at /Library/Java/JavaVirtualMachines/jdk1.8.xxx.jdk/
Check version: