Skip to content

Instantly share code, notes, and snippets.

View tiffany-taylor's full-sized avatar

Tiffany tiffany-taylor

View GitHub Profile
@tiffany-taylor
tiffany-taylor / Issue.md
Last active December 17, 2021 21:48 — forked from orta/Issue.md
Disclosable Sections in a GH issue

Summary text.

Toggle to view example code Hello World, how is it going?
@tiffany-taylor
tiffany-taylor / Issue.md
Last active December 17, 2021 21:57 — forked from Ashton-W/Issue.md
GitHub Markdown toggle code block
Click to toggle contents of other `code`
MORE CODE!

Keybase proof

I hereby claim:

  • I am tiffany-taylor on github.
  • I am tylae (https://keybase.io/tylae) on keybase.
  • I have a public key ASDB78TWkJwsPcBulk-zm5Lgbdwb2BsZTnVFo6NgkHcS4Qo

To claim this, I am signing this object:

Setting up Bridged Mode in Ubuntu Server in Virtualbox

(Note: these are primarily notes for myself, so a lot of assumptions are made based on things I already know. I may add additional relevant information in the future, I may not.)

Things that will need setting up prior to setting up bridged mode

  • Set up the server like normal, sudo apt update and what not.
  • Install vim as well.
  • Settings for VM will need Network set up to Bridged Adapter to be able to SSH into the machine after configuration is complete.

And then setting up bridged mode in the VM...

  1. test pinging google.com, it should "just work"

Personal Development Todo

  • finish Head First Design Patterns
  • node.js
  • Docker
  • bitwise operation

Covariance and Contravariance

In PHP 7.2.0, partial contravariance was introduced by removing type resetrictions on parameters in a child method. As of PHP 7.4.0, full covariance and contravariance support was added.

Covariance allows a child's method to return a more specific type than the return type of its parent's method. Whereas, contravariance allows a parameter type to be less specific ina child method, than that of its parent.

Covariance

To illustrate how covariance works, a simple abstract parent class, Animal is created. Animal will be extended by children classes, Cat, and Dog.

(example)

- read about mappers, entities and services when approaching model
- https://stackoverflow.com/questions/5863870/how-should-a-model-be-structured-in-mvc/5864000#5864000
- https://stackoverflow.com/questions/16356420/mvc-for-advanced-php-developers/16356866#16356866
- practice creating routers
- read about big endian and little endian
https://www.cs.umd.edu/class/sum2003/cmsc311/Notes/Data/endian.html
- read about 8 byte strings and 64-bit integer, signed and unsigned, blah blah blah
http://users.ece.utexas.edu/~valvano/embed/chap3/chap3.htm
- (challenge) OK here's a fun task for you lovely people... I have a 32-bit PHP installation. I also have an 8 byte string representing
a little-endian signed 64-bit integer. This integer is a unix timestamp with nanosecond granularity (and no, I did not choose this).
@tiffany-taylor
tiffany-taylor / 00-project-notes.md
Last active December 28, 2017 21:11
Notes from projects

An ongoing list of notes that I've found useful over time, gathered in one spot.

Setting up a Virtual Machine using Virtualbox and Ubuntu

Originally written to work with Patrick Louys' No Framework Tutorial for PHP.

I use Git Bash, which is installed with Git, as my SSH client, you can use whatever you prefer. Git Bash is a variant of MinGW.

Note: "head mode" means that the VM has a GUI, "headless mode" means that the VM is running, but there is no GUI, and requires a secure connection into the server, in this case by SSH.

Download/Install Virtualbox