I hereby claim:
- I am mariorz on github.
- I am mariorz (https://keybase.io/mariorz) on keybase.
- I have a public key whose fingerprint is 89FC 44A9 8DB1 EE76 357B B3B4 5F73 759F F22A A421
To claim this, I am signing this object:
0x909b443761bbd7fbb876ecde71a37e1433f6af6f | |
0x189c2c1834b1414a6aee9eba5dc4b4d547c9a44c | |
0xb1adceddb2941033a090dd166a462fe1c2029484 | |
0xb1adceddb2941033a090dd166a462fe1c2029484 | |
0xb1adceddb2941033a090dd166a462fe1c2029484 | |
0xb1adceddb2941033a090dd166a462fe1c2029484 | |
0xed3c4c5d7a9abfd74f33c1042793dfd6a6daef42 | |
0x39c09fdc4e5c5ab72f6319ddbc2cae40e67b2a60 | |
0x889abdd2bc0f3a884e607279ba132501698fbcd5 | |
0xb1adceddb2941033a090dd166a462fe1c2029484 |
(ns lpdashboard.compliqs | |
(:require [cljs.core.async :refer [go]] | |
[cljs.core.async.interop :refer-macros [<p!]] | |
[cljs-http.client :as http] | |
["ethers" :as ethers] | |
["@compound-finance/compound-js" :as compound] | |
[bignumber.core] | |
[bignumber.js :as BigNumber] | |
[clojure.string :as s] | |
[reagent.core :as reagent :refer [atom]])) |
from decimal import Decimal | |
import itertools | |
import coinbasepro as cbp | |
def compute_coinbase_attack_cost(): | |
client = cbp.PublicClient() | |
#get last 10000 trades, for good measure | |
trades = list(itertools.islice(client.get_product_trades('DAI-USDC'), 10000)) | |
#filter for off-price trades |
{ | |
"width": 900, | |
"height": 600, | |
"data": { | |
"values": [ | |
{ | |
"item": "Guanajuato", | |
"pos": 53, | |
"negs": 852, | |
"cdratio": 1, |
#! /usr/bin/env python | |
# avahi-alias.py | |
import time | |
import sys | |
import locale | |
import dbus | |
import avahi | |
from encodings.idna import ToASCII |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
I hereby claim:
To claim this, I am signing this object:
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG/MacGPG2 v2.0.19 (Darwin) | |
mQGNBFHTsngBDADEZKbugBiONcWj0CtQ+1vM1zXVecK7YRca/8ot60jLDIanzQX+ | |
/XIaD15s6kmXbeOTlLLNGpbODksfJgr9JCptTz4RxgXMGtAgY5/kRoAf7Q2eVCmd | |
g/MK7xCq+TLGk7w/pjZRmXpcDGMr+OTVElEJ8gP5JjxFvLVZe0SKHlI+x77LAKLi | |
igyJvxu3u9ME3jV9FDg/RZKaA4aDkHw3N/jeQiZNIbk6iexHfNG3IdAkRx4NVLc9 | |
uyUcYeIrWBOCj/A5hLIwv8MtDt5p+LpQiVRrc9M3br+VTLyHx8VASqm3QyKV9jN8 | |
S4N7AOKry9Q4TLhSlQnOmfmx0rw6msalZRdS1bug3UMrudcbS7nCaY0/ZBdPuC3M | |
e5WpUqCuM60r4/ElHu4bcF4975yJ0j2QKRzryyrZW+SlH+gysOh4rIz++9WNQ3DA |
cat <(cat /var/log/nginx/access.log /var/log/nginx/access.log.1 | grep /apath | awk '{print $1}') ips.txt | sort | uniq > tmp.txt; mv tmp.txt ips.txt; cat ips.txt | wc -l |
#! /usr/bin/env sh | |
# Detects files inside static/js/apps/<app_name>/templates | |
# compiles files to static/js/var/apps/<app_name>/templates | |
# Example: static/js/apps/cms/templates | |
TEMPLATE_DIR="static/js/apps" | |
TEMPLATE_DIR_TAIL="templates" | |
TEMPLATE_FILES_DELIMITER=":*:" | |
TEMPLATE_FILES="" |