Skip to content

Instantly share code, notes, and snippets.

View perinm's full-sized avatar
🏠
Working from home

Lucas Manchine perinm

🏠
Working from home
View GitHub Profile
@m4lang
m4lang / YouTubify.py
Created January 9, 2021 19:51
Take a Spotify playlist and create a YouTube playlist (This was created for Rythm bot in discord before they implemented spotify usage) Obviously credentials need to be added by user
'''
This is a program to access spotify and create a youtube play list based on a song or premade playlist
in spotify so that Rythm bot can play the playlists made in spotify
This technique will then be used to create a discord bot that accesses spotify and can access playlists from that
Process:
Step 1 - Open spotify
Step 2 - Access Playlists and/or songs desired by using name of song/playlists and name of artist/playlist user
Step 3 - Get name of song and artists of the song and/or songs in the playlist of use the name and song found in
@hbredin
hbredin / streamlit_colab.ipynb
Created May 8, 2020 12:55 — forked from tuffacton/streamlit_colab.ipynb
Colaboratory Notebook that hosts a streamlit app and creates an ngrok https tunnel for access.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import cv2 as cv
import numpy as np
from urllib.request import urlopen
import os
import datetime
import time
import sys
#change to your ESP32-CAM ip
url="http://192.168.1.149:9601/stream"
@MatthewRayfield
MatthewRayfield / bltouch-notes.md
Created May 19, 2018 16:47
How to Setup BLTouch or 3DTouch Sensor for the Anet A8
  • BLTouch setup notes:
    • this is essentially the procedure i used to setup my BLTouch sensor on my Anet A8
    • wired it up based on this: https://www.antclabs.com/wiring3 i spliced into the lcd cable
    • printed the mounting bracket found here: https://www.thingiverse.com/thing:2091529
    • installed marlin with the anet a8 configuration file they provide
    • modified the config to turn on BLTouch and used the other settings provided at the above thingiverse page
    • also had to enable a safe z homing setting and bilinear auto bed level
    • used the procedure in the thingiverse page above to get the probe z offset setting correct. although it actually took some other adjustment on top of that
    • in order to communicate and send gcode to the printer i used the arduino serial monitor with "Both NL & CR" option on and the baud set to 115200
    • using that arduino console thing saved my butt as i could much more easily make adjustments
@kianby
kianby / zproxy.py
Last active November 25, 2023 07:28
ZeroMQ, Python, XSUB / XPUB proxy
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import zmq
def main():
context = zmq.Context()
@istepanov
istepanov / Configuration.h
Last active July 26, 2023 16:45
Marlin Anet A8 config
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@kingspp
kingspp / logging.py
Created April 22, 2017 07:14
Python Comprehensive Logging using YAML Configuration
import os
import yaml
import logging.config
import logging
import coloredlogs
def setup_logging(default_path='logging.yaml', default_level=logging.INFO, env_key='LOG_CFG'):
"""
| **@author:** Prathyush SP
| Logging Setup