Skip to content

Instantly share code, notes, and snippets.

View wilsongis's full-sized avatar

Mike Wilson wilsongis

View GitHub Profile
@frankbags
frankbags / MeshPrintSize.py
Last active November 14, 2023 02:19
Cura post processing script to resize bed mesh to print size
import re #To perform the search and replace.
from ..Script import Script
class MeshPrintSize(Script):
def getSettingDataString(self):
return """{
"name": "Mesh Print Size",
@ChipCE
ChipCE / readme.md
Last active April 16, 2024 23:07
Klipper bed mesh on print area only macro install guide

READ THIS FIRST

Adaptive bed mesh is merged into klipper master branch. You can use this feature without this custom macro. Official klipper adaptive bed mesh

Klipper mesh on print area only install guide

What this macro do

  • This macro will dynamically changing the bed mesh area based on the size of the parts will be printed. The fw will only probe on the area that the part will be printed (plus mesh_area_offset value)
@kepano
kepano / obsidian-web-clipper.js
Last active April 18, 2024 20:47
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@cab404
cab404 / README.md
Last active March 8, 2024 11:17
Installing Klipper on TronXY X5SA

Installing Klipper on TronXY X5SA

** obligatory "your warranty in now void" disclaimer ** THIS GUIDE IS FOR CHITU V6 BOARDS ONLY

So, you've decided to upgrade you printer software-wise. You are in for a ride!

What can you expect

You'll get Klipper experience. That includes speeds up to 300 mm/s (I've tested infill at 180, and it was pretty much flawless), proper linear advance, low vibration on high accelerations without relying on approximations like S-Curve, no lags on dense GCode files — it's nothing like Marlin or the stock firmware.

@sachinsdate
sachinsdate / poisson_regression.py
Last active April 12, 2023 14:20
Poisson Regression model
import pandas as pd
from patsy import dmatrices
import numpy as np
import statsmodels.api as sm
import matplotlib.pyplot as plt
#Create a pandas DataFrame for the counts data set.
df = pd.read_csv('nyc_bb_bicyclist_counts.csv', header=0, infer_datetime_format=True, parse_dates=[0], index_col=[0])
@Saibot942
Saibot942 / gmailKeys_2019.06.26.ahk
Last active October 11, 2023 07:48
AHK script to reproduce gmail's shortcut keys in Outlook
;*******************************************************************************
; Use gmail shortcut keys in Outlook desktop client
;*******************************************************************************
;
; Version: 2019.06.26
; Updated: for Outlook 2016 by Toby Garcia
; Source: https://gist.github.com/Saibot942/1698f89506bd608c9852a82dd0645cb4
;
; Author: Lowell Heddings (How-To Geek)
; URL: http://lifehacker.com/5175724/.....gmail-keys
@mitcdh
mitcdh / Hyper Key.ahk
Created July 7, 2018 05:26
Hyper Key for Windows
;; based on @babygau's answer here https://stackoverflow.com/a/40559502
#NoEnv ; recommended for performance and compatibility with future autohotkey releases.
#UseHook
#InstallKeybdHook
#SingleInstance force
SendMode Input
;; deactivate capslock completely
SetCapslockState, AlwaysOff
@dalemanthei
dalemanthei / init.lua
Last active March 12, 2017 08:21
Hamerspoon config examples for hyper key
-- hattip https://github.com/lodestone/hyper-hacks
-- hattip https://gist.github.com/ttscoff/cce98a711b5476166792d5e6f1ac5907
-- hattip https://gist.github.com/prenagha/1c28f71cb4d52b3133a4bff1b3849c3e
-- A global variable for the Hyper Mode
k = hs.hotkey.modal.new({}, "F17")
-- The following keys are configured as hot keys in their respective apps (or in Keyboard Maestro)
-- d → Dash (configure in Dash preferences)
@ericelliott
ericelliott / essential-javascript-links.md
Last active March 28, 2024 23:01
Essential JavaScript Links
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active March 27, 2024 06:36
A badass list of frontend development resources I collected over time.