Skip to content

Instantly share code, notes, and snippets.

print (":Eddie has this much rizz...")
Eddie_rizz_level = "Tree_13"
dad_rizz_level = "-72"
print(Eddie_rizz_level)
print ("dad has this much rizz...")
print(dad_rizz_level)
print("dad = L bozo")
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"data": {"name": "data-92018e0b33e230389440096cbe18dc00"},
"mark": "point",
"encoding": {
"tooltip": [
{"type": "quantitative", "field": "avg_process_time"},
{"type": "quantitative", "field": "avg_process_time_10"},
{"type": "quantitative", "field": "avg_process_time_1.0"}
],
#!/usr/bin/env python
states_list = [
"Alabama",
"Alaska",
"Arizona",
"Arkansas",
"California",
"Colorado",
"Connecticut",
This file has been truncated, but you can view the full file.
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"layer": [
{
"mark": "point",
"encoding": {
"x": {
"type": "quantitative",
"axis": {"title": "MxNxK"},
"field": "MxNxK",
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"layer": [
{
"mark": "point",
"encoding": {
"x": {
"type": "quantitative",
"axis": {"title": "MxNxK"},
"field": "MxNxK",
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"data": {"name": "data-f02450ab61490a1363517a0190416235"},
"mark": "point",
"encoding": {
"color": {"type": "nominal", "field": "Origin"},
"x": {"type": "temporal", "field": "Year"},
"y": {
"type": "quantitative",
"aggregate": "mean",
@jowens
jowens / spellingbee.py
Created January 3, 2020 19:31
Code to solve Riddler Classic 3 Jan 2020
#!/usr/bin/env python3
from itertools import chain, combinations
def powerset(iterable):
"powerset([1,2,3]) --> () (1,) (2,) (3,) (1,2) (1,3) (2,3) (1,2,3)"
s = list(iterable)
return chain.from_iterable(combinations(s, r) for r in range(len(s)+1))
@jowens
jowens / states.py
Created September 19, 2019 04:25
Code to solve Riddler Classic from 13 September 2019
#!/usr/bin/env python3
all_states = set(['AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC',
'FM', 'FL', 'GA', 'GU', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS',
'KY', 'LA', 'ME', 'MH', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO',
'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'MP',
'OH', 'OK', 'OR', 'PW', 'PA', 'PR', 'RI', 'SC', 'SD', 'TN',
'TX', 'UT', 'VT', 'VI', 'VA', 'WA', 'WV', 'WI', 'WY', 'AE',
'AP', 'AA'])
codes = ['YAOONGPE', 'TEUZZYAE', 'TENNIPAE', 'LAXAALAA', 'YAEKPLAE', 'IEXGVYZA', 'YEXIKOYA', 'IPUGAGZP', 'GPKUAEZA',
'LOEKSAPA', 'ZPSLPXZA', 'PEEVAZTA', 'IAXVYEYE', 'ZAOKPZLE', 'GEOGNTAA', 'PEEKYPLA', 'GPEGKILA', 'PEKSVGLA']
test_code = 'ZEXPYGLA'
hex_map = dict()
hex_map['A'] = 0x0
hex_map['P'] = 0x1
hex_map['Z'] = 0x2
hex_map['L'] = 0x3
codes = ['YAOONGPE', 'TEUZZYAE', 'TENNIPAE', 'LAXAALAA', 'YAEKPLAE', 'IEXGVYZA', 'YEXIKOYA', 'IPUGAGZP', 'GPKUAEZA',
'LOEKSAPA', 'ZPSLPXZA', 'PEEVAZTA', 'IAXVYEYE', 'ZAOKPZLE', 'GEOGNTAA', 'PEEKYPLA', 'GPEGKILA', 'PEKSVGLA']
test_code = 'ZEXPYGLA'
hex_map = dict()
hex_map['A'] = 0x0
hex_map['P'] = 0x1
hex_map['Z'] = 0x2
hex_map['L'] = 0x3