Service | SSL | status | Response Type | Allowed methods | Allowed headers |
---|
Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex
command line tool.
To learn more about migrations, check out this article on the different types of database migrations!
This file contains hidden or 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
/* preventScrollWhenSoftKeyboardAppearsIfThereIsPlentyOfRoom(event) | |
* | |
* Attach this handler to `touchstart` on any UI control that brings up the keyboard when you don't want iOS | |
* MobileSafari to scroll when a user taps it. Assumes that the input is near the top of the page and the user has | |
* not scrolled down (specific to my case, sorry!) | |
* | |
* requires top-level CSS directives so we can add it to the body: | |
* ``` | |
* .prevent-ios-focus-scrolling { | |
* position: fixed; |
This file contains hidden or 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
<html> | |
<head> | |
<title>Stripe Gradient</title> | |
</head> | |
<body> | |
<canvas id="gradient-canvas" data-js-darken-top data-transition-in> | |
<!-- | |
Remove data-js-darken-top to keep the same brightness in the upper part of the canvas | |
--> | |
</canvas> |
This file contains hidden or 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
module.exports = { | |
root: true, | |
env: { | |
browser: true, | |
node: true, | |
}, | |
parserOptions: { | |
parser: '@babel/eslint-parser', | |
requireConfigFile: false, | |
}, |
This file contains hidden or 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
// Adapted from: https://www.geeksforgeeks.org/find-length-largest-region-boolean-matrix/ | |
"use strict"; | |
var M1 = [ | |
[ 0, 0, 1, 1, 0 ], | |
[ 1, 0, 1, 1, 0 ], | |
[ 0, 1, 0, 0, 0 ], | |
[ 0, 0, 0, 1, 1 ] | |
]; |
OlderNewer