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
; Script based on an original created by tjjfvi (https://github.com/tjjfvi) | |
; An up-to-date version of the tjjfvi's original script can be found | |
; here: https://csi.t6.fyi/ | |
; Note - This script will only work in Cura V4.2 and above! | |
; --- Global Settings | |
; layer_height = {layer_height} | |
; smooth_spiralized_contours = {smooth_spiralized_contours} | |
; magic_mesh_surface_mode = {magic_mesh_surface_mode} | |
; machine_extruder_count = {machine_extruder_count} | |
; --- Single Extruder Settings |
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
module CoreExtensions | |
module DateAndTime | |
# ___ _ _ ___ _ ___ _ _ _ _ | |
# | _ \__ _(_) |__/ __(_)_ __/ __|__ _| |__ _ _| |__ _| |_(_)___ _ _ ___ | |
# | / _` | | (_-<__ \ \ \ / (__/ _` | / _| || | / _` | _| / _ \ ' \(_-< | |
# |_|_\__,_|_|_/__/___/_/_\_\\___\__,_|_\__|\_,_|_\__,_|\__|_\___/_||_/__/ | |
# | |
# A little backporting | |
# https://github.com/rails/rails/pull/32398 | |
# https://github.com/rails/rails/pull/32398/commits/4e68b159d5696ca58c015a790ef3ceacb90b27c1 |
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
# | |
# superegg.rb | |
# Piet Hein's superegg | |
# | |
# ported from Python in 2022 by stephan.com | |
# | |
# original by Chris Wallace (kitwallace) 2013 | |
# https://www.thingiverse.com/thing:48808 | |
# | |
# https://en.wikipedia.org/wiki/Superegg |
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
# | |
# superegg.rb | |
# Piet Hein's superegg | |
# | |
# ported from Python in 2020 by stephan.com | |
# | |
# original by Chris Wallace (kitwallace) 2013 | |
# https://www.thingiverse.com/thing:48808 | |
# | |
# https://en.wikipedia.org/wiki/Superegg |
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
# https://www.eliotsykes.com/test-rails-rake-tasks-with-rspec | |
require 'rake' | |
# Task names should be used in the top-level describe, with an optional | |
# "rake "-prefix for better documentation. Both of these will work: | |
# | |
# 1) describe "foo:bar" do ... end | |
# | |
# 2) describe "rake foo:bar" do ... end | |
# |
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/ruby | |
# full of sound and fury | |
class Hippie | |
def initialize(name) | |
@name = name | |
end | |
def smoke(this) | |
ciphertext = encode(this) |
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/ruby | |
pearls = <<~ENDOFPOEM.freeze | |
Framed, Mounted and Preggers' | |
22975 | |
6/19/19 | |
Sneaking out of the bedroom in the wee hours he sat, | |
staring at digits and images and flummox and hope. | |
Who stared back? | |
01010100 01101000 01100101 00100000 |
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/ruby | |
# (c) 2021 stephan.com | |
# Find to N words of M letters, all unique | |
# | |
# No five-letter/five-word set exists, but there is a single | |
# result for two words of ten letters: blacksmith gunpowdery | |
require 'Set' | |
require 'progress_bar' |
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 | |
# _ _ | |
# | |__ _ _ __ _ | |__ ___ _ __ __ _ _ _ | |
# | '_ \ | '_| / _` | | / / / -_) | ' \ / _` | | ' \ | |
# |_.__/ _|_|_ \__,_| |_\_\ \___| |_|_|_| \__,_| |_||_| | |
# _|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| | |
# "`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-' | |
# | |
# Script for running Brakeman tests | |
# Brakeman is a security scanner https://github.com/presidentbeef/brakeman. |
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
# Copyright (c) 2020 Ultimaker B.V. | |
# Cura is released under the terms of the LGPLv3 or higher. | |
# modified for list of pauses by stephan.com | |
from ..Script import Script | |
from UM.Application import Application #To get the current printer's settings. | |
from UM.Logger import Logger |
NewerOlder