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
| /* | |
| ATTiny85 Annoy-O-Bug | |
| This is equal parts: | |
| https://create.arduino.cc/projecthub/arjun/programming-attiny85-with-arduino-uno-afb829 | |
| https://www.hackster.io/AlexWulff/the-annoy-o-bug-a-chirping-light-up-throwie-37e58a | |
| https://github.com/sparkfun/H2OhNo/blob/master/firmware/WatchDogTest/WatchDogTest.ino | |
| https://github.com/SpenceKonde/ATTinyCore | |
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
| require 'digest' | |
| # From activestorage | |
| def compute_checksum_in_chunks(io) | |
| Digest::MD5.new.tap do |checksum| | |
| while chunk = io.read(5242880) | |
| checksum << chunk | |
| end | |
| io.rewind | |
| end.base64digest |
OlderNewer