Demo of multipart form/file uploading with hapi.js.
npm install
npm run setup
npm run server
Then ...
I took it to heart when @kassandra_perch said to document everything durring her talk at EmpireJS. So I documented my whole process, what went right and what went wrong.
This document is unfinished and is not a complete tutorial
The primary way to interact with a Raspberry Pi is to use WiFi and SSH. The problem with this is that the WiFi on the Pi needs to be configured and in order to do that you'll need a monitor. I've tried to edit the wpa_supplicant.conf by using the SD card's file system. I achieved this with minimal success the problem with this is that you still need to get the IP address of the Pi, even if it's connected.
Alas, there's another way! Using a wire referred to as the "USB to TTL Serial Cable - Debug / Console Cable for Raspberry Pi".
This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => [1, 2, 3]; |
| $re = '%# Collapse whitespace everywhere but in blacklisted elements. | |
| (?> # Match all whitespans other than single space. | |
| [^\S ]\s* # Either one [\t\r\n\f\v] and zero or more ws, | |
| | \s{2,} # or two or more consecutive-any-whitespace. | |
| ) # Note: The remaining regex consumes no text at all... | |
| (?= # Ensure we are not in a blacklist tag. | |
| [^<]*+ # Either zero or more non-"<" {normal*} | |
| (?: # Begin {(special normal*)*} construct | |
| < # or a < starting a non-blacklist tag. | |
| (?!/?(?:textarea|pre|script)\b) |
| {url:'stun:stun01.sipphone.com'}, | |
| {url:'stun:stun.ekiga.net'}, | |
| {url:'stun:stun.fwdnet.net'}, | |
| {url:'stun:stun.ideasip.com'}, | |
| {url:'stun:stun.iptel.org'}, | |
| {url:'stun:stun.rixtelecom.se'}, | |
| {url:'stun:stun.schlund.de'}, | |
| {url:'stun:stun.l.google.com:19302'}, | |
| {url:'stun:stun1.l.google.com:19302'}, | |
| {url:'stun:stun2.l.google.com:19302'}, |
Press minus + shift + s and return to chop/fold long lines!
| var fs = require('fs'), | |
| path = require('path'), | |
| _ = require('underscore'), | |
| when = require('when'), | |
| express = require('express'), | |
| GhostPlugin = require('../../../core/server/plugins/GhostPlugin'), | |
| knex = require('../../../core/server/models/base').Knex, | |
| KudosPlugin; | |
| KudosPlugin = function (ghost) { |
A timeline of the last four years of detecting good old window.localStorage.
October 2009: 5059daa