Skip to content

Instantly share code, notes, and snippets.

View strickvl's full-sized avatar

Alex Strick van Linschoten strickvl

View GitHub Profile
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;
}
@strickvl
strickvl / joining_integers_making_strings.md
Created January 6, 2020 11:28
blogpost on new method I learned

Joining Integers, Making Strings

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:

@strickvl
strickvl / blink_ipad
Created November 24, 2019 10:21
keystrokes on iPad running Colemak for Blink

Keybase proof

I hereby claim:

  • I am strickvl on github.
  • I am strickvl (https://keybase.io/strickvl) on keybase.
  • I have a public key ASADqFs4NfrMI0jdwkLl4v7yfz-fRhQeMEGNQ0kIBCyqNQo

To claim this, I am signing this object:

Keybase proof

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