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
#!/bin/sh | |
# | |
# $1 = scanner device | |
# $2 = friendly name | |
# 100,200,300,400,600 | |
# 200 is a little more than half the size but still readable. | |
resolution=300 | |
device=$1 | |
device='brother4:net1;dev0' | |
#BASE= /home/glamke/brscan |
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
#! /bin/sh | |
# | |
# $1 = scanner device | |
# $2 = friendly name | |
# 100,200,300,400,600 | |
# 200 is a little more than half the size but still readable. | |
resolution=300 | |
device=$1 | |
device='brother4:net1;dev0' | |
#BASE= /home/glamke/brscan |
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
// XPath CheatSheet | |
// To test XPath in your Chrome Debugger: $x('/html/body') | |
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
// Credit to the original author: https://gist.github.com/LeCoupa/8c305ec8c713aad07b14 | |
// 0. XPath Examples. | |
// More: http://xpath.alephzarro.com/content/cheatsheet.html | |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"data ": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
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
bool stopPlaying() { | |
bool stopped = false; | |
if (rtttl) { | |
rtttl->stop(); | |
delete rtttl; | |
rtttl = nullptr; | |
stopped = true; | |
} | |
if (mp3) { | |
mp3->stop(); |
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
#include <FastLED.h> | |
#define NUM_LEDS 120 | |
#define DATA_PIN 6 | |
CRGB leds[NUM_LEDS]; // sets up block of memory | |
#define NUM_SPARKS 61 // max number (could be NUM_LEDS / 2); | |
float sparkPos[NUM_SPARKS]; | |
float sparkVel[NUM_SPARKS]; | |
float sparkCol[NUM_SPARKS]; | |
float flarePos; |
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
:: Folder maker for spawning folders by years | |
:: generates a list of numbers (start, step, stop) and makes directories for it. | |
:: Can do a dry run first with DO echo %%G if you want to check it. | |
FOR /L %%G in (2010,1,2018) DO mkdir %%G | |
:: For Months | |
:: FOR /L %%G in (202501,1,202512) DO mkdir %%G |
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
@echo off | |
start powershell.exe -noexit -command "cd c:\Users\glamke\AppData\Local\Programs\Python\Python37-32\scrapy"; ".\Scripts\activate"; "cd pbike" |
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
#!/bin/sh | |
# A program to slowly cat file or standard input. | |
if [ "$1" ] ; then | |
file="$1" | |
else | |
file="-" | |
fi |
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
super_regex = '(?:[\r\n]*)([\'A-Z -\.]*)(?:[\r\n]+)(\[.+||\s])\s*(CURRENT STUDY:[A-Z\s/\[\]]+)([\d-]+)\s([\d:]+)\s(\[DOB:[\s0-9/]+])\s+(\[ID:.+])\s*(?:USE . LINK)\s*(Read Date: \d{4}-\d{2}-\d{2})\s*(Read Time: \d{2}:\d{2}:\d{2})' |
NewerOlder