Skip to content

Instantly share code, notes, and snippets.

View gen3vra's full-sized avatar
💭
🗯️

Gen gen3vra

💭
🗯️
View GitHub Profile
@gen3vra
gen3vra / starrynights.py
Created September 12, 2023 21:55
Generate a random ascii starfield.
import random
characters = ['˚', '゚', ' ', '‍', ',', '*', ' ', '✦', '.', ' ']
width = 60
height = 20
starfield = [[' ' for _ in range(width)] for _ in range(height)]
star_density = 0.07 # higher = more stars
for row in range(height):
for col in range(width):
if random.random() < star_density:
starfield[row][col] = random.choice(characters)
/* ==UserStyle==
@name Full Size Dojo
@version 20220326.13.19
@namespace userstyles.world/user/gen3vra
@description makes the dojo full size, removes sidebar. i combine with dojo dark 2
@author gen3vra
@license MIT
==/UserStyle== */
@-moz-document domain("www.hyunsdojo.com") {
@gen3vra
gen3vra / settings.json
Created March 6, 2022 05:05
better vscode settings
{
"extensions.ignoreRecommendations": true,
"extensions.showRecommendationsOnlyOnDemand": true,
"workbench.startupEditor": "none",
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
"php.suggest.basic": false,
"php.executablePath": "C:/php/php.exe",
"php.validate.executablePath": "C:/php/php.exe",
"phpfmt.php_bin": "C:/php/php.exe",
"window.titleBarStyle": "custom",
@gen3vra
gen3vra / clearAllUpworkNotifs
Last active December 29, 2021 19:27
Adds a 'Clear All Visible' button under main notification title on Upwork. Clicking it clicks every close button on the page for you. Works 12/xx/2021
// ==UserScript==
// @name Upwork Clear All
// @namespace http://tampermonkey.net/
// @version 0.1
// @description why don't they have this already
// @author Gen
// @match https://www.upwork.com/ab/notifications/
// @icon https://www.google.com/s2/favicons?domain=upwork.com
// @grant none
// ==/UserScript==
@gen3vra
gen3vra / ClearUpworkChats.js
Created May 7, 2021 23:16
A little script to clear Upwork's chat area messages automatedly. PASTE INTO YOUR BROWSER CONSOLE!
//A little function to clear Upwork's chat area messages automatedly.
//I had over 100 chats and needed something quick. You're free to re-use.
//The timeouts are actually necessary because of Upwork's site animations. Trying to click the stuff too fast doesn't work.
//PASTE INTO YOUR CONSOLE.
(function clearUpWorkChat(i, max) {
setTimeout(function () {
document.getElementsByClassName("air-icon-more-circle list-more-rooms")[0].click();
}, 5);
setTimeout(function () {
document.getElementsByClassName("popover-content break")[0].children[0].children[0].children[0].children[0].click();
using System;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms;
using Microsoft.Speech.Recognition;
using Process = System.Diagnostics.Process;
using System.Diagnostics;