Skip to content

Instantly share code, notes, and snippets.

View Zequez's full-sized avatar

Ezequiel Schwartzman Zequez

View GitHub Profile
@Zequez
Zequez / kinto.ini
Created March 23, 2021 01:37
kinto.ini on development server
# Created at Mon, 22 Mar 2021 21:56:31 -0300
# Using Kinto version 14.2.0
# Full options list for .ini file
# https://kinto.readthedocs.io/en/latest/configuration/settings.html
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = %(http_port)s
@Zequez
Zequez / cronometer-stylus.css
Created March 29, 2021 22:08
2 column Stylus style for Cron-o-meter
@-moz-document url-prefix("https://cronometer.com/") {
#cronometerApp {
width: 100%;
margin: 0;
max-width: none;
}
#cronometerApp > div > div > div > table {
width: 100%;
}
import { Balances } from "./context/connected";
import { Contracts } from "../contracts";
import { ethers, BigNumber } from "ethers";
const TokensInventory = ({ balances, address, contracts }: { balances: Balances; address: string; contracts: Contracts }) => {
return (
<div id="inventory-top">
<div>
<div>
<aside>My Ubiquity Inventory</aside>
@Zequez
Zequez / pause_spotify_after_every_track.py
Created August 19, 2023 13:35
Pause Spotify after every track
# This script was written by ChatGPT from the following prompt
# Could you write me a small script that runs on OSX that monitors the currently playing song on
# Spotify and when the song changes pauses for 30 seconds and then starts playing again?
import time
import subprocess
def run_applescript(script):
return subprocess.run(["osascript", "-e", script], capture_output=True, text=True)