Skip to content

Instantly share code, notes, and snippets.

View jacks0n9's full-sized avatar

Jackson jacks0n9

  • Null, null
View GitHub Profile
@jacks0n9
jacks0n9 / randomvideogen.py
Created August 9, 2023 15:04
A script to generate a random video. Credit to https://www.youtube.com/@tiepup
import cv2
import numpy as np
import random
import string
import os
import sys
# Number of videos to generate
num_videos = 1
@jacks0n9
jacks0n9 / betterccgifts.js
Last active May 11, 2023 03:27
Unlimited Gifts!!!
let giftsMod={
init:function(){
console.log("Loaded")
Game.oldGainBuff=Game.gainBuff
Game.gainBuff=function(name,duration){
if(name=="gifted out"){return}
return Game.oldGainBuff(name,duration)
}
},
save:function(){
@jacks0n9
jacks0n9 / dai.sol
Created August 29, 2021 01:47
The Dai stablecoin source code
/**
*Submitted for verification at Etherscan.io on 2019-11-14
*/
// hevm: flattened sources of /nix/store/8xb41r4qd0cjb63wcrxf1qmfg88p0961-dss-6fd7de0/src/dai.sol
pragma solidity =0.5.12;
////// /nix/store/8xb41r4qd0cjb63wcrxf1qmfg88p0961-dss-6fd7de0/src/lib.sol
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@jacks0n9
jacks0n9 / jsonl_parse.py
Created July 7, 2021 23:20
This is a simple script that reads a jsonlines file and parses it into an array. Feel free to steal this function and paste it into your own code.
import json
def parse_jsonl(filename):
lines=[]
with open(filename,"r") as file:
data=file.readlines()
for line in data:
lines.append(json.loads(line))
return lines
package com.jacks0n9
import javax.swing.*
fun main(){
val frame = JFrame()
frame.isVisible=true
frame.setSize(300,300)
frame.defaultCloseOperation=JFrame.EXIT_ON_CLOSE
}
from urllib.parse import quote
from urllib.request import urlopen
text=input("Input text you want to synthesize: ")
filename=input("What file should I put the audio in: ")
url="https://www.google.com/speech-api/v1/synthesize?lang=en&text="+quote(text)
data=urlopen(url)
audio=data.read()
with open(filename,'wb') as file:
file.write(audio)
file = File.open("epic.txt",'w')
file.writeline("dfsd")
file = File.open("epic.txt",'w')
file.writeline("dfsd")
guessed = 0
secret = 44
won = false
while guessed < 3 and !won
puts "Enter a number"
guess=gets.chomp().to_i()
if guess < secret
puts "Guess higher"
elsif guess>secret
puts "Guess lower"
@jacks0n9
jacks0n9 / op cookie clicker save
Created January 7, 2021 19:35
click import save in cookie clicker and copy this baby in