You can post a json file with curl
like so:
curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION
so for example:
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
# determine your computers local IP address | |
ifconfig | |
# scan all devices on your network (if your computer's IP is 192.168.1.49, for example) | |
sudo nmap -sP 192.168.1.* | |
# the raspbery pi may show up as manufacturer "unknown" if you are using wireless. | |
# Try sshing to each device you think may be the pi | |
ssh [email protected] |