Skip to content

Instantly share code, notes, and snippets.

View linnykoleh's full-sized avatar
🎯
Focusing

Oleh Linnyk linnykoleh

🎯
Focusing
View GitHub Profile
@linnykoleh
linnykoleh / pluralsight.js
Created April 18, 2017 03:42 — forked from punchouty/pluralsight.js
Pluralsight Video Download
//Login to pluralsight in chrome and Open a course you want to download
//Example - https://app.pluralsight.com/library/courses/aws-automating-cloudformation/table-of-contents
//Click on "Start" or "Resume Course" Button
//chapter listing
var list = document.getElementsByTagName("section");
var counter=0;
for (var i=0; i<list.length; i++) {
if ( list[i].className.match(/\bmodule\b/) ) {
var header_text = list[i].getElementsByTagName("h2")[0].innerText;
var ul = list[i].getElementsByClassName('clips');

Downloading Videos from Pluralsight

Disclaimer

Pluralsight do not permit users to download their videos.
If you are an user of pluralsight you have agreed with their ToS,
and are thusly refrained from doing so.
Use this knowledge at your own risk.

youtube-dl for Linux

DOWNLOADING VIDEOS FROM PLURALSIGHT USING YOUTUBE-DL

Youtube-dl can be used to download course videos from pluralsight

   $ youtube-dl --username <myusername> --password <mypassword> "URL to course outline"

Pluralsight may lock you out of your account after you download a lot of content from the site.

//1
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
//2
jQuery.noConflict();
public V put(K key, V value) {
Entry<K, V> entry = this.root;
if (entry == null) {
this.root = new Entry<>(key, value, null);
return null;
}
int cmp;
Entry<K, V> parent;
Comparator<? super K> cpr = comparator;
if (cpr != null) {
public class Key implements Comparable<Key>{
private static int MORE = 1;
private static int LESS = -1;
private static int SAME = 0;
private int index;
public Key(int index) {
this.index = index;
public V get(Object key) {
Entry<K, V> entry = getEntry(key);
return (entry == null ? null : entry.value);
}
private Entry<K, V> getEntry(Object key) {
if (comparator != null) {
return getEntryUsingComparator(key);
}
if (key == null) {
public class LazySingleton {
private static LazySingleton instance;
private LazySingleton(){
}
public static LazySingleton getInstance(){
if(instance == null){
public class StaticSingleton {
private static StaticSingleton instance = new StaticSingleton();
private StaticSingleton(){
}
public static StaticSingleton getInstance(){
return instance;