Skip to content

Instantly share code, notes, and snippets.

@thelazyliz
thelazyliz / admin.py
Last active August 1, 2017 06:41
change what is being displayed using list_display in django admin change list page
from django.contrib import admin
from . models import Book
class BookAdmin(admin.ModelAdmin):
list_display = ('book_title', 'author', 'ISBN_code')
admin.site.register(Book, BookAdmin)
@thelazyliz
thelazyliz / admin.py
Last active August 1, 2017 06:48
django extend admin
from django.contrib import admin
from django.contrib.admin import AdminSite
from django.contrib.auth.models import User, Group
from . models import Book
class MyAdminSite(AdminSite):
site_header = 'New Admin Interface'
admin_site = MyAdminSite(name='new_admin')
@thelazyliz
thelazyliz / read_spreadsheet.py
Created November 21, 2017 06:26
read google spreadsheet using pandas
import gspread
import pandas as pd
from oauth2client.service_account import ServiceAccountCredentials
def main():
df_tracking = read_sheet('Olympus Labs tracking spreadsheet')
df_movement = read_sheet('Olympus Labs TG movement spreadsheet')
get_invites_count(df_movement, 366664457) # specific example of user_id given here
get_eth_address(df_tracking, 359780450) # specific example of user_id given here
return

Keybase proof

I hereby claim:

  • I am thelazyliz on github.
  • I am thelazyliz (https://keybase.io/thelazyliz) on keybase.
  • I have a public key ASCDOd9cOci9-n4M-vDnHrtmpuFxeaC8c04J4Dq8sI-1qAo

To claim this, I am signing this object:

@thelazyliz
thelazyliz / get_masv.py
Last active July 16, 2020 07:00
get direct resource link from masv download link
import requests
import re
import sys
root_url = "https://api.massive.app/v1"
def get_masv(dl_link, password=None):
print('Retrieving direct link(s)...')
split_link = re.split('[/?=]', dl_link)
@thelazyliz
thelazyliz / attestation.txt
Created March 31, 2021 10:59
ZKOPRU trusted setup attestation
I contributed to the ZKOPRU Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: zk_transaction_1_2
Contributor # 275
Hash: d9014af9 31e17180 d6c2d924 0e5ec152
dafa1d72 90011f41 8c94c183 9617070b
6a8bc14a bca26334 ac1c29b5 2196424f
9c4f1e26 9663c6fc d43134f3 35c13933