xpcoffee's playbook to getting back up and running (relatively) quickly on a new installation of Ubuntu.
Install Vivaldi
// This script allows me to email myself notes and this appends them to my daily notes in my private note repo | |
/** | |
* Worlflow | |
*/ | |
function syncEmailNotes() { | |
const { content, noteMessages } = getNotesFromEmails() | |
if (content.length === 0) { | |
Logger.log("No notes found in inbox. Stopping.") |
" Author: Emerick Bosch | |
" Date Last Updated: August 2018 | |
""""""""""" | |
" Plugins " | |
""""""""""" | |
" ---- Vundle header start ---- | |
set nocompatible " used iMproved mode (required by Vundle) | |
filetype off " required by Vundle |
import java.util.LinkedList; | |
public class SieveOfEratosthenes | |
{ | |
private static final boolean PRIME = false; | |
private static final boolean COMPOSITE = true; | |
private boolean[] array; | |
private int index; | |
/* |
import java.util.LinkedList; | |
/** | |
* Implements a dictionary using a radix tree. | |
*/ | |
public class AmazonDictionary | |
{ |
This is part of my rough notes and will probably be cleaned up and tweaked over time.
##Polymorphism
Polymorphism is the ability of subclasses to redefine the functionality of a parent class.
It is closely related to, but is not the same as, inheritance. The key word is redefine.
It's important to understand where Polymorphism and Inheritance differ, so let's do a comparison:
####Pure Inheritance A class that inherits from a parent class contains all the functionality of that class.
import java.lang.NullPointerException; | |
import java.util.NoSuchElementException; | |
import java.lang.StringBuilder; | |
import java.util.LinkedList; | |
/** | |
* Hashtable tutorial class. | |
* | |
* Adapted from <a href="http://www.danielacton.com/Data-Structures/Hashtable/Java/>">Daniel Action</a>. | |
* November 2014. |
##Domain Name System (DNS)
This is the system that allows a pc to navigate to the right page on the internet.
###The Nature of Internet Addresses
Addresses on the internet are actually IP addresses (Internet Protocol) like 74.125.228.200
- Google.
IP is well defined and standardized and it has proven to be a reliable method for locating individual devices within large networks. Browsers and computers have these standards coded in them and can use them quickly and efficiently to find and communicate with each other.
However, IP addresses are not human-friendly. Lists of four numbers are hard to remember and do not give any information about the nature of the site, for example:
####Stack vs Heap in C-languages
Stack
A stack is memory set aside for running code.
Typically, calls to functions create temporary variables.
These variables are stored on the stack.
Stacks are a LIFO (last in, first out) structure.
Heap
import java.util.Comparator; | |
public class ThreeWayQuick{ | |
public static void sort(Comparable[] a) | |
{ | |
StdRandom.shuffle(a); | |
sort(a, 0, a.length - 1); | |
} | |