This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
from collections import deque | |
from time import sleep | |
from os import system | |
def tilt(): | |
with open('/sys/devices/platform/lis3lv02d/position') as f: | |
return int(f.read().split(",")[1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
editors="ed ex vi emacs" | |
echo $editors | sed s/\ /\\n/g | shuf | head -1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Point = (Double,Double) | |
type Triangle = (Point,Point,Point) | |
type Sierpinski = [Triangle] | |
midpoint :: Point -> Point -> Point | |
-- ^point between two points | |
midpoint (x1,y1) (x2,y2) = ((x1 + x2) / 2, (y1 + y2) / 2) | |
vec :: Point -> Point -> Point | |
-- ^two points into a vector |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input :: [String] | |
input = [ | |
"billowy", | |
"biopsy", | |
"chinos", | |
"defaced", | |
"chintz", | |
"sponged", | |
"bijoux", | |
"abhors", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import pyzytemp | |
def main(): | |
t = None | |
co = None | |
x = pyzytemp.find() | |
if x: | |
temp = x[0] | |
attempts = 8 |
OlderNewer