Skip to content

Instantly share code, notes, and snippets.

View olitreadwell's full-sized avatar

Oli Treadwell (he/him) olitreadwell

View GitHub Profile
@olitreadwell
olitreadwell / entêtement.md
Last active November 27, 2015 14:06
entêtement at École 42

Workstations at École 42 photo credit (MARION SOLLETTY / FRANCETV INFO)

Paris' École 42 demonstrates an essential character trait of any would-be developer.

Stubbornness.

Call it determination, call it perseverance, it remains as the ability to continue working at a problem.

I allude to this experience as banging my head against the wall.

@olitreadwell
olitreadwell / js-prototypal-inheritance.js
Created March 3, 2016 19:21
Basics of JavaScript Prototype-based Inheritance
// Construct a Canine object
var Canine = function(latinName) {
this.genus = "Canis";
this.latinName = latinName;
}
// Create two distinct instances of the Canine object
var dog = new Canine("Canis familiaris");
var greyWolf = new Canine("Canis lupus");

I wrote about how to write a great pull request on my blog

Link to ticket

This is always helpful as a way to connect the different methods of communication that your company uses within your Product Development teams.

Description of Ticket

A description of the ticket, explaining potential changes in the code or away from the original intent of the story

This may be a synthesis of offline discussions you had surrounding the code you wrote. It could include what decisions were made, or realizations come to surrounding necessary codebase changes.

@olitreadwell
olitreadwell / bash-profile-alias.md
Last active April 28, 2017 19:33
Installing ESlint in your JavaScript Application

Include the following within your Bash Profile to make it simple to install eslint in one step.

Warning: this bash command curl's a gist and runs a command without further security checks.

You include this command without further security measures as your own discretion

Add to your Bash Profile

Barbara Liskov

Presentation

Link to Presentation

Overview

  • born November 7, 1939
  • born Barbara Jane Huberman
  • American Computer scientist
  • Professor at MIT
@olitreadwell
olitreadwell / sampleREADME.md
Last active July 7, 2023 22:49
repo readme template

FVCproductions

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

@olitreadwell
olitreadwell / bind-form-or-element.js
Last active October 22, 2021 01:50
js reactjs bind form or input elements with state
class CName extends Component {
constructor() {
this.state = {
firstname: "",
};
}
handleInputChange = (e) => {
this.setState({
firstname: e.target.value,
@olitreadwell
olitreadwell / horizontal-and-vertical-center.css
Created October 22, 2021 01:54
css horizontally and vertically center
/*
=======================================================================================
Using negative margins equal to half of that width and height,
after you've absolutely positioned it at 50% / 50% will center
it with great cross browser support.
======================================================================================
*/
.parent {
position: relative;
@olitreadwell
olitreadwell / media-queries.css
Created October 22, 2021 01:54
css media queries
/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen and (min-width: 321px) {
/* Styles */
}
@olitreadwell
olitreadwell / flexbox-centering.css
Created October 22, 2021 02:01
css flexbox centering
.flexbox-centering {
display: flex;
justify-content: center;
align-items: center;
height: 100px;
}