Skip to content

Instantly share code, notes, and snippets.

View smiley717's full-sized avatar
😀
Focusing & Smiling

smiley717

😀
Focusing & Smiling
View GitHub Profile
@smiley717
smiley717 / JavaScript Coding Standards.md
Last active October 10, 2023 19:05
JavaScript Coding Standards

JavaScript Coding Standards

For almost all of our code style rules, refer to the Airbnb JavaScript Style Guide.

When writing ES6 or React code, please also refer to the Airbnb React/JSX Style Guide.

We use Prettier to automatically style our code.

  • You can run Prettier to fix the style on all files with npm run prettier
  • You can run Prettier in watch mode to fix the styles when they are saved with npm run prettier-watch
@smiley717
smiley717 / GitCommitEmoji.md
Created May 15, 2023 09:47 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@smiley717
smiley717 / frontend-ws-connection.ts
Created March 21, 2021 19:47 — forked from jsdevtom/frontend-ws-connection.ts
kubernetes-ingress websockets with nodejs
export const ws = webSocket<WebsocketMessage>(`wss://${location.hostname}:${location.protocol === 'https:' ? 443 : 80}/ws/`);
export const wsObserver = ws
.pipe(
retryWhen(errors =>
errors.pipe(
delay(1000)
)
)
);