See https://chromium.googlesource.com/chromium/src/+/master/docs/mac_build_instructions.md
git clone depot_tools
add to path (not using ~ but $HOME) in .bash_profile
sudo sysctl kern.maxvnodes=$((512*1024))
| const std = @import("std"); | |
| const Frame = struct { | |
| f: *const fn (frame: *Frame) i32, | |
| k: *i32 = undefined, | |
| x1: *Frame = undefined, | |
| x2: *Frame = undefined, | |
| x3: *Frame = undefined, | |
| x4: *Frame = undefined, | |
| x5: *Frame = undefined, |
| const std = @import("std"); | |
| const testing = std.testing; | |
| const ArrayList = std.ArrayList; | |
| const StringHashMap = std.StringHashMap; | |
| pub const Protobuf = struct { | |
| buf: ArrayList(u8), | |
| pos: usize, | |
| len: usize, | |
| allocator: std.mem.Allocator, |
| const fs = require('fs') | |
| const source = fs.readFileSync('./async.wasm') | |
| function u32ToU8 (num) { | |
| const resU32 = new Uint32Array([num]) | |
| return new Uint8Array(resU32.buffer) | |
| } | |
| function getMemory (instance) { | |
| return new Uint8Array(instance.exports.memory.buffer) |
| { | |
| "data": [ | |
| { | |
| "average_breath": 15.125, | |
| "average_heart_rate": 49.875, | |
| "average_hrv": 66, | |
| "awake_time": 14490, | |
| "bedtime_end": "2022-08-10T02:20:41-04:00", | |
| "bedtime_start": "2022-08-09T14:29:41-04:00", | |
| "day": "2022-08-10", |
| import { AwsClient } from 'aws4fetch' | |
| let b2 | |
| // accessKeyId -> B2 keyID | |
| // secretAccessKey -> B2 AppKey | |
| export const prepB2 = (accessKeyId, secretAccessKey) => { | |
| if (!b2) b2 = new AwsClient({ accessKeyId, secretAccessKey, service: 's3' }) | |
| } |
| { | |
| "version": 2, | |
| "name": "s2maps-streets", | |
| "center": [-122.4585607773497, 37.778443127730476], | |
| "zoom": 0, | |
| "minzoom": -1, | |
| "maxzoom": 18.99, | |
| "sources": { | |
| "streets": "s2maps://data/s2maps/streets-v3.s2tiles", | |
| "terrain": "s2maps://data/s2maps/terrain-v1.s2tiles" |
See https://chromium.googlesource.com/chromium/src/+/master/docs/mac_build_instructions.md
git clone depot_tools
add to path (not using ~ but $HOME) in .bash_profile
sudo sysctl kern.maxvnodes=$((512*1024))
| const SerialPort = require('serialport'); | |
| const { asciiToTrytes } = require('@iota/converter') | |
| const Mam = require('@iota/mam'); | |
| const port = new SerialPort('/dev/tty.usbserial-210352A82EDB1', { | |
| baudRate: 115200 | |
| }); | |
| port.on('open', () => { | |
| console.log('port is open!'); |