The board will automatically create a WiFi AP when it is connected: SSID: EspruinoDev PW: EspruinoPW
Connect to this WiFi and the Espruino Board will be the default gateway. Most likely something like 192.168.4.1
/* | |
* Async.gs | |
* | |
* Manages asyncronous execution via time-based triggers. | |
* | |
* Note that execution normally takes 30-60s due to scheduling of the trigger. | |
* | |
* @see https://developers.google.com/apps-script/reference/script/clock-trigger-builder.html | |
*/ |
const FfmpegCommand = require('fluent-ffmpeg'); | |
const spawn = require('child_process').spawn; | |
const path = require('path'); | |
const fs = require('fs-extra'); | |
const Promise = require('bluebird'); | |
const _ = require('lodash'); | |
const del = require('del'); | |
/** | |
* @class ThumbnailGenerator |
#!/bin/sh | |
# Add swap space | |
sudo dphys-swapfile swapoff | |
sudo sed -r -i "s/(CONF_SWAPSIZE\s*=.*)/#\1/g; s/#((CONF_MAXSWAP\s*=).*)/\24096/g" /etc/dphys-swapfile | |
sudo dphys-swapfile swapon | |
# Update Raspberry Pi and schedule auto-updates | |
sudo apt-get update && sudo apt-get full-upgrade -y && sudo apt-get dist-upgrade -y | |
sudo apt-get autoremove -y |
#!/bin/bash | |
exec 5>/dev/watchdog # opens file descriptor | |
upSeconds="$(cat /proc/uptime | grep -o '^[0-9]\+')" | |
while [ $(cat /proc/uptime | grep -o '^[0-9]\+') -lt 432000 ] ; do | |
echo "Feeding dog ..." | |
echo >&5 | |
sleep 10 | |
done |
#!/usr/bin/env python3 | |
# See: https://medium.com/@lakshmanok/how-to-load-geojson-files-into-bigquery-gis-9dc009802fb4 | |
import json | |
with open('NUTS_BN_01M_2016_4326_LEVL_3.geojson', 'r') as ifp: | |
with open('to_load.json', 'w') as ofp: | |
features = json.load(ifp)['features'] | |
# new-line-separated JSON | |
schema = None | |
for obj in features: |
process.env.PATH = process.env.PATH + ':' + process.env['LAMBDA_TASK_ROOT'] | |
const AWS = require('aws-sdk') | |
const { spawn, spawnSync } = require('child_process') | |
const { createReadStream, createWriteStream } = require('fs') | |
const { request } = require('http') | |
const s3 = new AWS.S3() | |
const ffprobePath = '/opt/nodejs/ffprobe' | |
const ffmpegPath = '/opt/nodejs/ffmpeg' |
function _tester() { | |
Logger.log("New test run…") | |
var result = gc_distance('sfo', 'jfk'); | |
Logger.log(result) | |
} | |
function location_of(airport) { | |
return data[airport.toUpperCase()]; | |
} |