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 extractParams = (after: string) => { | |
if (!after.startsWith('(')) { | |
return [after, {}]; | |
} | |
const paramsEnd = after.indexOf(')'); | |
return [ | |
after.slice(paramsEnd + 1), | |
Object.fromEntries( |
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
// nginx.conf | |
events { } | |
http { | |
include mime.types; | |
include /etc/nginx/conf.d/*; | |
} | |
// default.conf | |
// See $PORT is taken from container run envs |
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
{ | |
"configurations": [ | |
{ | |
"name": "Launch Frontend", | |
"request": "launch", | |
"runtimeArgs": [ | |
"run-script", | |
"dev" | |
], | |
"runtimeExecutable": "npm", |
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
use std::fmt; | |
struct Position { | |
longitude: f32, | |
latitude: f32, | |
} | |
impl fmt::Display for Position { | |
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | |
write!(f, "({}, {})", self.longitude, self.latitude) |
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 app = new App({ | |
socketMode: true, | |
token: String(process.env.SLACK_BOT_TOKEN), | |
appToken: String(process.env.SLACK_APP_TOKEN), | |
signingSecret: String(process.env.SLACK_SIGNING_SECRET), | |
}); | |
;(async () => { | |
// Start your app | |
app.start().catch((error) => { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/6.6.0/rxjs.umd.js"></script> | |
</head> | |
<body> | |
<input id="name" /> | |
<div id="gender">Gender: null</div> |
NewerOlder