Skip to content

Instantly share code, notes, and snippets.

@pcrunn
pcrunn / download_egghead_videos.md
Last active August 7, 2019 08:27 — forked from ldong/download_egghead_videos.md
download egghead videos

Download videos from egghead

Go to the egghead website, i.e. Building a React.js App

run

let videos = document.querySelector('#App-react-component > div > div:nth-child(2) > section > div > div.relative.w-100 > section.w-100.pt2.pb3.pt0-l.pb0-l.css-ic4s7x > div > div.w-100.w-30-l.pl0.pl2-l.css-1nlwas4 > div > div > div.w-100.overflow-hidden.flex.flex-column.flex-grow-1.justify-start > ul');

for(const child of videos.children) {
@pcrunn
pcrunn / EntityHider.java
Last active April 26, 2020 14:18 — forked from aadnk/EntityHider.java
Hide or show entities
package com.comphenix.example;
import static com.comphenix.protocol.PacketType.Play.Server.*;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.Map;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;