Skip to content

Instantly share code, notes, and snippets.

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

Shaun D d33pfri3d

🏠
Working from home
View GitHub Profile
@d33pfri3d
d33pfri3d / parser.py
Created January 23, 2024 18:29
Transcript Downloader for Youtuber + Parser
import os
def search_phrase_in_vtt_files(directory, phrase, output_file):
found_files = []
for filename in os.listdir(directory):
if filename.endswith('.vtt'):
with open(os.path.join(directory, filename), 'r', encoding='utf-8') as file:
if phrase in file.read():
found_files.append(filename)
@d33pfri3d
d33pfri3d / addArray.js
Created December 9, 2022 08:36
JS Mem Heap
let array = [];
// This function adds an object to the array, but the object has a reference
// to the array itself, creating a circular reference.
function addToArray() {
let obj = {};
obj.array = array;
array.push(obj);
}
@d33pfri3d
d33pfri3d / news.txt
Created April 15, 2020 10:05
News Networks Youtube
https://www.youtube.com/user/BBC
https://www.youtube.com/user/BBCNewsnight
https://www.youtube.com/user/skynews
https://www.youtube.com/user/Channel4News
https://www.youtube.com/user/ITVNews
https://www.youtube.com/user/guardianwires
https://www.youtube.com/user/LBC973LBC973
https://www.youtube.com/user/timesonlinevideo
https://www.youtube.com/user/thesunnewspaper
https://www.youtube.com/user/MailOnlineVideo

Keybase proof

I hereby claim:

  • I am shaun1x on github.
  • I am shaunix (https://keybase.io/shaunix) on keybase.
  • I have a public key ASBUIvh4Nx7_J1hgJvtp3wO1gKyRv0ctCEDo1hmNYfhSWgo

To claim this, I am signing this object:

@d33pfri3d
d33pfri3d / npm.bash
Last active May 14, 2018 09:48
til bits
npm install PACKAGE -E
npm install PACKAGE --save-exact

3x5 Overhead Press / Bench Press ( Alternate )

3x5 Chinups / Barbell Row ( Alternate )

3x5 Squats


3x5 Overhead Press / Bench Press ( Alternate )

scoop install Gow
@d33pfri3d
d33pfri3d / .block
Created June 15, 2017 10:53
aframe-blocks roomscale 03
license: mit
border: no
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ShaderFrog Export to A-Frame</title>
<script src="https://aframe.io/releases/0.3.0/aframe.min.js"></script>
<script src="shaderfrog.js"></script>
</head>
<body>