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
{ | |
"data": [ | |
{ | |
"id": "1", | |
"type": "sensor_statuses", | |
"attributes": { | |
"assetId": 1, | |
"inputId": 1, | |
"lastSensorContact": "2022-08-06T18:02:16.000+00:00", | |
"minRange": "35.00", |
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
{"data":[{"id":"1","type":"sensor_statuses","attributes":{"assetId":1,"inputId":1,"lastSensorContact":"2022-08-06T18:02:16.000+00:00","minRange":"35.00","maxRange":"37.00","preAlarmMin":null,"preAlarmMax":null,"emergencyAlarmMin":null,"emergencyAlarmMax":null,"overLimit":0,"underLimit":0,"value":"36.49","units":"C","signalStrength":100,"batteryLevel":23},"links":{"self":"/api/v1/sensor_statuses/1"}},{"id":"2","type":"sensor_statuses","attributes":{"assetId":1,"inputId":2,"lastSensorContact":"2022-08-06T18:02:16.000+00:00","minRange":"60.00","maxRange":"100.00","preAlarmMin":null,"preAlarmMax":null,"emergencyAlarmMin":null,"emergencyAlarmMax":null,"overLimit":0,"underLimit":0,"value":"74.62","units":"%RH","signalStrength":100,"batteryLevel":23},"links":{"self":"/api/v1/sensor_statuses/2"}},{"id":"3","type":"sensor_statuses","attributes":{"assetId":2,"inputId":3,"lastSensorContact":"2022-08-06T17:54:04.000+00:00","minRange":"25.00","maxRange":"30.00","preAlarmMin":null,"preAlarmMax":null,"emergencyAlarmMin":nul |
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
movies: | |
A Cat in Paris (2010).mkv | |
A Night at the Opera (1935).avi | |
Airplane.mp4 | |
Apollo 11 (2019).mkv | |
Apollo 13 (1995).mp4 | |
Apollo 13 (1995).srt | |
Army of Darkness.avi | |
Blazing Saddles.avi | |
Brazil.avi |
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
movies | |
movies/The Adventures of Robin Hood (1938).mp4 | |
movies/Harry Potter and the Prisoner Of Azkaban (2004).mkv | |
movies/Harry Potter and the Deathly Hallows Part 1 (2010).mkv | |
movies/No Time To Die (2021).mp4 | |
movies/Harry Potter and the Sorcerer's Stone (2001) mkv.mkv | |
movies/The Court Jester (1956).mp4 | |
movies/Brazil.avi | |
movies/Wakko's Wish (1999) (Animaniacs).mp4 | |
movies/The 5000 fingers of Doctor T.mp4 |
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
#!/usr/bin/env python | |
import random | |
seed = 0 | |
i = 0 | |
found = False | |
while True: | |
seed=seed+1 | |
random.seed(seed) |
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
import random | |
random.seed(883573) | |
i = 1 | |
while True: | |
r = random.randint(0, 1000000) | |
print(f"{i}: {r}") | |
if r == 420: | |
print("nice") | |
break |
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
#!/usr/bin/env python3 | |
import glob | |
import os | |
import sys | |
import json | |
import googlemaps | |
gmaps = googlemaps.Client(key='fucku') |
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
# Photos - XML metadata to printable | |
1. Read the XML file | |
2. Drop fields, reformat GPS | |
Transform: | |
``` | |
out :: reformat(in) = |
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
[directory] | |
truncation_length = 6 | |
truncation_symbol = '…/' | |
truncate_to_repo = true | |
[hostname] | |
ssh_only = false | |
format = '@[$hostname](bold blue) ' | |
[username] |
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
#!/usr/bin/env python | |
import pydicom | |
import glob | |
import os | |
import shutil | |
thedicomfiles = glob.glob(os.path.join('/input', '*.dcm')) | |
for thisfilename in thedicomfiles: |