This file contains 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
// You'll need to update all the constants until | |
// the line "END OF CONSTANTS". | |
stl_file = "TODO.stl"; | |
// mesh_size and mesh_center info are critical; you can | |
// get them from 3dm info in 3dmake 0.4.1 and later | |
mesh_size = [1, 1, 1]; | |
mesh_center = [1, 1, 1]; | |
// Now define the bounds. There are some helpful functions |
This file contains 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 | |
# Mountbatten Embosser Control | |
PORT_DEVICE=/dev/ttyUSB0 | |
# Copyright 2025 Troy Deck (blindmakers.net) | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a | |
# copy of this software and associated documentation files (the "Software"), | |
# to deal in the Software without restriction, including without limitation | |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, |
This file contains 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
function title() { | |
echo -n -e "\033]0;$1\007" | |
} |
This file contains 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
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"log" | |
"mime/multipart" | |
"net/http" | |
"os" |
This file contains 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 mechanize | |
import getpass | |
# Get through the "Log in" button | |
br = mechanize.Browser() | |
br.open("https://acadinfo.wustl.edu/WebSTAC_init.asp") | |
br.select_form(name="form0") | |
br.submit() | |
# Get past the onload redirect page |
This file contains 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/env python | |
# LifePreserver - Time limiting script for Minecraft servers | |
import sys | |
from subprocess import Popen, PIPE | |
from collections import Counter | |
from datetime import datetime | |
from pytz import timezone | |
from time import sleep | |
START_HOUR = 9 |
This file contains 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
<?php | |
function uploadItemImage($url, $access_token, $image_file) { | |
$headers = ["Authorization: Bearer $access_token"]; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, ['image_data' => "@$image_file;type=image/jpeg"]); | |
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); |
This file contains 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
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Threading.Tasks; | |
using System.IO; | |
using System; | |
using System.Runtime.Serialization; | |
using System.Runtime.Serialization.Json; | |
static class ImageUploader | |
{ |
This file contains 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 | |
# Brainfuck - Troy Deck | |
############# | |
# Constants # | |
############# | |
CELLS=500 | |
########### | |
# Globals # |