- Is the design passively or actively safe? For example, if an MCU or FPGA is being programmed, held in reset, or in their POR, does the circuit enter a safe / idle / known state? Is the circuit only hot under control (can it be)?
- Can you detect all relevant environmental changes? If changes in environment indicate a change in operating state or mode, can you detect them? (e.g. VBUS high on a self-powered USB device, SD card in socket, a particular connector plugged in)
- FETs have pull-ups / -downs?
- BJTs properly biased for both levels and current?
- Chip selects have pull-ups / -downs?
- Pull-up / -down resistors appropriate value for expected environment/noise?
- Enable pins checked for polarity. Not all datasheets indicate this well, pin description text checked? Part number verified for ICs with orderable polarity configurations?
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
| // ==UserScript== | |
| // @name Clickpocalypse 2 Screensaver | |
| // @namespace https://www.danielandrade.net | |
| // @version 0.1 | |
| // @description Turn this game into a full-screen screensaver | |
| // @author Daniel Spillere Andrade | |
| // @match http://minmaxia.com/c2/ | |
| // ==/UserScript== | |
| function addGlobalStyle(css) { |
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 BaseHTTPServer | |
| from SimpleHTTPServer import SimpleHTTPRequestHandler | |
| import sys | |
| import base64 | |
| key = "" | |
| class AuthHandler(SimpleHTTPRequestHandler): | |
| ''' Main class to present webpages and authentication. ''' | |
| def do_HEAD(self): |
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
| jhead -nf%Y-%m-%d_%H-%M-%S *.jpg; X=1; for i in *.jpg; do mv $i $(printf %04d.%s ${X%.*} ${i##*.}); let X="$X+1";done |
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 http://yourdomain.net/shots/%~n1%~x1 | clip.exe | |
| "C:\Windows\ncftpput.exe" -u USER -p PASSWORD SERVER "/yourdomain.net/shots" %1 |
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 urllib, json | |
| from time import gmtime, strftime, sleep | |
| import os | |
| def getPrice(url): | |
| response = urllib.urlopen(url) | |
| data = json.loads(response.read()) | |
| return data | |
| eth = "https://coinmarketcap-nexuist.rhcloud.com/api/eth" |
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
| * MFG - Manufacturing | |
| * MFD - Manufactured | |
| * RFQ - Request for Quote Process | |
| * LOA - Letter of Authorization | |
| * RFO - Request for Order | |
| * MPN - Manufacturer Part Number |
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
| #calculate time differnece | |
| import time | |
| import os | |
| while True: | |
| now = time.time() #1488997525 | |
| end = 1517504400 | |
| difference = end - now |
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
| #calculate time differnece | |
| import time | |
| import os | |
| while True: | |
| now = time.time() #1488997525 | |
| end = 1517504400 | |
| difference = end - now |
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
| /* | |
| Daniel Andrade - www.danielandrade.net | |
| non blocking classes for NewPing sonars | |
| */ | |
| #include <NewPing.h> | |
| class Sonar : public NewPing | |
| { | |
| // Class Member Variables |