Skip to content

Instantly share code, notes, and snippets.


J. Eckert sargonas

View GitHub Profile

Keybase proof

I hereby claim:

  • I am sargonas on github.
  • I am thesargonas ( on keybase.
  • I have a public key whose fingerprint is A58B DBC5 5428 604F 543C D39B 4855 E81B 9503 4196

To claim this, I am signing this object:

sargonas /
Last active February 25, 2018 21:12
#CircuitPython code for a Trinket M0 with mini NeoPixel lights and a single button to control
#the lighting inside a set of infinity-mirror cat ears, powered by a small LiPoly battery.
from digitalio import DigitalInOut, Direction, Pull
import board
import time
import neopixel
pixelPin = board.D1 #set NeoPixel output pin
pixelNumber = 20 #set number of NeoPixels
strip = neopixel.NeoPixel(pixelPin, pixelNumber, brightness=0.5, auto_write=False)
sargonas / RPBroker.sol
Last active July 18, 2022 08:02
Solidium script for a smart contract for a brokerage wallet exchanging eth back for a custom token
View RPBroker.sol
pragma solidity ^0.4.8;
contract Token {
event Transfer(address indexed from, address indexed to, uint256 value);
function transfer(address _to, uint256 _value);
function balanceOf(address) returns (uint256);
contract owned {
address public owner;
sargonas /
Last active April 5, 2022 13:27
crypto portfolio import for google sheets
//Section 1: Coin Value//
//coin market value lookup (works for all coins, just pass a single coin symbol as a parameter)
function getCoinPriceBySymbol(symbol) {
var url = '';
var response = UrlFetchApp.fetch(url);
var json = JSON.parse(response.getContentText());