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
''' | |
Description: | |
I got bored and decided to make a class in Python. The `Crank` class represents a turnable crank and tracks how many degrees it's been turned and how many times it has been fully turned. (I may or may not have been inspired subconsciously by *Unbreakable Kimmy Schmidt*.) | |
Example Use Case: | |
I genuinely do not know, but I am genuinely excited to find out how someone uses this! | |
License: | |
This code is in the public domain. You may use it for any purpose that is considered legal in your jurisdiction, including for-profit purposes, without providing attribution or including a similar license. You may attribute to Eden Biskin, if desired. | |
''' |
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
''' | |
Description: | |
I've always had trouble wrapping my head around some data structures, so I decided to practice implementing the easier ones in Python. This module is the result. | |
Example Use Case: | |
So many possibilities! These serve as alternatives to the `list` structure. | |
License: | |
This code is in the public domain. You may use it for any purpose that is considered legal in your jurisdiction, including for-profit purposes, without providing attribution or including a similar license. You may attribute to Eden Biskin, if desired. | |
''' |
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
#Requires -RunAsAdministrator | |
function Pop() { Pop-Location } | |
"$env:USERPROFILE\Desktop" | Push-Location | |
"Looking for ADMX files..." | |
$admx = Get-Item *.admx -ErrorAction SilentlyContinue | |
if ($admx.Count -lt 1) { | |
Write-Error "Unable to find any ADMX files on the Desktop." | |
} else { |
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 javax.swing.*; | |
import java.awt.event.*; | |
import java.awt.BorderLayout; | |
import java.util.PrimitiveIterator; | |
import java.util.Random; | |
import java.util.stream.IntStream; | |
/** | |
* @author Eden Biskin |
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
'1-line macro that centers an entire drawing on the page. Moves all shapes together, so their relative positions remain intact. | |
Sub CenterOnPage() | |
Application.ActivePage.CenterDrawing | |
End Sub |
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
@ECHO OFF | |
ECHO "Are you sure you want to restart explorer.exe?" | |
SET /P YN="Y/N> " | |
IF /I %YN%==Y ( | |
TASKKILL /F /PID explorer.exe && START %SYSTEMROOT%\explorer.exe | |
) |
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
/* | |
Description: | |
This is a frivilous example of swapping the positions of two objects (in this case, ints) in a Java array. I wrote this on September 8, 2021, (fixed on September 10) to amuse myself and give myself a doable Java problem to solve. | |
Example Use Case: | |
None? Well, you can probably find some way of adapting it for use in a much larger program. But I'm sure there are thousands of other examples of the same algorithm (and more efficient ones). Also, this program contains weird identifiers… | |
License: | |
This code is in the public domain. You may use it for any purpose that is considered legal in your jurisdiction, including for-profit purposes, without providing attribution or including a similar license. You may attribute to Eden Biskin, if desired. | |
*/ |
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
/* | |
THIS FILE WILL NOT RUN PROPERLY UNTIL YOU ADAPT IT TO YOUR USE CASE. (i.e. label name) | |
Replace instances of "[...]" with relevant strings. | |
Description: | |
This script will archive and mark-read ALL Gmail conversations (threads) that have a given label. It also logs the timestamps of each range it is currently processing. | |
Efficiency is O(n), NOT accounting for the unknown efficiencies of built-in GAS functions. The script runs markRead(0) and moveToArchive(0) functions on consecutive batches of 100 threads. As a result, it is more efficient when working with labels containing fewer threads. | |
Example Use Case: | |
The original author of this script wrote it to file away those daily agenda emails sent by Google Calendar. I don't always read them, so this script helps clean up my inbox of them. |
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
:: THIS FILE WILL NOT RUN PROPERLY UNTIL YOU ADAPT IT TO YOUR USE CASE. (file paths, etc.) | |
:: Replace instances of "[...]" with relevant paths. | |
:: | |
:: This template is in the public domain. Attribute to Eden Biskin if desired. | |
:: | |
@ECHO Off | |
ECHO Step 1: Attempting to load other account's hive... | |
REG LOAD HKU\temp "C:\Users\[other username]\NTUSER.DAT" >nul | |
IF %ERRORLEVEL% EQU 1 GOTO loadfail | |
IF %ERRORLEVEL% NEQ 1 GOTO loadgood |
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 | |
PROMPT_COMMAND='echo -ne "\033]0;Package Updater\007"' | |
echo "~~~~~ PACKAGE UPDATER ~~~~~" | |
echo | |
sudo -p "Enter %u's password to continue: " echo Checking for updates. Please wait... | |
if [ $? -ne 0 ] ; then | |
echo Unable to verify identity. Please run upd again. |