Discover gists
The following is capturing instructions on how to add custom naming for an Arduino Leonardo (or generic pro-micro) for my Arcade Controller device. I wanted to have a simple record so that when I inevitably come back to this someday I can recall how I accomplished this. Reference was taken from the following YouTube video (https://youtu.be/hoCOq9Ngp44?t=1156) at approximately 19m16s.
Create a new set of folders:
~\Documents\Arduino\hardware\daemonbite\avr
Copy everything from C:\Program Files (x86)\Arduino\hardware\arduino\avr
to this new folder.
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
def ind2sub(array_shape, ind): | |
# Gives repeated indices, replicates matlabs ind2sub | |
rows = (ind.astype("int32") // array_shape[1]) | |
cols = (ind.astype("int32") % array_shape[1]) | |
return (rows, cols) |
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
<%* | |
/* | |
# Hypothes.idian a templater script for retrieving annotations from Hypothes.is | |
Original Dev: TfTHacker https://github.com/TfTHacker | |
Fork Dev: chrisaldrich https://github.com/chrisaldrich | |
This Fork Dev: Facni https://github.com/Facni | |
# Prerequisites: | |
+ Templater plugin by https://github.com/SilentVoid13/Templater | |
+ Free Hypothes.is developer token from: https://hypothes.is/account/developer |
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
// ==UserScript== | |
// @name Civitai Image Highlight Remover | |
// @namespace https://civitai.com/user/superskirv | |
// @version 0.2b | |
// @description This isnt universal... working on that. Removes glowing border around images. Reload page to remove border. Updated list of users, Im lazy and havent made this global yet. | |
// @author Super.Skirv and ChatGPT 3.5 | |
// @match https://civitai.com/* | |
// @icon https://civitai.com/images/android-chrome-192x192.png | |
// @grant none | |
// ==/UserScript== |
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
<?xml version="1.0" encoding="utf-8"?> | |
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<user>S-1-5-21-4052470390-3226813249-2593596705-1000</user> | |
<keys> | |
<key installerType="Unknown" displayName="Klayout - Layout Viewer And Editor" displayVersion="0.29.1"> | |
<RegistryView>Registry32</RegistryView> | |
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KLayout</KeyPath> | |
<DefaultValue /> | |
<InstallLocation><![CDATA[]]></InstallLocation> | |
<UninstallString><![CDATA[C:\Program Files (x86)\KLayout\klayout-uninstall.exe]]></UninstallString> |
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
@echo off | |
echo [90mGray[0m | |
echo [91mRed[0m | |
echo [92mGreen[0m | |
echo [93mYellow[0m | |
echo [94mBlue[0m | |
echo [95mMagenta[0m | |
echo [96mCyan[0m | |
echo [97mWhite[0m |
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
gci . *.ISO -R | ForEach-Object { $input = $_.FullName; $newfile = "E:\ISOs\" + $_.BaseName + ".mkv"; &"C:\Program Files\HandBrake\HandBrakeCLI.exe" -i "$input" -o "$newfile" --preset "High Profile" } |
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
data:image/gif;base64,R0lGODlhAQABAAAAACw= |
#ローカルとリモートのブランチ名を変更する
以下、ブランチ名を hoge から foo に変更する例
- ローカルのブランチ名変更
git branch -m hoge foo
- リモートのブランチを消す
NewerOlder