Skip to content

Instantly share code, notes, and snippets.

View jamesy0ung's full-sized avatar

James Young jamesy0ung

View GitHub Profile
@jamesy0ung
jamesy0ung / boardmanagerurls.txt
Last active November 26, 2024 04:58
Arduino Board Manager URLs
https://arduino.esp8266.com/stable/package_esp8266com_index.json, https://espressif.github.io/arduino-esp32/package_esp32_index.json, https://mcudude.github.io/MightyCore/package_MCUdude_MightyCore_index.json, https://github.com/SpenceKonde/DxCore, http://drazzy.com/package_drazzy.com_index.json, https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json, https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
@jamesy0ung
jamesy0ung / hosts
Last active November 22, 2024 11:22
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
@jamesy0ung
jamesy0ung / tortoise-tts.ipynb
Created September 20, 2024 07:08
tortoise-tts.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import serial
import time
import logging
import sys
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s - %(levelname)s - %(message)s',
handlers=[
logging.StreamHandler(sys.stdout),
logging.FileHandler('switch_config.log')
#include <iostream>
#include <string>
#include <cmath>
#include <iomanip>
long double e = 1.0;
long double term = 1.0;
int i = 1;
long double precision = 1.0e-10;
bool flag_found = false;
@jamesy0ung
jamesy0ung / oculusDebloater.bat
Created October 19, 2024 01:32
Meta/Oculus debloater
@echo off
echo Disabling Oculus packages...
adb shell pm disable-user --user 0 com.oculus.explore
if %errorlevel% neq 0 echo Failed to disable com.oculus.explore
adb shell pm disable-user --user 0 com.oculus.socialplatform
if %errorlevel% neq 0 echo Failed to disable com.oculus.socialplatform
adb shell pm disable-user --user 0 com.meta.curio.toybox
#include <iostream>
#include <climits>
long long int f0 = { 0 };
long long int f1 = { 1 };
long long int fn = {};
int main()
{
std::cout << "Printing fibbonacci sequence\n";
#include <iostream>
const int c = { 299792458 };
float findWavelength(float frequency)
{
return(c / (frequency * 1000000)); // Convert MHz to Hz and use meters for wavelength
}
float findDipoleLeg(float wavelength)
#include <string>
#include <iostream>
#include <thread>
#include <random>
#include <atomic>
#include <vector>
#include <iomanip>
#include <chrono>
#include <algorithm>
#include <array>
#include <string>
#include <iostream>
#include <thread>
#include <random>
#include <atomic>
#include <vector>
#include <iomanip>
#include <chrono>
#include <algorithm>
#include <array>