Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Tests to benchmark how fast a 128 bytes of data can be turned into | |
// a 4 byte hash. | |
package hash_speed | |
import ( | |
"crypto/sha256" | |
"crypto/sha512" | |
"hash/crc32" | |
"hash/crc64" | |
"hash/fnv" |
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
from time import sleep | |
import meshtastic | |
import meshtastic.serial_interface | |
from pubsub import pub | |
def on_receive(packet, interface): | |
print(f'received: {packet}') | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/** | |
* @file memory_tracking.cpp | |
* Implements simple memory tracking for use in C++ applications. Define | |
* TRACK_MEMORY to enable during debug and unit testing, and undef for | |
* production. | |
* Version 1.01 | |
* | |
* Copyright (c) Josh Carter <[email protected]>, 2006 | |
* All rights reserved. | |
* |
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
### Keybase proof | |
I hereby claim: | |
* I am joshcarter on github. | |
* I am joshcarter (https://keybase.io/joshcarter) on keybase. | |
* I have a public key ASCLOgYnGQKV79FI-mDEDbJNExe0ANSGcdFUUpemojzu8go | |
To claim this, I am signing this object: |
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
def each_file(root, &block) | |
Dir.foreach(root) do |entry| | |
next if entry.start_with?(".") | |
entry = File.join(root, entry) | |
if File.file?(entry) | |
block.call(entry) | |
else | |
each_file(entry, &block) |