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
(defun r/copy-org-to-markdown (point mark) | |
"Copy the region from POINT to MARK as Markdown." | |
(interactive "r") | |
;; Load a trimmed copy of the highlighted region to memory | |
(let ((astring (s-trim (buffer-substring-no-properties point mark)))) | |
(with-temp-buffer | |
;; Copy the highlighted region and run 'export to markdown' org command | |
(insert astring) | |
(setq org-export-with-toc nil) |
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
;;; rcf-sword.el --- Use a local .bblx file to insert and read scripture. | |
;;; Commentary: | |
;; For scriptural study. | |
;; Eventually you should publish this: https://spin.atomicobject.com/write-emacs-package/ | |
;; ===================================================================== | |
;; Changelog - Make a quick note when you update this file. | |
;; ===================================================================== |
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 machine import Pin, Timer, I2C | |
from pico_i2c_lcd import I2cLcd | |
from network import WLAN, STA_IF | |
# from urequests import post | |
import gc | |
import errno | |
import utime | |
import ntptime |
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 RPi.GPIO as GPIO | |
from PCF8574 import PCF8574_GPIO | |
from Adafruit_LCD1602 import Adafruit_CharLCD | |
from time import sleep, strftime, time | |
from datetime import datetime | |
from threading import Lock | |
import pigpio # run sudo pigpiod | |
# Simple pi program to run three buttons, an LCD, and a servo. | |
# Uses code from Freenove kit scripts. |
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 cv2 | |
import mediapipe as mp | |
from pprint import pprint | |
from easy_vector import Vector | |
from functools import reduce | |
from time import sleep | |
# https://pypi.org/project/vectors/ | |
mp_drawing = mp.solutions.drawing_utils |
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 cv2 | |
import mediapipe as mp | |
from pprint import pprint | |
from easy_vector import Vector | |
from functools import reduce | |
# https://pypi.org/project/vectors/ | |
mp_drawing = mp.solutions.drawing_utils | |
mp_hands = mp.solutions.hands |
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 os | |
import random | |
import enum | |
import cherrypy | |
""" | |
Dumb battlesnake, picks a clear path. | |
For instructions see https://github.com/BattlesnakeOfficial/starter-snake-python/README.md | |
""" |
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
# transcribe_video.py | |
# A script to strip the audio from a video, split the audio into chunks, and send | |
# each chunk through the Google voice-to-text library to get the transcript. | |
# Requires: pydub, moviepy, numpy==1.19.3 | |
# FFMPEG must also be installed on the system. | |
# Tested on Windows 10. | |
import speech_recognition as sr |
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 os | |
import speech_recognition as sr | |
from pydub import AudioSegment | |
from pydub.silence import split_on_silence | |
r = sr.Recognizer() | |
r.energy_threshold = 300 | |
def clean_text(text:str): |
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/python3 | |
from PIL import Image, ImageDraw, ImageFont, ImageFilter | |
from sys import exit | |
import random | |
""" | |
This is a script to demonstrate profile image generation for wise users. |
NewerOlder