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
<link rel="icon" href="data:;base64,iVBORw0KGgo=" /> |
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
<link rel="icon" href="data:;base64,iVBORw0KGgo=" /> |
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
/** | |
* Adds two numbers together. | |
* | |
* @function | |
* @param {number} x - The first number to add. | |
* @param {number} y - The second number to add. | |
* @returns {number} The sum of `x` and `y`. | |
* @throws {TypeError} Will throw an error if `x` or `y` is not a number. | |
* @example | |
* add(1, 2); // Returns: 3 |
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
version: "3" | |
services: | |
postgres: | |
image: "postgres:14.5" | |
restart: always | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: users | |
logging: |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"os/exec" | |
"time" | |
) | |
func main() { |
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
* { | |
box-sizing: border-box; | |
outline: 1px solid limegreen !important; | |
} | |
or | |
* { | |
box-sizing: border-box; | |
background: rgb(0 100 0 / 0.1) !important; |
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
# put it in .bashrc file | |
# call it as `t 1674208994` | |
alias t=showTime | |
function showTime () { | |
date -d @$1 +"%a %b %d %T %z %Y" | |
if [[ $1 < $(date +%s) ]]; then | |
ago="ago" |
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
const customTheme = (mode) => ({ | |
palette: { | |
mode, | |
primary: { | |
main: "#0073C6", | |
light: "rgba(0, 115, 198, 0.16)", | |
}, | |
...(mode === "light" | |
? { | |
success: { |
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
function sleep(seconds) { | |
let now = performance.now() | |
// Artificial delay -- do nothing for 2 seconds | |
while (performance.now() - now < seconds * 1000) {} | |
return `Slept for ${seconds} second(s)` | |
} | |
sleep(2) //? Slept for 2 seconds |
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
-refreshtoken -status-code:204 |
NewerOlder