| Tables | Are | Cool |
|---|---|---|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -e | |
| # Capture the directory where the script was launched | |
| WORKDIR="$PWD" | |
| PROJECT_NAME=$(basename "$WORKDIR") | |
| PROJECT_FILE="${WORKDIR}/${PROJECT_NAME}.kdenlive" | |
| # Step 1 — check for existing kdenlive file | |
| if [[ -f "$PROJECT_FILE" ]]; then |
This file contains hidden or 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
| import os | |
| import requests | |
| API_KEY = "" | |
| BASE_URL = "https://api.giphy.com/v1/gifs/search" | |
| def fetch_gifs(keyword, limit=20): | |
| params = { | |
| "api_key": API_KEY, | |
| "q": keyword, |
This file contains hidden or 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
| #!/bin/bash | |
| # Check if the required argument is provided | |
| if [ "$#" -ne 1 ]; then | |
| echo "Usage: $0 <input_directory>" | |
| exit 1 | |
| fi | |
| # Input directory containing MP3 files | |
| INPUT_DIR="$1" |
This file contains hidden or 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
| #!/bin/bash | |
| # ARE YOU SICK OF THE INTERNET BEING STUPID WITH GIVING YOU WEBP FILES? | |
| # Like you made EVERYTHING to work with pngs and (ugh) jpegs. Cool, I get it save | |
| # money, use compression standard wepb. FUCK YOU... update the tooling on the other side of the coin then!!! | |
| # OK so download this and save it as a shell file (then give it executable permissions) | |
| # so.. sudo chmod +x webPng.sh (or whatever you named it). Now, run it in the terminal in the same | |
| # folder where you downloaded those pesky webP files and PRESTO it will convert them into PNG files, YAAY :) | |
| # I maed this with the help of chatgpt, fyi |
This file contains hidden or 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
| import airsim | |
| from pynput import keyboard | |
| import numpy as np | |
| from scipy.spatial.transform import Rotation as ScipyRotation | |
| import time | |
| class DroneController: | |
| """ | |
| High level drone controller for manual drone navigation using a regular keyboard. |
This file contains hidden or 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
| // Saved URL should look like this: | |
| // javascript:<function> | |
| // replace <function> with the following text | |
| (function(){ | |
| // Grab the username and password input fields | |
| user = document.getElementById('txtUserName'); | |
| pass = document.getElementById('txtPassword'); | |
| // Grab the submit button, oddly named 'punch' |
This file contains hidden or 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
| import Ember from 'ember'; | |
| var myArray = ['he','name','of','very','to','through','and','just','a','form','in','much','is','great','it','think','you','say','that','help','he','low','was','line','for','before','on','turn','are','cause','with','same','as','mean','I','differ','his','move','they','right','be','boy','at','old','one','too','have','does','this','tell','from','sentence','or','set','had','three','by','want','hot','air','but','well','some','also','what','play','there','small','we','end','can','put','out','home','other','read','were','hand','all','port','your','large','when','spell','up','add','use','even','word','land','how','here','said','must','an','big','each','high','she','such','which','follow','do','act','their','why','time','ask','if','men','will','change','way','went','about','light','many','kind','then','off','them','need','would','house','write','picture','like','try','so','us','these','again','her','animal','long','point','make','mother','thing','world','see','near','him','build','two','self |
This file contains hidden or 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
| <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script><div id="tickerBox"></div> | |
| <script> | |
| var tickerBox = document.getElementById('tickerBox'); | |
| var divTicker = document.createElement('div'); | |
| divTicker.setAttribute("id", "ticker"); | |
| tickerBox.appendChild(divTicker); | |
| divTicker.style.fontSize="4rem"; | |
| divTicker.style.fontWeight="bold"; | |
| divTicker.style.letterSpacing="2px"; |
This file contains hidden or 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
| #!/usr/bin/env python | |
| from time import sleep | |
| import random | |
| lives = 3 | |
| score = 0 | |
| def inflate(toStretch): | |
| if toStretch == "r": |
NewerOlder