Skip to content

Instantly share code, notes, and snippets.

View smopucilowski's full-sized avatar

Sebastian Pucilowski smopucilowski

View GitHub Profile
@smopucilowski
smopucilowski / temperatures.py
Created August 1, 2016 23:27
Simple temperature dump of the drives in my Norco RPC-4224
#!/bin/env python3
#______________________________________________________________________________
from multiprocessing import Pool
import subprocess
from collections import defaultdict
from os import path
#______________________________________________________________________________
# (device_exists, smart_status, smart_output)
def get_smart(device):
@smopucilowski
smopucilowski / solve.py
Last active April 26, 2016 02:07
MUMS numbers game solver
from itertools import combinations, combinations_with_replacement, permutations
from operator import add, sub, mul, truediv
target = 888
numbers = (75, 25, 9, 8, 7, 6)
operations = (add, sub, mul, truediv)
def evaluation_tree(operators, numbers):
# op0
# / \