Skip to content

Instantly share code, notes, and snippets.

Avatar
👩‍💻
JavaScripting

Aimee Knight AimeeKnight

👩‍💻
JavaScripting
View GitHub Profile
@AimeeKnight
AimeeKnight / request-id.vcl
Created Jul 28, 2022 — forked from mshmsh5000/request-id.vcl
Fastly VCL for X-Request-ID header
View request-id.vcl
# Unique request ID header
sub vcl_recv {
set req.http.X-Request-ID = digest.hash_sha256(now randomstr(64) req.http.host req.url req.http.Fastly-Client-IP server.identity);
#FASTLY recv
}
@AimeeKnight
AimeeKnight / kubectl.txt
Created Jan 31, 2022
Kubectl shortcuts
View kubectl.txt
componentstatuses = cs
configmaps = cm
endpoints = ep
events = ev
limitranges = limits
namespaces = ns
nodes = no
persistentvolumeclaims = pvc
persistentvolumes = pv
pods = po
View prototype-examples.js
// Every object in Javascript has a prototype.
// When a messages reaches an object, JavaScript will attempt to find a property in that object first,
// if it cannot find it then the message will be sent to the object’s prototype and so on.
// Create an alien object
var alien = {
kind: 'alien'
}
// and a person object
View PULL_REQUEST_TEMPLATE.md

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
View cloudSettings
{"lastUpload":"2020-03-25T21:31:13.539Z","extensionVersion":"v3.4.3"}
@AimeeKnight
AimeeKnight / findCombinationsFromDictionary.js
Last active Nov 21, 2018
Find all combinations in dictionary
View findCombinationsFromDictionary.js
function reduceWord(active, rest, subsequences) {
if (!active && !rest) {
return;
}
if (!rest) {
subsequences.push(active);
} else {
reduceWord(active + rest[0], rest.slice(1), subsequences);
reduceWord(active, rest.slice(1), subsequences);
View checkbox.css
body {
line-height: 24px;
font-size: 16px;
box-sizing: border-box;
}
.checkbox input[type="checkbox"] {
opacity: 0;
}
View prototypes.js
// Every object in Javascript has a prototype. When a messages reaches an object, JavaScript will attempt to find a property in that object first, if it cannot find it then the message will be sent to the object’s prototype and so on. This works just like single parent inheritance in a class based language.
// The __proto__ object
// To understand prototype chains in JavaScript there is nothing as simple as the __proto__ property. Unfortunately __proto__ is not part of the standard interface of JavaScript, not at least until ES6. So you shouldn’t use it in production code. But anyway it makes explaining prototypes easy.
// let's create an alien object
var alien = {
kind: 'alien'
}
@AimeeKnight
AimeeKnight / cloudSettings
Last active Feb 12, 2021
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2021-02-12T19:33:59.219Z","extensionVersion":"v3.4.3"}
View bio.md

Aimee Knight is a Software Architect and former professional figure skater currently residing in Nashville TN. Outside of work, she's a Google Developer Expert in Web Technologies specializing in performance, a panelist on the JavaScript Jabber podcast, and an international keynote speaker. Currently, she specializes in DevOps, JavaScript, React, and CSS however, she's worked extensively in Angular, Node, and Ruby on Rails. Her past involvement includes working at npm, Inc., being a weekly panelist on the Angular Air podcast, a co-organizer for CharmCityJS, and a mentor for Baltimore NodeSchool and Rails Bridge.