A fully fonctional and good-looking linux for less than 256mb of ram
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const net = require('net') | |
net.createServer(client => { | |
client.once('data', data => { | |
client.write(Buffer.from([5, 0])); | |
client.once('data', data => { | |
data = [...data]; | |
let ver = data.shift(); | |
let cmd = data.shift(); //1: connect, 2: bind, 3: udp | |
let rsv = data.shift(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################################################### | |
# Read in activity data from Jawbone UP api in R | |
# 1. Setup an application at: https://jawbone.com/up/developer/ | |
# 2. Set the OAuth redirect URLs: http://localhost:1410, http://localhost:1410/ | |
# 3. Be sure to set your key and secret in R: | |
# Sys.setenv(JAWBONE_API_KEY = "Your Client Id", | |
# JAWBONE_CONSUMER_SECRET = "Your App Secret") | |
# 4. Install httr package: install.packages("httr") | |
########################################################################### | |
library("httr") |