Skip to content

Instantly share code, notes, and snippets.

@pncnmnp
pncnmnp / news_corpus.txt
Last active February 5, 2024 09:59
22 years (1995 - 2017) worth of news scrapped from Wikipedia
This file has been truncated, but you can view the full file.
Current events of September 3, 1995 (1995-09-03) (Sunday) :
eBay is founded.
Current events of September 6, 1995 (1995-09-06) (Wednesday) :
NATO air strikes against Bosnian Serb forces continue, after repeated attempts at a solution to the Bosnian War fail.
Current events of September 19, 1995 (1995-09-19) (Tuesday) :
The Washington Post and The New York Times publish the Unabomber's manifesto.
Current events of September 22, 1995 (1995-09-22) (Friday) :
American millionaire Steve Forbes announces his candidacy for the 1996 Republican presidential nomination.
Current events of September 23, 1995 (1995-09-23) (Saturday) :
Argentine national Guillermo "Bill" Gaede is arrested in Phoenix, Arizona, on charges of industrial espionage. His sales to Cuba, China, North Korea and Iran are believed to have involved Intel and AMD trade secrets worth US$10–20 million.
@pncnmnp
pncnmnp / gist:8afb7903f61ec69a157287435a6347aa
Created December 9, 2023 17:51
Test out bazzargh's variation of "Shuffling using Fibonacci hashing"
import random
import math
import copy
import numpy as np
def shuffle_songs(songs):
"""Return a list of shuffled songs."""
num_songs = len(songs)
# Auto-suggestion
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
# Aliases
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias py="python3.10"
alias ptpy="python3.10 -m ptpython"
title artist ytdlp_title ytdlp_artist ytmdl_title ytmdl_artist
How Ya Doin'? (feat. Missy Elliott) Little Mix How Ya Doin'? (feat. Missy Elliott) Little Mix
Crazy Kids (feat. will.i.am) Kesha Crazy Kids (feat. will.i.am) Kesha Crazy Kids (Originally Performed by Ke$Ha Feat. Will.I.Am) [Karaoke Version] Singer's Edge Karaoke
Ooh La La (from "The Smurfs 2") Britney Spears Ooh La La (From "The Smurfs 2") Britney Spears Fu-Gee-La Fugees
People Like Us Kelly Clarkson People Like Us Kelly Clarkson People Like Us Micah Tyler
Overdose Ciara Overdose Ciara Overdose Finesse2tymes
Right Now - Dyro Radio Edit Rihanna Right Now (feat. David Guetta) Rihanna Right Now - Dyro Radio Edit Rihanna
Give It 2 U Robin Thicke Give It 2 U (feat. Kendrick Lamar & 2 Chainz) Robin Thicke Give It 2 U (feat. Kendrick Lamar & 2 Chainz) Robin Thicke
Foolish Games Jewel Foolish Games Jewel Foolish Games Jewel
Outta Nowhere (feat. Danny Mercer) Pitbull Outta Nowhere (feat. Danny Mercer) Pitbull
@pncnmnp
pncnmnp / random_episode.py
Last active April 11, 2023 08:04
edit the 'path' variable to the place where your tv show directories are, then edit command line options accordingly.
from random import choice
from os import listdir, chdir, system
from os.path import isdir
from glob import glob
#from subprocess import Popen
from readline import parse_and_bind
from pprint import pprint
from sys import argv
'''
@pncnmnp
pncnmnp / fio.vim
Created April 1, 2023 11:19
Vim syntax file for Fio (Flexible I/O Tester)
" Vim syntax file for Fio (Flexible I/O Tester)
" Language: Fio
" Maintainer: Parth Parikh <parthparikh1999p@gmail.com>
" Last Change: 2023-04-01
" This code is licensed under Vim License:
" https://github.com/vim/vim/blob/master/LICENSE
" Fio files are a type of classic INI files
" This is a slight modification of:
@pncnmnp
pncnmnp / words_of_life.py
Created December 16, 2022 04:22
Game of Life but with alphabets
# initialize the grid with random alphabets
import random
from itertools import permutations
from collections import Counter
import pickle
import enchant
# define the grid size
GRID_SIZE = 8
@pncnmnp
pncnmnp / genres.json
Created December 13, 2022 08:14
List of genres supported by Phoenix10.1 (https://github.com/pncnmnp/phoenix10.1)
This file has been truncated, but you can view the full file.
[
"rooms and buildings",
"Lautonom",
"m3nosu",
"okrutna realnost",
"painful",
"fahrradfahren bei nacht",
"music to fall asleep to",
"3 am",
"Same name not same song tag",
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
,text
0,"1595
THE TRAGEDY OF ROMEO AND JULIET
by William Shakespeare
Dramatis Personae
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
,text
0,"Alice’s Adventures in Wonderland
by Lewis Carroll
THE MILLENNIUM FULCRUM EDITION 3.0
Contents
CHAPTER I. Down the Rabbit-Hole