Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander C. ice09

View GitHub Profile
View RippleMail
// Ripple account to watch for payment
var acct = 'rDPe2PCQtxngg5euANuGiL9o9XEsNfim2g'
// API key for Mailgun
var api_key = 'key-';
// Subdomain for Mailgun
var domain = 'domain.mailgun.org';
// create Mailgun
var Mailgun = require('mailgun-js');
var mailgun = new Mailgun({apiKey: api_key, domain: domain});
// create Ribble lib
@ice09
ice09 / gist:5477959
Created Apr 28, 2013
7l7w ruby day3
View gist:5477959
# Modify the CSV application to support an each method to return a CsvRow object.
# Use method_missing on that CsvRow to return the value for the column of each heading.
#
# Kontonummer, Name
# 12144445678, ice09
class CsvRow
attr_accessor :values, :keys
def initialize( keys, values )
View fibonacci.io
#
# Write a Fibonacci program...
#
Proto := Object clone
# ...recursive version
Proto fib := method(n, if (n<=2, return 1, return (fib(n-2)+fib(n-1))))
# ...iterative version
View keybase.md

Keybase proof

I hereby claim:

  • I am ice09 on github.
  • I am ice09 (https://keybase.io/ice09) on keybase.
  • I have a public key whose fingerprint is 0A36 A906 2F16 5F34 4B61 3D96 95E0 239D 9AD5 3D71

To claim this, I am signing this object:

@ice09
ice09 / token.sol
Created Sep 14, 2017
just the standard token contract
View token.sol
pragma solidity ^0.4.13;
contract tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData); }
contract MyToken {
/* Public variables of the token */
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
View addr.eth
0xDbdCDb5972E88E5273E46290C0D6bb3a96c23628
@ice09
ice09 / extra-accounts.json
Created May 22, 2018
Cliquebait, start Geth private network in docker with customizable extra accounts (to sync eg. with Rinkeby without changing app code)
View extra-accounts.json
[
{
"password":"123654789",
"keystore": {
"address":"627306090abab3a6e1400e9345bc60c78a8bef57",
"crypto":{
"cipher":"aes-128-ctr",
"ciphertext":"9e1d0c1693db4b0b6a3d0ee8a81ea21e20dc5fa894437144e0b6e72748f2165b",
"cipherparams":{
"iv":"b0da55dd00ecc9f5d161f66b67394ed5"
View gist:4e2568520e473ef878914f65c6c82fba
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreigdyuhhpczzveh5lf2gxqhys7gldhxh3qcscdremttjpdvdxl5i7i ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
@ice09
ice09 / BinaryTreePrinter.java
Last active Oct 11, 2020
MerkleTree Implementation with very simple testing, implements proofPath creation and proofPath validation. Is heavily influenced by https://github.com/SimoneStefani/merkle-tree-java.
View BinaryTreePrinter.java
package tech.blockchainers.crypyapi.http.common;
import org.web3j.utils.Numeric;
import java.io.PrintStream;
// taken from https://github.com/eugenp/tutorials/blob/master/data-structures/src/main/java/com/baeldung/printbinarytree/BinaryTreePrinter.java
public class BinaryTreePrinter {
View ICirclesToken.sol
// SPDX-License-Identifier: AGPL
pragma solidity ^0.7.0;
abstract contract ICirclesToken {
function look() virtual public view returns (uint256);
/// @notice receive a ubi payout
/// @dev this is the method to actually update storage with new token balance
function update() virtual public;