Skip to content

Instantly share code, notes, and snippets.

View srgoogleguy's full-sized avatar

Sherif Ramadan srgoogleguy

View GitHub Profile
Month, Year Standard deviations from previous month Standard deviation for the year
Jan, 2009 0.85048380530504 758.39186587293
Feb, 2009 0.17141534060412 758.39186587293
Mar, 2009 0.17668965877655 758.39186587293
Apr, 2009 0.088344829388276 758.39186587293
May, 2009 0.28085744268213 758.39186587293
Jun, 2009 0.52347607861411 758.39186587293
Jul, 2009 0.60127227165752 758.39186587293
Aug, 2009 0.2149284655267 758.39186587293
Sep, 2009 0.097574886190036 758.39186587293
@srgoogleguy
srgoogleguy / array-visualization.md
Last active April 19, 2023 06:32
Array Visualizations in PHP

Visualizing Array Operations in PHP

It's important to recognize that in PHP an array does not always behave like a traditional array. It's actually more representative of an ordered hashmap. Thus it maintains order, but consists of key/value pairs. A key, in a PHP array, is always unique, but can be either an integer or a string. If the string key can be cast to an integer then PHP will carry out this operation implicitly. Also, array keys do not determine the order of elements in a PHP array.

With this in mind, we can better understand how different operations, like diff, intersect, union, and merge, would be carried out on a native PHP array. Some of these operations rely on the array keys and others on the values in the array.


Table of Contents

@srgoogleguy
srgoogleguy / how-to-learn.md
Created November 23, 2017 16:08
Learning How to Learn In the First Place

Remember that engineering is work, and no document will substitute for your own thinking, learning and experimentation.

How to Learn in the First Place

  1. Play with something.
  2. Read the documentation on it.
  3. Play with it some more.
  4. Read documentation again.
  5. Play with it some more.