Skip to content

Instantly share code, notes, and snippets.

View todbot's full-sized avatar
💭
doing the blink1

Tod Kurt todbot

💭
doing the blink1
View GitHub Profile
@kristofferh
kristofferh / opendiff.txt
Created June 8, 2012 14:24
Open FileMerge from command line
Open FileMerge from command line
opendiff
If the command-line doesn't work, and you have no /Developer directory anymore, you probably need to:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
@joegoggins
joegoggins / install and add gcc arm to PATH.sh
Last active December 12, 2022 06:59
How I installed GCC ARM on my Mac 10.9 Mac Book Pro
# Download the file manually from here https://launchpad.net/gcc-arm-embedded
# Note: `curl` command doesn't work
# I downloaded this one: "gcc-arm-none-eabi-4_7-2013q3-20130916-mac.tar.bz2"
# double click it to unzip it
# Make a place to install it to
mkdir /usr/local/gcc_arm
# Move the unzipped stuff there.
anonymous
anonymous / FunkyClouds_alpha
Created June 30, 2014 11:05
FunkyClouds (alpha version)
/*
Funky Clouds Compendium (alpha version)
by Stefan Petrick
An ever growing list of examples, tools and toys
for creating one- and twodimensional LED effects.
Dedicated to the users of the FastLED v2.1 library
by Daniel Garcia and Mark Kriegsmann.
anonymous
anonymous / dspG1.c
Created October 13, 2016 13:45
The dsp-G1 Analog Modeling Synthesizer Source Code
/*
Copyright 2016 DSP Synthesizers Sweden.
Author: Jan Ostman
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 (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
*/
 
#include "wiring.h"
#include "LPC8xx.h"
@oskay
oskay / NOPE.txt
Last active February 27, 2017 15:55
NNNNNNNN NNNNNNNN OOOOOOOOO PPPPPPPPPPPPPPPPP EEEEEEEEEEEEEEEEEEEEEE
N:::::::N N::::::N OO:::::::::OO P::::::::::::::::P E::::::::::::::::::::E
N::::::::N N::::::N OO:::::::::::::OO P::::::PPPPPP:::::P E::::::::::::::::::::E
N:::::::::N N::::::NO:::::::OOO:::::::OPP:::::P P:::::PEE::::::EEEEEEEEE::::E
N::::::::::N N::::::NO::::::O O::::::O P::::P P:::::P E:::::E EEEEEE
N:::::::::::N N::::::NO:::::O O:::::O P::::P P:::::P E:::::E
N:::::::N::::N N::::::NO:::::O O:::::O P::::PPPPPP:::::P E::::::EEEEEEEEEE
N::::::N N::::N N::::::NO:::::O O:::::O P:::::::::::::PP E:::::::::::::::E
@harshitsilly
harshitsilly / generateZipAndBlockamp.js
Last active December 15, 2020 05:40
Electron builder rebuild zip and update blockmap to work with auto-updater.
const path = require('path');
const { execSync } = require('child_process');
const fs = require('fs');
const yaml = require('js-yaml');
const { appBuilderPath } = require('app-builder-bin');
const currentWorkingDirectory = process.cwd();
const packageInfo = require(path.join(currentWorkingDirectory, 'package.json'));
const APP_NAME = packageInfo.build.productName;
const APP_VERSION = process.argv[2] ? process.argv[2] : packageInfo.version;
@todbot
todbot / FastLEDTinyFireSim.ino
Last active April 13, 2021 18:16
Tiny fire simulation for QT Py or any FastLED-supporting board
// modeled after https://github.com/todbot/qtpy-tricks#fire-simulation-on-external-neopixel-strip
// must use latest FastLED checkout from https://github.com/FastLED/FastLED
// as FastLED 3.3.3 doesn't have QT Py support
#include "FastLED.h"
#define LED_PIN 0
#define NUM_LEDS 8
CRGB leds[NUM_LEDS];
void setup() {
@citruz
citruz / QEMU_ON_M1.md
Last active June 6, 2024 08:29
Create Ubuntu and Windows VMs with QEMU on Apple Silicon

Running Linux and Windows on M1 with QEMU

30.11.2020: Updated with the new patchseries and instructions for Windows

02.12.2020: Added tweaks

08.12.2020: Updated with patchseries v4

31.01.2020: Updated with patchseries v6

@todbot
todbot / wifi-preferred-network.py
Last active December 5, 2020 06:18
Given a list of preferred networks, connect to the one with the strongest signal, for CircuitPython ESP32S2
#
# wifi-preferred-network.py -- Given a list of preferred networks,
# connect to the one with the strongest signal
# for CircuitPython ESP32S2 Metro / MagTag
# 2020 @todbot / todbot.com/blog
import time
import wifi
from secrets import secrets