I hereby claim:
- I am strickvl on github.
- I am strickvl (https://keybase.io/strickvl) on keybase.
- I have a public key whose fingerprint is F537 3BA4 177D 208F AC89 92EA 7D21 9CB0 19E5 C280
To claim this, I am signing this object:
Verifying that +strickvl is my blockchain ID. https://onename.com/strickvl |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
typed text: | |
qwfpgjluy;[]arstdhneio'\`zxcvbkm,./ | |
| n | type | code | key | kc | mods | repeat | l | comp | iType | data | | |
|----:|------------:|-------------:|:---------|----:|-----:|-------:|--:|-----:|-----------:|-----:| | |
| 1 | keydown | Tab | Tab | 9 | | | 0 | | | | | |
| 2 | keydown | KeyQ | q | 81 | | | 0 | | | | | |
| 3 | beforeinput | | | | | | | | insertText | q | |
While working through a Ruby problem on Codewars, I discovered a way to combine an array of integers in order to work on it as a string. As an example, see the following code snippet:
[3,2,1].join # --> returns "321"
This was surprising to me. In order to get the same result, I had taken the long route:
function sameChars(str1, str2) { | |
let str1Arr = str1.split(''); | |
let str2Arr = str2.split(''); | |
for (let index = 0; index < str2Arr.length; index += 1) { | |
let char = str2Arr[index]; | |
if (!str1.includes(char)) return false; | |
} | |
return true; | |
} |
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | |
<script> | |
function selectRandomCatFacts(facts, number) { | |
let arr = []; | |
for (let i = 1; i <= number; i += 1) { | |
let randomIndex = Math.floor(Math.random() * facts.length); | |
arr.push(facts[randomIndex]); |
#!/usr/bin/env node | |
const cdk = require('@aws-cdk/core'); | |
const { EkkoStack, SharedResources } = require('../lib/deploy-stack'); | |
// A construct which represents the entire CDK app | |
class EkkoApp extends cdk.App { | |
constructor() { | |
super(); |
const { createEkkoEnvironment } = require('./createEkkoEnvironment'); | |
const cdk = require('@aws-cdk/core'); | |
const s3 = require('@aws-cdk/aws-s3'); | |
const ec2 = require("@aws-cdk/aws-ec2"); | |
const ecs = require("@aws-cdk/aws-ecs"); | |
const ecs_patterns = require("@aws-cdk/aws-ecs-patterns"); | |
const { RedisCluster } = require("./redis"); | |
const { randomBytes } = require("crypto"); |
TL;DR: install this script to auto-correct the text assigned to the <title>
tag on Launch School study pages
I use bookmarking sites like Pinboard, Notado and Instapaper a lot from within my browser. These sites usually auto-populate metadata, including the title of the page that is being saved or added to their internal database.
Unfortunately, Launch School pages all have the same identical <title>
tag applied to them: "Launch School - An Online School for Software Engineers". This makes finding the precise page you need at a subsequent date pretty difficult. All the pages have the same name and the URLs are random character strings so those don't help either.
Now that I'm towards the end of the Core syllabus, I have learned about the DOM, and this enabled me to write a very simple script that runs while I'm using the Launch School website.