Moved to https://github.com/coderbyheart/fw-nrfconnect-nrf-docker
This file contains 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 threshold = 26.5; | |
const interval = 10; | |
let currentTemp; | |
let isOff; | |
function setLEDS(l1,l2,l3) { | |
digitalWrite(LED1, l1); | |
digitalWrite(LED2, l2); | |
digitalWrite(LED3, l3); | |
} |
This file contains 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
var dht = require("DHT22").connect(A1); | |
const threshold = 25; | |
const interval = 10; | |
let currentTemp = 0; | |
// LEDs off | |
LED1.write(false); | |
LED2.write(false); |
This file contains 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
(-inkscape|font|word|text|letter|writing)-[^:]+:[^;]+; |
This file contains 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
#!/bin/bash | |
ffmpeg -y -i $1 -vf palettegen palette.png | |
ffmpeg -y -i $1 -i palette.png -filter_complex paletteuse -r 10 $1.gif |
This file contains 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
import AWS from 'aws-sdk' | |
const db = new AWS.DynamoDB(); | |
const oldTable = 'bifravst-cellGeolocationdeviceCellGeoLocations9F25FBED-1VK9FPSS5GX3G' | |
const newTable = 'bifravst-cellGeolocationdeviceCellGeoLocation757F8D27-1K6Z9IBMWMV2K' | |
const refill = (ExclusiveStartKey) => db.scan({ | |
TableName: oldTable, | |
Limit: 100, |
This file contains 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
[ | |
{ | |
"cellID": 1805149, | |
"mccmnc": 24412, | |
"areaCode": 50222, | |
"locations": [ | |
{ | |
"date": "2020-02-26T06:08:32.914Z", | |
"lat": 61.49116083333333, | |
"lng": 23.771811333333332, |
This file contains 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
import fetch from 'node-fetch' | |
import * as querystring from 'querystring' | |
const f = (pageNextToken, messages = []) => fetch(`https://api.nrfcloud.com/v1/messages?${querystring.stringify({ | |
inclusiveStart: '2019-01-01T00:00:00Z', | |
exclusiveEnd: new Date().toISOString(), | |
pageSort: 'desc', | |
pageLimit: 100, | |
...(pageNextToken ? { pageNextToken } : {}), | |
})}`, { |
This file contains 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
import { Chance } from 'chance' | |
import { v4 } from 'uuid' | |
import { createWriteStream, WriteStream } from 'fs' | |
import * as path from 'path' | |
const numMessages = parseInt(process.argv[process.argv.length - 2], 10) | |
const outDir = process.argv[process.argv.length - 1] | |
const allSensors = [] as string[] | |
for (let i = 0; i < 5; i++) { |
This file contains 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
package gps; | |
syntax = "proto3"; | |
message gps { | |
message V { | |
double lng = 0; | |
double lat = 1; | |
double acc = 2; | |
double alt = 3; | |
double spd = 4; |