Skip to content

Instantly share code, notes, and snippets.

View Dustinturner44's full-sized avatar
🎯
Focusing

Dustin Turner Dustinturner44

🎯
Focusing
View GitHub Profile
@Dustinturner44
Dustinturner44 / 1-contract.json
Created November 28, 2025 16:06 — forked from epheph/1-contract.json
Solidity Standard Json Input Creating Different Bytecode for ZeroXTrade.sol
{
"language": "Solidity",
"settings": {
"remappings": [
"ROOT=/home/achapman/augur/packages/augur-core/src/contracts//"
],
"optimizer": {
"enabled": true,
"runs": 200,
"details": {
@Dustinturner44
Dustinturner44 / thundering-herd.pl
Created November 25, 2025 13:21 — forked from kazuho/thundering-herd.pl
thundering herd checker for select-accept pattern
#! /usr/bin/perl
#
# to test:
# 1) run this script with either "accept" or "select-accept" as the argument
# (the script listens to 127.0.0.1:12345)
# 2) telnet localhost 12345
# 3) if you see "accept failed", there is the thundering herd problem
#
#
use strict;
@Dustinturner44
Dustinturner44 / tinycubesat.cpp
Created November 7, 2025 18:42 — forked from marcdal/tinycubesat.cpp
Simple low powerLED blink pattern for the ATtiny based satellite sculpture
#include <avr/sleep.h> //Needed for sleep_mode
#include <avr/wdt.h> //Needed to enable/disable watch dog timer
void setup() {
pinMode(0, OUTPUT);// LED connected to pin 5 which is recognised as pin 0 by arduino
ADCSRA &= ~(1<<ADEN); //Disable ADC, saves ~230uA
//Power down various bits of hardware to lower power usage
set_sleep_mode(SLEEP_MODE_PWR_DOWN); //Power down everything, wake up from WDT
sleep_enable();
}
@Dustinturner44
Dustinturner44 / playground.rs
Created November 3, 2025 01:30 — forked from rust-play/playground.rs
Code shared from the Rust Playground
struct Inner {
a: A,
}
impl Inner {
fn fun(&mut self) {
self.a.something();
}
fn fun2(&mut self, outer: &Arc<Outer>) {
self.a.something2(outer.b);
var settings = {
// Set to 'true' (without quotes) if run on Windows 64bit. Set to 'false' (without quotes) otherwise.
x64: true,
// Set to disk letter, where PhpStorm was installed to (e.g. C:)
disk_letter: 'C:',
// Set to folder name, where PhpStorm was installed to (e.g. 'PhpStorm')
folder_name: 'PhpStorm 2022.1.2',
var settings = {
// Set to 'true' (without quotes) if run on Windows 64bit. Set to 'false' (without quotes) otherwise.
x64: true,
// Set to disk letter, where PhpStorm was installed to (e.g. C:)
disk_letter: 'C:',
// Set to folder name, where PhpStorm was installed to (e.g. 'PhpStorm')
folder_name: 'PhpStorm 2022.1.2',