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 time | |
def timed_function(f, *args, **kwargs): | |
def new_func(*args, **kwargs): | |
t = time.ticks_us() | |
result = f(*args, **kwargs) | |
delta = time.ticks_diff(time.ticks_us(), t) | |
print("Function Time = {:6.3f}us".format(delta)) | |
return result |
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
from original import FakePaneOriginal | |
from option_1 import FakePaneOne | |
from option_2 import FakePaneTwo | |
from option_3 import FakePaneThree | |
from option_4 import FakePaneFour | |
from option_5 import FakePaneFive | |
utf8_char_list = [ | |
"°", | |
"🌈", |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>gh3</title> | |
</head> | |
<body> | |
<h1>Test</h1> | |
<script> |
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 speech | |
from microbit import sleep, button_a, button_b, display, Image | |
gap = 220 # How long a silence should be. | |
bass_drum = 'BUH' # Sound of a beat box bass drum | |
snare = 'CHIXIX' # Sound of a beat box snare | |
roll = 'DGDG' # Sound of a beat box drum roll | |
rest = '' # Represents a rest of "gap" duration | |
# Two sequences (lists) of beats. One beat per line. |
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 os | |
import sys | |
import glob | |
#from PIL import Image | |
#from PIL.ExifTags import TAGS | |
import time | |
def get_exif(file_name): | |
""" Extracts EXIF data. Does not check for file validity. """ |