Skip to content

Instantly share code, notes, and snippets.

# Command for clearing notifications
atom.commands.add 'atom-workspace', 'custom-commands:dismiss-notifications', ->
atom.notifications.getNotifications().forEach (notification) ->
notification.dismiss()
atom.notifications.clear()
import numpy as np
import tensorflow as tf
nobs = 100
alpha = 1.0
beta = np.array([0.0, 0.5, 0.25])
L = np.array([[1.0, 0.0, 0.0], [0.25, 1.1, 0.0], [0.2, 0.2, 1.25]])
X = np.random.randn(nobs, 3) @ L
@cc7768
cc7768 / upunk_index_price.py
Last active January 24, 2022 16:45
Implementation of uPUNK price feed
import datetime as dt
import math
import statistics
import web3
from umapy import connect_web3, create_cryptopunks_contract, find_cryptopunk_purchases
from umapy.util import find_oldest_block_after_ts