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 | |
# Reads EXIF creation date from all .JPG files in the | |
# current directory and moves them carefully under | |
# | |
# $BASEDIR/YYYY/MM/DD/ | |
# | |
# ...where 'carefully' means that it does not overwrite | |
# differing files if they already exist and will not delete | |
# the original file if copying fails for some reason. |
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
// Mock dynamoDB | |
const requestMock = { | |
promise: jest.fn().mockImplementation( () => Promise.resolve({ | |
TableName: "my table name", | |
Items: [ | |
{ | |
mykey: "myValue", | |
}, | |
] | |
}) |
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 time | |
import random | |
from ev3dev2.motor import LargeMotor, OUTPUT_A, OUTPUT_B, MoveTank, SpeedPercent | |
from ev3dev2.sensor import INPUT_1, INPUT_2, INPUT_3, INPUT_4 | |
from ev3dev2.sensor.lego import UltrasonicSensor | |
from ev3dev2.sound import Sound | |
SPEED = 20 | |
DRIVE_TIME = 1 |