curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
source ~/.bashrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"name": "Joshua" | |
}, | |
"event": "my-event", | |
"recipient": "josh", | |
"override": { | |
"firebase-fcm": { | |
"body": { | |
"data": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Win32", | |
"includePath": [ | |
"C:\\Users\\jb_su\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\1.0.4\\**", | |
"C:\\Users\\jb_su\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\**" | |
], | |
"forcedInclude": [ | |
"C:\\Users\\jb_su\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\1.0.4\\cores\\esp32\\Arduino.h" |
I really wanted a way to create resized images on the fly just by specifying the size of the image in the request URL. So, if I had the image kitty.jpg
but wanted to resize it to be 100px by 100px, would simply request kitty-100x100.jpg
, the server would realize it doesn't exists and create it, and the resized image would be returned to me.
I was following this guide written by John Pignata. It is an interesting solution and fit my needs but I did run into some caveats. Below are some of the gotchas I encountered.
- string
.chars.count
: block receives each char and method will return the number of truthy results.split
.each_char
: block called for each char with the current char as the argument.with_index
: when used with.each_char
, will add a second argument, index, passed to the block
- number
.even?
/.odd?
.abs
.floor
,.ceil
,.round
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWithCMD] | |
@="Open with CMD" | |
"Icon"="C:\\WINDOWS\\system32\\cmd.exe" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWithCMD\command] | |
@="cmd.exe /k cd %V" | |
[HKEY_CLASSES_ROOT\Directory\shell\OpenWithCMD] |
As recommended by JavaScript Playground.
add:
{
"preferGlobal":true,
"bin":{
NewerOlder