Install openssl with brew install openssl
Per https://solitum.net/openssl-os-x-el-capitan-and-brew/:
$ cd /usr/local/include
$ ln -s ../opt/openssl/include/openssl .
$ cd /usr/local/lib
$ $ for i in ../opt/openssl/lib/lib*; do ln -vs $i .; done
#import asyncio | |
import logging | |
from flask import Blueprint, Flask, request, render_template, g | |
from flask_graphql import GraphQLView | |
from google.cloud import logging as glogging | |
#from graphql.execution.executors.asyncio import AsyncioExecutor | |
from web3 import Web3, HTTPProvider | |
from werkzeug.serving import run_simple | |
from graphql import ( | |
graphql, |
const char splashscreen_data[] = { | |
// 0-37: Page 0 | |
0x01, 0xFF, 0xFF, 0xE0, 0xFF, 0x00, 0xE0, 0xFF, 0x00, 0xE0, | |
0x0A, 0x00, 0x00, 0x00, 0x40, 0x13, 0x01, 0x00, 0x80, 0x40, | |
0x05, 0xE0, 0x10, 0x00, 0x02, 0x02, 0xFD, 0xFD, 0x20, 0x23, | |
0x60, 0x29, 0xE0, 0x21, 0x00, 0x01, 0xFF, 0xFF, | |
// 38-109: Page 1 | |
0x04, 0xFF, 0xDF, 0xFF, 0xBF, 0xFF, 0xE0, 0xFF, 0x03, 0xE1, | |
0x34, 0x07, 0x03, 0xEF, 0xB8, 0xFF, 0xC0, 0x21, 0x4B, 0x02, | |
0xFF, 0xFF, 0xFE, 0x20, 0x03, 0xE0, 0xC5, 0x00, 0x00, 0x00, |
#!/usr/bin/env python3 | |
import argparse | |
import cups | |
from datetime import datetime, date | |
from flask import Flask, make_response, request, render_template_string | |
import io | |
import json | |
import logging | |
from reportlab.pdfgen import canvas | |
from reportlab.lib import units |
Install openssl with brew install openssl
Per https://solitum.net/openssl-os-x-el-capitan-and-brew/:
$ cd /usr/local/include
$ ln -s ../opt/openssl/include/openssl .
$ cd /usr/local/lib
$ $ for i in ../opt/openssl/lib/lib*; do ln -vs $i .; done
package main | |
import "fmt" | |
type state struct { | |
board [7][6]int; | |
heights [7]int; | |
} | |
type move struct { |
application: zip-site | |
version: main | |
runtime: python | |
api_version: 1 | |
handlers: | |
- url: /.* | |
script: main.py |
contract Registrar is Owned { | |
ENS public ens; | |
mapping(address=>boolean) public controllers; | |
constructor(ENS _ens) public { | |
ens = _ens; | |
setController(msg.sender, true); | |
} | |
function setController(address controller, boolean isController) ownerOnly { |
pragma solidity ^0.5.0; | |
import './ENS.sol'; | |
library BytesUtils { | |
/* | |
* @dev Returns the 32 byte value at the specified index of self. | |
* @param self The byte string. | |
* @param idx The index into the bytes | |
* @return The specified 32 bytes of the string. |
https://etherscan.io/address/0x285088c75a8508664ad77df63e2d60a408e5284a | |
https://etherscan.io/address/0x911143d946ba5d467bfc476491fdb235fef4d667 |
object "Create2Proxy" { | |
code { | |
let size := datasize("runtime") | |
datacopy(0, dataoffset("runtime"), size) | |
return(0, size) | |
} | |
object "runtime" { | |
code { | |
let salt := calldataload(0) | |
let size := sub(calldatasize(), 32) |