Skip to content

Instantly share code, notes, and snippets.

View alexander480's full-sized avatar
🎯
Focusing

Alexander Lester alexander480

🎯
Focusing
View GitHub Profile
@alexander480
alexander480 / Clear YouTube Playlist.md
Last active November 30, 2021 02:43
Remove all videos from YouTube playlist (including watch later).

Clear YouTube Playlist

  1. Follow this specific YouTube link.
  2. Select playlist.
  3. Open developer console.
  4. Paste code into console.
setInterval(function () {
 document.querySelector('#primary button[aria-label="Action menu"]').click();
@alexander480
alexander480 / README-Template.md
Created October 8, 2021 09:02 — forked from DomPizzie/README-Template.md
A simple README.md template

Project Title

Simple overview of use/purpose.

Description

An in-depth paragraph about your project and overview of use.

Getting Started

@alexander480
alexander480 / Coddle Date Formatter.swift
Last active September 1, 2021 01:59 — forked from kharrison/RSSFeed.swift
Swift Decodable With Multiple Custom Dates
import Foundation
extension DateFormatter {
static let iso8601Full: DateFormatter = {
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ"
formatter.calendar = Calendar(identifier: .iso8601)
formatter.timeZone = TimeZone(secondsFromGMT: 0)
formatter.locale = Locale(identifier: "en_US_POSIX")
return formatter
@alexander480
alexander480 / nano.rc
Last active May 13, 2021 05:53
nano.rc configuration for /opt/homebrew installation
# ~/.nanorc
# Add Mouse Support
set mouse
# Add Line Numbers
set linenumbers
# Set Tab Size
set tabsize 4
@alexander480
alexander480 / index.haml
Last active May 9, 2021 06:55
Parallax.js Star Field
.container
#scene{"data-pointer-events" => 'true'}
#stars-small.layer{"data-depth" => "0.50"}
- 100.times.each do |i|
.star
#stars-medium.layer{"data-depth" => "0.60"}
- 50.times.each do |i|
.star
import socket
import subprocess
# Start a socket listening for connections on 0.0.0.0:8000 (0.0.0.0 means
# all interfaces)
server_socket = socket.socket()
server_socket.bind(('0.0.0.0', 8000))
server_socket.listen(0)
# Accept a single connection and make a file-like object out of it