“Some souls one will never discover, unless one invents them first.” - Nietzsche.
Pinned Loading
-
AWS Secrets Manager and Dynamo DB - ...
AWS Secrets Manager and Dynamo DB - Nest, Typescript 1import { config, DynamoDB, SecretsManager } from 'aws-sdk';
2import { Injectable } from '@nestjs/common';
3import { logger } from './logger';
45@Injectable()
-
FE CI Workflow S3 Cloudfront
FE CI Workflow S3 Cloudfront 1name: Frontend
23on:
4push:
5branches:
-
SocketIO JS - Supports 10,000+ concu...
SocketIO JS - Supports 10,000+ concurrent connections per average Express server instance 1'use strict';
2var connection = null;
3var convId = '';
4var ioSocket = '';
5class SocketRoute {
-
Distance calculation - Sequelize mod...
Distance calculation - Sequelize model method 1User.getDistance = async (me) => {
2try {
3// Distance algorithm with Earth curvature
4const users = await User.findAll({
5where: Sequelize.where(sequelize.literal(`6371 * acos(cos(radians(${me.latitude})) * cos(radians(latitude)) * cos(radians(${me.longitude}) - radians(longitude)) + sin(radians(${me.latitude})) * sin(radians(latitude)))`),
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.