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 requests | |
| import datetime | |
| import os | |
| import sys | |
| from typing import Optional, Dict | |
| import json | |
| import logging | |
| # Create custom loggers for stdout and stderr | |
| class InfoLogger(logging.StreamHandler): |
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 tensorflow as tf | |
| import numpy as np | |
| import scipy.io | |
| import argparse | |
| import struct | |
| import errno | |
| import time | |
| import cv2 | |
| import os |
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
| ### This is the script powering trisight halloween costume, running on Adafruit GEMMA M0 running CircuitPython | |
| import board | |
| import neopixel | |
| import time | |
| try: | |
| import urandom as random # for v1.0 API support | |
| except ImportError: | |
| import random | |
| # numpix = 17 # Number of NeoPixels |
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
| # NeoPixel library strandtest example | |
| # Author: Tony DiCola (tony@tonydicola.com) | |
| # | |
| # Direct port of the Arduino NeoPixel library strandtest example. Showcases | |
| # various animations on a strip of NeoPixels. | |
| import time | |
| from neopixel import * | |
| # LED strip configuration: |
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
| <head> | |
| <title>Headphone connection test</title> | |
| </head> | |
| <body> | |
| <p>Expected outcome: Pressing test reveals if headphone's plugged in / not plugged in</p> | |
| <button type="button" name="button">Test</button> | |
| <script type="text/javascript"> | |
| 'use strict'; |
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
| ArrayList<Spawn> spawns = new ArrayList<Spawn>(); | |
| int spawnRate = 7; | |
| int disruptor = 0; | |
| float speed = 1; | |
| float radius = 2; | |
| int spawnCounter = 0; | |
| void setup() | |
| { | |
| size(540, 540); | |
| background(255); |
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
| // http://bites.goodeggs.com/posts/export-this/ | |
| // 1. Module require caches the module result, | |
| var f1 = require('./foo'); | |
| var f2 = require('./foo'); | |
| f1 === f2; // true | |
| f1.bar === f2.bar; // true | |
| // 2. Module with functions/constructors allow using module and get separate instances |
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 Oliver Barraza | |
| *.sdf | |
| Intermediate/ | |
| Saved/ | |
| Binaries/ | |
| *.sln | |
| *.suo |