Skip to content

Instantly share code, notes, and snippets.

View GitToDaChoppa's full-sized avatar
😀
Coding

Brandon M. Scrushy GitToDaChoppa

😀
Coding
View GitHub Profile
@GitToDaChoppa
GitToDaChoppa / bytebeats.txt
Last active August 11, 2024 17:09
ByteBeats
bytebeat | infix | 11kHz
t>>>7&t>>>222*2222/.025|t>>>4
bytebeat | infix | 8kHz [[not mine]]
(t>>10^t>>11)%5*((t>>14&3^t>>15&1)+1)*t%99 + ((3 + (t >> 14 & 3) - (t >> 16 & 1)) / 3 * t % 99 & 64)
if (number % 2 == 0) then
.....it is even
else
.....it is odd
end

yes master yoda

@GitToDaChoppa
GitToDaChoppa / .prettierrc
Last active January 5, 2022 18:07
... prettier config ...
{
"tabWidth": 2,
"useTabs": true,
"jsxSingleQuote": false,
"semi": true,
"singleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"arrowParens": "always",
"printWidth": 80,
@GitToDaChoppa
GitToDaChoppa / TodaysDate.tsx
Created December 27, 2021 04:57
A React component used for displaying the current date in the 'month as word' format (ie December 31, 2021)
export default function TodaysDate() {
const current = new Date();
const month = current.toLocaleString("default", { month: "long" });
const date = `${month} ${current.getDate()}, ${current.getFullYear()}`;
return <span>{date}</span>;
}
import youtube_dl
# Asks for the url
link = input("Write the url")
# Instantiate the YoutubeDL class from the youtube_dl framework
ydl = youtube_dl.YoutubeDL({})
# Download the video.
ydl.download([link])
<section class="hero">
<div class="hero-body">
<div class="container">
<h1 class="title">
Hero title
</h1>
<h2 class="subtitle">
Hero subtitle
</h2>
</div>