Skip to content

Instantly share code, notes, and snippets.

View sspboyd's full-sized avatar
🎯
Focusing

Stephen Boyd sspboyd

🎯
Focusing
View GitHub Profile
@cansik
cansik / ComputerVisionM1.md
Created June 1, 2022 22:20
Computer Vision with Python on M1 Apple Silicon (arm64)

Computer Vision with Python on M1 Apple Silicon (arm64)

When switching over to a new MacBook with an M1 Apple Silicon chip, I noticed that many python packages I use daily are not compatible with M1 chips. Sometimes there was just no prebuilt wheel, or there were still bugs in the code not allowing the package to build at all. So I decided to create drop-in replacement packages with prebuilt wheels for the Apple Mac M1 (Apple Silicon / arm64).

Every package contains a build script to automatically build it in your own enviroment and a Github CI workflow to build it on Github (if possible).

Here you find a list of all the prebuilt packages. Sometimes the official maintainer have updated their binaries too, so please first check if there is an official build ready for M1.

A librealsense2 python wrapper built for all modern MacOSX versions (intel / silicon) because Intel does only

@antiboredom
antiboredom / silences.py
Created October 5, 2020 19:07
Create a supercut of a video using only the quiet bits
import argparse
import re
import os
import subprocess
from moviepy.editor import VideoFileClip, concatenate_videoclips
def get_silences(filename, db, duration):
args = "ffmpeg -nostats -i {} -af silencedetect=noise={}dB:d={} -f null -".format(
filename, db, duration
Note Midi Frequency
C1 0 8.1757989156
Db1 1 8.6619572180
D1 2 9.1770239974
Eb1 3 9.7227182413
E1 4 10.3008611535
F1 5 10.9133822323
Gb1 6 11.5623257097
G1 7 12.2498573744
Ab1 8 12.9782717994
@d3indepth
d3indepth / .block
Last active April 19, 2021 20:54
Force layout (x axis)
license: gpl-3.0
height: 220
border: no
@widmerin
widmerin / .block
Last active April 18, 2021 14:04 — forked from netzwerg/.block
D3.js Life in Weeks
license: apache-2.0
border: no
height: 900
@steveharoz
steveharoz / .block
Last active May 8, 2024 12:21 — forked from mbostock/.block
d3-force testing ground
license: gpl-3.0
height: 1030
scrolling: yes
@mbostock
mbostock / .block
Last active May 10, 2021 17:42
Beeswarm
license: gpl-3.0
height: 200
redirect: https://observablehq.com/@d3/beeswarm
@mchow01
mchow01 / TWTR-mysql.py
Last active May 7, 2020 17:36
Store tweets from a Twitter timeline into a MySQL database using Tweepy
import tweepy
import MySQLdb
import sys
# Tweepy API doc here: http://pythonhosted.org/tweepy/html/api.html
# Keys
consumer_key = ''
consumer_secret = ''
access_token = ''

Toxi's Lebkuchen (plain "Elisen" style)

Spice blend

  • 3 whole star anise
  • 15 whole cardamon pods
  • 2 tblsp ground cinnamon (or ~0.75 stick)
  • 1.5 tblsp ground cloves
  • 0.5 tsp ground coriander
  • 0.75 tsp ground ginger
@dbreunig
dbreunig / ReporterSaveFileDescription.md
Last active January 22, 2021 16:07
A description of the data written to the Reporter App Dropbox save folder.

#Reporter Save File Schema

##The Reporter Export File

Reporter saves to your Dropbox account with plaintext JSON files, one for each day. When a Report is entered in the app a file is created for that day if it does not exist. Otherwise, the report is appended to the existing file. The save folder is located in 'Dropbox/Apps/Reporter-App/'.

Reporter save files are named according to the following convention:

YYYY-MM-DD-reporter-export.json