Skip to content

Instantly share code, notes, and snippets.

View natemurthy's full-sized avatar

Nathan Murthy natemurthy

View GitHub Profile
pragma solidity ^0.4.23;
contract helloworld {
function say() public pure returns (string) {
return 'hello etherworld';
}
}
package main
import (
"math/big"
"testing"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package main
import (
"strings"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
@natemurthy
natemurthy / etrade_authorizer.go
Created November 10, 2022 01:06
Etrade API oauth1 flow using Go
package main
import (
"bufio"
"fmt"
"log"
"net/url"
"os"
"strings"
@natemurthy
natemurthy / etrade-python-session-attributes.txt
Created November 18, 2022 01:07
A dump of all session attributes when using the rauth library against the Etrade API
session attributes:
VERSION 1.0
_get_oauth_params <bound method OAuth1Session._get_oauth_params of <rauth.session.OAuth1Session object at 0x108304c10>>
_parse_optional_params <bound method OAuth1Session._parse_optional_params of <rauth.session.OAuth1Session object at 0x108304c10>>
_set_url <bound method RauthSession._set_url of <rauth.session.OAuth1Session object at 0x108304c10>>
access_token REDACTED
access_token_response <Response [200]>
access_token_secret REDACTED
adapters OrderedDict([('https://', <requests.adapters.HTTPAdapter object at 0x108304eb0>), ('http://', <requests.adapters.HTTPAdapter object at 0x108309040>)])
auth None
@natemurthy
natemurthy / tfgo-getting-started-error.txt
Created January 22, 2023 03:26
natemurthy: tfgo example failed
2023-01-21 19:01:59.670541: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
Referenced from: /usr/local/lib/libtensorflow.2.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: ____chkstk_darwin
Referenced from: /usr/local/lib/libtensorflow.2.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
@natemurthy
natemurthy / pip-install-torch.log
Created September 30, 2023 20:14
torch dependencies
=> => # Installing collected packages: mpmath, lit, cmake, typing-extensions, sympy, nvidia-nvtx-cu11, n
=> => # vidia-nccl-cu11, nvidia-cusparse-cu11, nvidia-curand-cu11, nvidia-cufft-cu11, nvidia-cuda-runtim
=> => # e-cu11, nvidia-cuda-nvrtc-cu11, nvidia-cuda-cupti-cu11, nvidia-cublas-cu11, networkx, MarkupSafe
=> => # , filelock, nvidia-cusolver-cu11, nvidia-cudnn-cu11, jinja2, triton, torch