Skip to content

Instantly share code, notes, and snippets.

View asselstine's full-sized avatar

Brendan Asselstine asselstine

View GitHub Profile
@asselstine
asselstine / MPK249.py
Last active January 2, 2024 16:51
Extended MPK249 MIDI Remote Script for Ableton 11
# Extends the default MPK249 MIDI script for Ableton 11 Suite
# In this script the encoders effect the selection device instead of panning. Device selection follows track selection
# Directions:
# 1. Backup the original MPK249 directory:
# Mac: /Applications/Ableton Live 11 Suite.app/Contents/App-Resources/MIDI Remote Scripts/MPK249
# Windows: C:\ProgramData\Ableton\Live 11 Suite\Resources\MIDI Remote Scripts\MPK249
# 2. Delete the "MPK249.pyc" file in the original directory
# 3. Copy this file to the original directory and name it "MPK249.py"
# 4. Restart Ableton
from __future__ import absolute_import, print_function, unicode_literals
@asselstine
asselstine / generate.js
Created December 7, 2022 01:10
Generate Withdrawal Proof for Polygon
/*
You may need to manually withdraw from the Polygon blockchain.
Once you've run the withdraw transaction on Polygon, you'll need to provide a burn proof on Ethereum.
Use the script below to generate the proof, then go to the WithdrawToWrapperRoot contract on Etherscan:
https://etherscan.io/address/0xb67a8438e15918de8f42aab84eb3950f2588a534
[
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"AddedOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"approvedHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"ApproveHash","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"masterCopy","type":"address"}],"name":"ChangedMasterCopy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"threshold","type":"uint256"}],"name":"ChangedThreshold","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract Module","name":"module","type":"address"}],"name":"DisabledModule","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract Module","name":"module","type":"address"}],"name"
contract PickHistory {
// COMP token allows for users to opt-out of delegation for cheap transfers.
function updateBalance(address user, uint256 balance, uint256 currentDrawNumber) external onlyPrizeStrategy {
// get users current balance: (balance, draw number)
// if currentDrawNumber > balance draw number
// then push new record onto stack (balance, currentDrawNumber) 20k gas

PoolTogether Developer Call #3

April 21, 2021

Agenda

  • Show & Tell
  • Discussion

Show & Tell

PoolTogether Developer Call #2

April 7, 2021

Agenda

  • Show & Tell
  • Discussion

Show & Tell

PoolTogether Developer Call #1

March 24, 2021

Agenda

The agenda for the meeting included:

  • Gitcoin Hackathon
  • Contributing Code
  • Show & Tell