Skip to content

Instantly share code, notes, and snippets.

View quintenpalmer's full-sized avatar
⚙️
let id x = x

Quinten Palmer quintenpalmer

⚙️
let id x = x
View GitHub Profile
@quintenpalmer
quintenpalmer / SCREENSCALE.md
Last active September 27, 2021 20:22
Screenscale Summary

screenscale

Introduction

This is an overview of my screenscale project that i worked on today.

Pre-requisites

What is Sway?

https://scryfall.com/card/sok/35/erayo-soratami-ascendant-erayos-essence
https://scryfall.com/card/uds/118/rofellos-llanowar-emissary
https://scryfall.com/card/cn2/77/leovold-emissary-of-trest
https://scryfall.com/card/ody/117/braids-cabal-minion
https://scryfall.com/card/avr/106/griselbrand
https://scryfall.com/card/roe/4/emrakul-the-aeons-torn
https://scryfall.com/card/shm/257/painters-servant
https://scryfall.com/card/exo/72/recurring-nightmare
https://scryfall.com/card/ons/118/trade-secrets

Number of cards: 0

duchy duke victory_points
0 0 0

Number of cards: 1

duchy duke victory_points
@quintenpalmer
quintenpalmer / albums.txt
Last active August 29, 2015 14:18
List of Awesome Albums
Board of Canada: Music has the Right to Children
Easy Star All-Stars: Dub Side of the Moon
The Glitch Mob: Love Death Immortality
Justice: †
Miike Snow: Miike Snow
Miike Snow: Happy To You
Royksopp: Senior
Royksopp: Junior
Royksopp: Melody A.M.
Royksopp: The Understanding
@quintenpalmer
quintenpalmer / radix.py
Last active August 29, 2015 13:55
Radix sort with nice helper functions
#!/usr/bin/env python
from math import log, ceil
def get_longest(array):
return int(ceil(log(max(array), 10)))
def get_digit(number,digit):
return number / (10 ** digit) % 10
@quintenpalmer
quintenpalmer / python
Created December 10, 2013 18:31
python python python
import sys
print sys.argv[1] if len(sys.argv) > 1 else 'dummy'
def fibn(count, cur=0, old=1):
if count <= 0:
return curr
else:
return fibn(count - 1, curr + old, curr)
@quintenpalmer
quintenpalmer / tree.py
Last active December 21, 2015 06:09
Tree unix utility in python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
using_unicode = True
using_color = True
_bar = '│' if using_unicode else '|'