Skip to content

Instantly share code, notes, and snippets.

View noveoko's full-sized avatar
🏠
Working from home

Marcin Kraszewski noveoko

🏠
Working from home
View GitHub Profile
@noveoko
noveoko / potential_fake_gurus.csv
Created March 7, 2021 18:10
545 potential fake gurus on Youtube
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
name;score;class
lastweektonight;3.716099416000003;fake_guru
good mythical morning;6.592357681000005;fake_guru
nigahiga;7.343055977999998;fake_guru
vox;7.885772988000004;fake_guru
amc;2.811392013000001;fake_guru
marshmello;2.8509348280000006;fake_guru
nowthis world;2.8509348280000006;fake_guru
cracked;1.587306397;fake_guru
petersripol;4.907746801;fake_guru
import moviepy
from moviepy.editor import VideoFileClip, concatenate_videoclips
import glob
files = glob.glob("*." + suffix)
files = [VideoFileClip(file) for file in files]
final_video = concatenate_videoclips(files)
final_video.write_videofile(outputPath.split(".")[0] + ".mp4")
if __name__ == "__main__":
def generateParams():
temp = random.choice([0.01*a for a in range(0,100)])
max_tokens = random.choice(range(25,400))
return {"temp":temp,"max_tokens":max_tokens}
with open('all_results.txt','w',encoding='utf-8') as outfile:
for i in range(0,100):
if i%10==0:
print(i)
name = random.choice(['Susan','Mike','Eric','Jin','June','April','Barry','Eliza','Tom'])
def generateParams():
temp = random.choice([0.01*a for a in range(0,100)])
max_tokens = random.choice(range(25,400))
return {"temp":temp,"max_tokens":max_tokens}
with open('all_results.txt','w',encoding='utf-8') as outfile:
for i in range(0,100):
if i%10==0:
print(i)
params = generateParams()
@noveoko
noveoko / gist:6c4526b9284738eca791604ab3b5859b
Last active August 23, 2020 15:58
I asked GPT-3 to tell me the population of every country on Earth (temp=0.0)
Country,Worldometer Pop.,Prediction by GPT-3 (0.0 temp),Prediction part 2
Afghanistan,"38,928,346",no answer,
Albania,"2,877,797","3,828,827",(July 2013 est.)
Algeria,"43,851,044",no answer,
Andorra,"77,265",no answer,
Angola,"32,866,272",no answer,
Antigua and Barbuda,"97,929",no answer,
Argentina,"45,195,774",no answer,
Armenia,"2,963,243","3,238,000",(2014).
Australia,"25,499,884",no answer,
@noveoko
noveoko / GPT3_test.txt
Created August 11, 2020 20:05
GPT3 test run
The forest had become a labyrinth of snow and ice. I'd been monitoring the parameters of the ticket for an hour now, and it was clear that we weren't going to get through the forest without a helicopter. I wasn't even sure if the pilot would be able to get a chopper to the area.
I was just about to go and check on the pilot when he came in through the back door.
"I'm not sure I can get a chopper in there," he said.
"I know," I replied. "I'm thinking we'll have to walk."
"I'll have to come back later with some of the crew. The forest is completely covered in ice and snow. It's a nightmare."

Keybase proof

I hereby claim:

  • I am noveoko on github.
  • I am noveoko (https://keybase.io/noveoko) on keybase.
  • I have a public key ASAw8u3nDT3kDb9y_s2ESv9k-foe8x8XFIIvIimHExvC4Ao

To claim this, I am signing this object:

Siraj Raval YouTube Channel

Total videos reviewed: 403

Most viewed video: 1M views, TensorFlow in 5 Minutes (tutorial)

Average view per video: 92,113

Total video views: 34,911,000

from sklearn.cluster import DBSCAN
import numpy as np
to_cluster = [a,b,c]
a = [0,1,1,1,1,1,1,11,1,1,1,1,0,1]
b = [0,1,1,1,1,1,0,11,1,1,0,1,0,0]
c = [0,1,1,1,1,1,1,11,1,1,111,1,0,2000]
clustering = DBSCAN(eps=3, min_samples=2).fit(to_cluster)