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 requests | |
import os | |
from bs4 import BeautifulSoup | |
ydl_opts = {} | |
url = input('sc track url: ') | |
def dwl_vid(url): | |
r = requests.get(url) |
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
const axios = require('axios'); | |
const process = require('process'); | |
var kahid = process.argv[2]; | |
if(!kahid) throw new Error('Please enter valid Kahoot ID (not room ID)') | |
async function main(){ | |
let r = await axios.get(`https://create.kahoot.it/rest/kahoots/${kahid}/card/?includeKahoot=true`); | |
let parsed = parseQuestions(r.data.kahoot.questions); |
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
const readline = require('node:readline'); | |
const { stdin: input, stdout: output } = require('node:process'); | |
const rl = readline.createInterface({ input, output }); | |
rl.question('Enter text: ', (answer) => { | |
console.log(translate(answer)); | |
rl.close() | |
}); |
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
const Net = require('node:net'); | |
const crypto = require('node:crypto'); | |
let server = new Net.Server(); | |
let shake = | |
`HTTP/2 200 KO | |
expires: -1 | |
cache-control: private, max-age=0 | |
content-type: text/html; charset=ASCII |
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
[org 0x7c00] | |
mov ah, 0x0e | |
mov bx, helloWorld | |
print: | |
mov al, [bx] | |
cmp al, 0 | |
je end | |
int 0x10 | |
inc bx |
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
def fizzBuzz(num): | |
if(num % 5 == 0 and num % 3 == 0): | |
return 'FizzBuzz' | |
if(num % 3 == 0): | |
return 'Fizz' | |
if(num % 5 == 0): | |
return 'Buzz' | |
return num | |
for i in range(100): |
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
for (let i = 1; i <= 100; i++) { | |
console.log(fizzBuzz(i)); | |
}; | |
function fizzBuzz(num){ | |
if(num % 5 == 0 && num % 3 == 0) return 'FizzBuzz'; | |
if(num % 3 == 0) return 'Fizz' | |
if(num % 5 == 0) return 'Buzz' | |
return num; | |
}; |
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
const process = require('process'); | |
const fs = require('fs'); | |
let digits = process.argv[2] ?? 9999 | |
let i = 1n; | |
x = 3n * (10n ** (BigInt(digits) + 20n)); | |
let pi = x; | |
let pistr16; | |
let started = new Date(); | |
let digitsCounted; |