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 | |
# Simple script used for filtering out photos taken on a timelapse camera | |
# Used in conjuction with [removeBlurry.sh](https://gist.github.com/JoshM1994/8ab288466500c26e7fcc62a388249abe) | |
mkdir -p tooDark | |
for f in `ls | sort -Vr`; do | |
AVG=$(convert $f -colorspace HCL -format '%M avg=%[fx:mean.g*1000] peak=%[fx:maxima.g]\n' info: | awk 'END {print $2}') | |
AVG=${AVG:4:5} |
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 | |
# Simple script used for filtering out photos taken on a timelapse camera | |
# Used in conjuction with [removeDark.sh](https://gist.github.com/JoshM1994/0481b41d4bc83e15af3dc49b8424943d) | |
mkdir -p tooBlurry | |
for f in `ls | sort -Vr`; do | |
SD=$(identify -verbose $f | grep "standard deviation" | head -1) | |
ISOK=$(echo "${SD:25:5} > 50" | bc) |
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
function promiseWait(timeToWait, startTime) { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => { | |
resolve(new Date().getTime() - startTime); | |
}, timeToWait); | |
}); | |
} | |
async function waitPromiseAll() { | |
const startTime = new Date().getTime(); |
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
function promiseWait(timeToWait, startTime) { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => { | |
resolve(new Date().getTime() - startTime); | |
}, timeToWait); | |
}); | |
} | |
async function waitChainPromiseAll() { | |
const startTime = new Date().getTime(); |
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
syntax = "proto3"; | |
package loranetwork.v1; | |
import "loranetwork.v1/common.proto"; | |
// The ping sent from the Android/iPhone Device to the BM Pager over BLE. | |
// To be forwarded to the cloud over LoRa | |
message PagerCommsTextMessage { | |
// There is no ID field here because this will be wrapped in a standard LoraPacket |
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
// If senderId does not exist in the members object mapping, add it with an empty array of messages | |
const addIfNotInNetwork = (members, senderId) => members[senderId] ? members : { | |
...members, | |
[senderId]: [] | |
} | |
const loraMagicSend = () => { | |
// Send the message off over LoRa... | |
} |
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
/** | |
# | |
# JS .eslintrc.js | |
# ____ ___ _ _ ___ _____ _____ ____ ___ _____ | |
# | _ \ / _ \ | \ | |/ _ \_ _| | ____| _ \_ _|_ _| | |
# | | | | | | | | \| | | | || | | _| | | | | | | | | |
# | |_| | |_| | | |\ | |_| || | | |___| |_| | | | | | |
# |____/ \___/ |_| \_|\___/ |_| |_____|____/___| |_| | |
# | |
# |
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
# Standard | |
/.git | |
/.vscode | |
/.idea | |
node_modules | |
**/*_pb.js | |
built # or whatever name you use for your TypeScript compiled output | |
# Custom |
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
# editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 4 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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
/** | |
# | |
# JS prettier.config.js | |
# ____ ___ _ _ ___ _____ _____ ____ ___ _____ | |
# | _ \ / _ \ | \ | |/ _ \_ _| | ____| _ \_ _|_ _| | |
# | | | | | | | | \| | | | || | | _| | | | | | | | | |
# | |_| | |_| | | |\ | |_| || | | |___| |_| | | | | | |
# |____/ \___/ |_| \_|\___/ |_| |_____|____/___| |_| | |
# | |
# |
OlderNewer