title | download_links |
---|---|
Some post title |
Some post content
#!/usr/bin/env bash | |
set -e | |
# Remove annoyingly verbose logging from OpenCV | |
export OPENCV_LOG_LEVEL=FATAL | |
python3 ./webcam_test.py |
title | download_links |
---|---|
Some post title |
Some post content
I hereby claim:
To claim this, I am signing this object:
import os, shutil | |
from glob import glob | |
def write_file(data, out_file_name, new_dir): | |
with open(os.path.join(new_dir, out_file_name), 'w') as f: | |
f.write(''.join(data)) | |
for ovpn_file in glob('*.ovpn'): | |
new_dir = os.path.join(ovpn_file.replace('.ovpn', '')) |
Settings for atom are now stored in the gist at https://gist.github.com/RealOrangeOne/9f9a4dd799ad01aa0502a09f06cbf454/ and synced using this plugin.
This makes syncing them between machines far easier than my old implementation of Owncloud sync and symlinks!
Unfortunately, this setup also stores the version number of the plugins, which means that a revision has to be made every time a package needs to be updated. It does kindof annoy me with all the spam, but at least it's not really obvious, and I'm sure there's a way of cleaning it up!
var element = $('div'); | |
const original = "ff7f00"; | |
const final = "333333"; | |
var R = original.substring(0, 2); | |
var G = original.substring(2, 4); | |
var B = original.substring(4, 6); | |
console.log(R, G, B); | |
var finalR = final.substring(0, 2); | |
var finalG = final.substring(2, 4); |
const char endChar = '\n'; | |
const char commandIdent = '$'; | |
String inputString; | |
boolean hasInput = false; | |
boolean isCommand = false; | |
void setup() { | |
Serial.begin(9600); | |
} |
# Using library at http://pimylifeup.com/raspberry-pi-time-lapse/ | |
from glob import glob | |
import os.path | |
import subprocess, logging | |
FILE_PATH = "/home/pi/timelapse/" # Where to store the files | |
CAPTURE_COMMAND = "raspistill -o {0}" # To be formatted later with file name | |
FORMAT = "[%(levelname)s] %(message)s" | |
LOG_FILE = FILE_PATH + "log.txt" |
{ | |
" ":" ", | |
"'":".----.", | |
"(":"-.--.-", | |
")":"-.--.-", | |
",":"--..--", | |
"-":"-....-", | |
".":".-.-.-", | |
"/":"-..-.", | |
"0":"-----", |