Compiled and written by Matti "ccr" Hamalainen of TNSP 2000-2001
Contact ccr/TNSP at:
- e-mail: ccr@tnsp.org
- www : http://www.tnsp.org/
Compiled and written by Matti "ccr" Hamalainen of TNSP 2000-2001
Contact ccr/TNSP at:
#include <time.h> // Robert Nystrom | |
#include <stdio.h> // @munificentbob | |
#include <stdlib.h> // for Ginny | |
#define r return // 2008-2019 | |
#define l(a, b, c, d) for (i y=a;y\ | |
<b; y++) for (int x = c; x < d; x++) | |
typedef int i;const i H=40;const i W | |
=80;i m[40][80];i g(i x){r rand()%x; | |
}void cave(i s){i w=g(10)+5;i h=g(6) | |
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u |
pragma solidity ^0.5.0; | |
contract CompareMulExp | |
{ | |
// altBN curve order | |
uint256 constant CURVE_ORDER = 0x30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001; | |
/** | |
* @dev Computes (base ^ exponent) % modulus over big numbers. | |
*/ |
package main | |
import ( | |
"flag" | |
"io" | |
"net" | |
"time" | |
log "github.com/sirupsen/logrus" | |
"golang.org/x/net/proxy" |
You'll probably be working with a single smartcard, so you'll want only one primary key ( |
// Bytecode origin https://www.reddit.com/r/ethereum/comments/6ic49q/any_assembly_programmers_willing_to_write_a/dj5ceuw/ | |
// Modified version of Vitalik's https://www.reddit.com/r/ethereum/comments/6c1jui/delegatecall_forwarders_how_to_save_5098_on/ | |
// Credits to Jordi Baylina for this way of deploying contracts https://gist.github.com/jbaylina/e8ac19b8e7478fd10cf0363ad1a5a4b3 | |
// Forwarder is slightly modified to only return 256 bytes (8 normal returns) | |
// Deployed Factory in Kovan: https://kovan.etherscan.io/address/0xaebc118657099e2110c90494f48b3d21329b23eb | |
// Example of a Forwarder deploy using the Factory: https://kovan.etherscan.io/tx/0xe995dd023c8336685cb819313d933ae8938009f9c8c0e1af6c57b8be06986957 | |
// Just 66349 gas per contract |
This builds off the excellent work of @lmarkus. | |
The scripts below can be used in conjunction with the Slack Emoji Tools Google Chrome extension to export emojis from | |
one Slack team and import into another team. | |
Original work here: https://gist.github.com/lmarkus/8722f56baf8c47045621 |
pragma solidity ^0.4.6; | |
contract MemcpyTest { | |
function test(string input) returns (string output) { | |
uint len = bytes(input).length; | |
output = new string(len); | |
uint _input; | |
uint _output; | |
assembly { |
// | |
// SpinlockTestTests.swift | |
// SpinlockTestTests | |
// | |
// Created by Peter Steinberger on 04/10/2016. | |
// Copyright © 2016 PSPDFKit GmbH. All rights reserved. | |
// | |
import XCTest |