This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from datetime import datetime | |
import reverse_geocoder as rg | |
location_history = None | |
json_filename = 'timeline_history/Location History/Location History.json' | |
print('Loading: %s' % json_filename) | |
with open(json_filename, 'r') as f: | |
location_history = json.load(f) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# need curl and jq installed | |
# go to https://api.slack.com/apps and create an app | |
# add OAuth permissions: | |
# calls:write | |
# channels:join | |
# channels:manage | |
# channels:read |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo pkill TouchBarServer; sudo killall ControlStrip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Web3 = require('web3') | |
const BN = require('bn.js') | |
const Big = require('big.js') | |
// what is a wad https://makerdao.com/purple/#sec-3-1 | |
const wadToEth = (value) => { | |
return (new Big(value)).div((new BN(10)).pow(new BN(18))) | |
} | |
const printEvent = (web3, eventType) => (event) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const hre = require("hardhat"); | |
async function main() { | |
const signers = await hre.ethers.getSigners(); | |
const owner = signers[0]; | |
const Airnode = await hre.ethers.getContractFactory("Airnode", owner); | |
const Convenience = await hre.ethers.getContractFactory("Convenience", owner); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer