This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics
- Introduction
- Installing Node.js
- Installing MySQL
- Setting-up the project
This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics
| module Serverspec | |
| module Type | |
| class Partition < Base | |
| def initialize(partition, type) | |
| @name = partition | |
| @partition_table = {} | |
| case type | |
| when 'cylinder' | |
| options = "-l" |
| package main | |
| import "strconv" | |
| import "fmt" | |
| type Color string | |
| type Make string | |
| type Model string | |
| const ( |
| #!/usr/bin/python -tt | |
| # | |
| import datetime | |
| import json | |
| import logging | |
| import logging.handlers | |
| import optparse | |
| import os | |
| import re | |
| import shutil |
| <?php | |
| namespace Acme\Builder; | |
| class TestDataBuilder | |
| { | |
| /** | |
| * @var array | |
| */ | |
| protected $defauts = []; |
| resource "digitalocean_droplet" "haproxy-www" { | |
| image = "ubuntu-14-04-x64" | |
| name = "haproxy-www" | |
| region = "nyc2" | |
| size = "512mb" | |
| private_networking = true | |
| ssh_keys = [ | |
| "${var.ssh_fingerprint}" | |
| ] | |
| connection { |
| { | |
| "name": "SyncExtension", | |
| "version": "0.1", | |
| "manifest_version": 2, | |
| "description": "Storage Sync Extension", | |
| "permissions": [ "storage" ], | |
| "browser_action": { |
| var mqtt = require('mqtt') | |
| // Make sure to change this to the IP address of your MQTT server | |
| , host = '192.168.128.204' // or localhost | |
| client = mqtt.createClient(1883, host, {keepalive: 10000}); | |
| // Subscribe to the temperature topic | |
| client.subscribe('temperature'); | |
| // When a temperature is published, it will show up here | |
| client.on('message', function (topic, message) { |
| #!/usr/bin/env python | |
| # Adapted from Mark Mandel's implementation | |
| # https://github.com/ansible/ansible/blob/devel/plugins/inventory/vagrant.py | |
| import argparse | |
| import json | |
| import paramiko | |
| import subprocess | |
| import sys |