Skip to content

Instantly share code, notes, and snippets.

def collatz(number):
if number %2 == 0:
number = number // 2
print(number)
return number
else:
number = 3 * number + 1
print(number)
return number
spam = ['coco', 'balls', 'gold', 'apples', 'bananas', 'tofu', 'cats']
def enumerate(poopoo):
for i in poopoo[:-2]:
dong = i + ', '
print(dong + poopoo[-2] + ' and ' + poopoo[-1])
enumerate(spam)
@indeedwatson
indeedwatson / DARK SOULS III.bat
Created May 1, 2016 15:26
script to launch Dark Souls Auto Backup Tool together with DKS3
:: Use with https://www.dropbox.com/s/kjcc2vry5qjcquk/Dark%20Souls%20Auto%20Backup%20Tool.zip?dl=0
@echo off
cd "C:\Program Files\DSABT\"
start DSABT.exe
:: If your game is in a different drive as the OS you need to use /d, otherwise
:: just do cd "C:\SteamLibrary\steamapps\common\DARK SOUlS III\Game\"
cd /d "D:\SteamLibrary\steamapps\common\DARK SOULS III\Game\"
start DarkSoulsIII.exe
# Convert units, for now just kg to lbs and viceversa
# List of all the variables of typing the units
unitKg = ['kg', 'kilogram', 'kilo']
unitLbs = ['lbs', 'pounds', 'freedom units']
# Get number and units to convert
# Split
pieces = input().split()
# Separate number from 'X to Y'
number = pieces[0]
# take input, lowercase it, and split by spaces
pieces = input().lower().split()
# determine what type of units to convert
# if kg and g, weight, if km and cm distance etc
# if none or mismatch, return error
# conversion tables
# add variables like kilo kilogram gram etc
conversionsWeight = {'kg': 100, 'g': 1, 'mg': 0.1, 'lbs': 0.002}
# Pizza calculator with baker's percentage
# Features: Default master dough recipe, other recipes, mostly from
# The Pizza Bible, custom %, saving custom %
recipes = {'masterdough': {'water': 65, 'salt': 2, 'yeast': 0.1, 'oil': 1}}
def bakersPercentage(flour, component):
ingredient = flour * component / 100
return ingredient
# Pizza calculator with baker's percentage
# Features: Default master dough recipe, other recipes, mostly from
# The Pizza Bible, custom %, saving custom %
recipes = {'masterdough': {'water': 65, 'salt': 2, 'yeast': 0.1, 'oil': 1},
'chicago': {'water': 60, 'salt': 2, 'yeast': 0.1, 'lard': 1,
'butter': 1}}
# Calculate Baker's percentage
def bakersPercentage(flour, component):
# Pizza calculator with baker's percentage
# Features: Default master dough recipe, other recipes, mostly from
# The Pizza Bible, custom %, saving custom %
recipes = {'masterdough': {'water': 64, 'salt': 2, 'yeast': 1, 'oil': 1,
'malt': 2},
'chicago': {'water': 60, 'salt': 2, 'yeast': 0.1, 'lard': 1,
'butter': 1},
'sicilian': {'water': 70, 'salt': 2, 'yeast': 1, 'malt': 2,
'oil': 1},
'refrigerated': {'water': 70, 'salt': 2.6, 'yeast': 0.3}}
  • Haruki Murakami: 1Q84
  • 2666 by Roberto Bolano
  • Cloud Atlas ¿ David Mitchell
  • Kafka on the Shore ¿ Haruki Murakami
  • The Double ¿ José Saramago
  • Choke ¿ Chuck Palahniuk
  • Under the Skin ¿ Michel Faber
  • House of Leaves ¿ Mark Z. Danielewski
  • Cryptonomicon ¿ Neal Stephenson
  • Infinite Jest ¿ David Foster Wallace
@indeedwatson
indeedwatson / PIZZA.md
Last active January 11, 2017 22:40
Instructions for making pizza dough and baking it in home ovens, taking ideas from The Pizza Bible, The Elements of Pizza and my own experience with a shitty oven

1. Mixing

It's good practice to have the ingredients measured and ready before you start mixing them.

Ingredient Baker's % Grams
Flour 100 400
Water 68 272
Salt 3 12