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
// https://gist.github.com/MatthewManley/27028f1b1ff609f0ea3cbd719016f9a8 | |
// I printed this with supports but only inbetween the bottom base and the outer spinning part | |
// Using Cura (I am sure you can do this in any slicing software), I put a support blocker | |
// to prevent supports from generating to the upper overhang | |
// The overhang on the top base has been coming out a little sloppy for me, but its good enough and | |
// trying to print supports there is quite excessive imo | |
base_radius = 10; // make it thick | |
base_height = 2; // how tall the cricle thing on the bottom is` |
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.Collections.Generic; | |
using System.Diagnostics.CodeAnalysis; | |
using System.Linq; | |
namespace Workbench | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
from state import State | |
import re | |
# Note this doesn't work on productions with lambdas | |
def neighbor_states(state: State, productions): | |
for i in range(len(state.value)): | |
char = state.value[i] | |
# If character is lowercase, then it doesn't get expanded | |
if not char.isupper(): |
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
alias proj='cd ~/Projects' | |
alias bashrc='. ~/.bashrc' | |
alias aliases='vi ~/.bash_aliases' | |
alias docs='cd ~/Documents' | |
alias xclip='xclip -selection c' | |
pushd() | |
{ | |
if [ $# -eq 0 ]; then | |
DIR="${HOME}" |
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; | |
using System.Diagnostics.Tracing; | |
using System.Runtime.InteropServices.WindowsRuntime; | |
using System.Threading.Tasks; | |
namespace Horners | |
{ | |
class Program | |
{ | |
static async Task Main(string[] args) |