(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.
var Promise = require('bluebird'), | |
User = require('./user'), | |
knex, query; | |
knex = User.prototype._builder(User.prototype.tableName); | |
query = function (q) { | |
q.distinct() | |
.innerJoin('orders', function () { | |
this.on('users.id', '=', 'orders.user_id') |
(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.
cardinality 1 uses 5 bytes (0.00244140625 bits per register}) | |
cardinality 10 uses 31 bytes (0.01513671875 bits per register}) | |
cardinality 100 uses 271 bytes (0.13232421875 bits per register}) | |
cardinality 1000 uses 1906 bytes (0.9306640625 bits per register}) | |
cardinality 2000 uses 3517 bytes (1.71728515625 bits per register}) | |
cardinality 3000 uses 4918 bytes (2.4013671875 bits per register}) | |
cardinality 4000 uses 6129 bytes (2.99267578125 bits per register}) | |
cardinality 5000 uses 7206 bytes (3.5185546875 bits per register}) | |
cardinality 6000 uses 8099 bytes (3.95458984375 bits per register}) | |
cardinality 7000 uses 8868 bytes (4.330078125 bits per register}) |
#!/bin/bash | |
# Settings: edit these as needed | |
PROJECT_NAME="test" | |
OUTPUT_DIRECTORY="~/Documents/MapBox/export/" | |
# first change into TileMill code directory | |
cd /Applications/TileMill.app/Contents/Resources/ | |
# hint: use http://bboxfinder.com/ to get bounds in lon/lat |
sudo xcodebuild -license | |
xcode-select --install # There will be a GUI prompt | |
sudo cpan SVN::Core # use the "sudo" method when prompted | |
# Then add this to your ~/.profile: | |
# export PATH=/Library/Developer/CommandLineTools/usr/bin:$PATH | |
# Then probably: | |
brew reinstall git | |
brew reinstall subversion |
There are a bunch of reasons why this is convoluted, mostly in building the URL to make the request:
info_format
parameter in the request. We don't know a priori which will be supported by a WMS that we might make a request to. See Geoserver's docs for what formats are available from Geoserver. That won't be the same from WMS to WMS, however.before_install: | |
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa | |
- sudo apt-get update -qq | |
- sudo apt-get install -qq qt5-qmake qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev | |
script: | |
- qmake -qt=qt5 -v | |
- qmake -qt=qt5 | |
- make |
var five = require('johnny-five'); | |
var board = new five.Board(); | |
board.on("ready", function () { | |
var leds = new Array(5); | |
for (var i = 0; i < 5; i++) { | |
leds[i] = new five.Led({pin: i + 5}); | |
} |
#include <v8.h> | |
#include <node.h> | |
#include <node_buffer.h> | |
#include <iostream> | |
using namespace v8; | |
Handle<Value> CalcHeadSize(const Arguments &args) { | |
HandleScope scope; | |