Skip to content

Instantly share code, notes, and snippets.

View Theartbug's full-sized avatar

A.Provost Theartbug

View GitHub Profile

Learning Docker

Orchistration: Building systems with docker

Registries

  • is a program that keeps your docker images / layers safe
    • metadata around images
  • listen on port 5000 (usually)
  • maintains an index and searches tags
@Theartbug
Theartbug / c++_syntax.md
Created January 18, 2020 00:08
c++ syntax

C++ syntax

  • cppreference.com
  • strongly statically typed
  • not a pure OOP, more hybrid

example:

// preprocessor directive
@Theartbug
Theartbug / c++_structured_arrays.md
Created January 18, 2020 00:08
c++ structured arrays

Structured Arrays (multidimensional arrays)

arrays

  • when declared int x[10], you cannot overwrite x with another value
    • array variables are considered constants
  • int array[3][2] is an array of size three with integer arrays size two
[
 [int, int],
@Theartbug
Theartbug / c++_structs.md
Last active January 18, 2020 00:07
c++ structs

structures & Review

structs

  • a way to group different types of data
  • Example:
struct product {
	float price;
	char name[41];
@Theartbug
Theartbug / c++_recursion.md
Created January 18, 2020 00:05
c++ recursion

recursion

  • something references itself
  • needs a terminating control structure or else will continue forever
  • good for searching and backtracking
  • is always slower in c++ than iteration
  • stack does have a finite amount
  • every time a recursive function is called, it's call is placed onto the stack and we jump to the function execution, leaving our place in the previous call until the current call is finished
  • stack overflow is when your call stack is larger than your operating system allows
    • usually only with infinite recursion
@Theartbug
Theartbug / c++_pointers.md
Created January 18, 2020 00:05
C++ pointers

MOTHER FUCKING POINTERS

general

  • a pointer uniquely identifies some piece of memory in your program
  • allows you fine control of memory usage
  • you can give any value to a pointer, but it will not check if it is valid or exists
    • will turn into a runtime error
  • you must deallocate the memory you allocate for a pointer when you are done with it
  • pointers can have any dataType
@Theartbug
Theartbug / C++_external_files.md
Created January 18, 2020 00:04
C++ external files

External Files

  • a way to persist data on a hard drive
    • where files are stored
  • usually programs utilize RAM (main memory) to execute
    • when data is taken in from the user
    • where variables are stored
  • output is when we write to a file
    • ofstream
  • input is when we read from a file
@Theartbug
Theartbug / c++_classes.md
Last active January 18, 2020 00:04
C++ classes

Classes

data abstraction

  • allow you to preform data abstraction and create new dataTypes in an Object Oriented fashion
  • a place to hold data and manage operations on that data
    • holds functions that a consumer can call
  • class and struct both have the same capabilities in c++
    • have members, functions, constructors
  • different defaults:
@Theartbug
Theartbug / c++_arrays_strings.md
Created January 18, 2020 00:02
C++ strings / arrays

Arrays

Strings

  • Strings are represented by arrays of characters in this course
    • also with the String class, but not in this class
  • size of array must be specified at time of creation (constant or literal)
    • must be known at compile time, can not be a variable brought in by cin, etc.
    • can copy elements into a bigger array
  • must settle on a max length (defined array size)
@Theartbug
Theartbug / Adobe_For_All.md
Created September 12, 2019 20:22
Adobe for all conference Notes

In the zone: achieving peak productivity through better focus

sahar yousef

status quo

  • today we can work anytime, anywhere, on any device, with anyone around the world
  • productivity has dipped and stagnated in the past 10 years
    • hypothesis was the more we connect people, the more productive they would become
  • we struggle to get things done more than ever
  • feeling overwhelmed, busy