Skip to content

Instantly share code, notes, and snippets.

View DesmondFox's full-sized avatar
🇺🇦

Alex DesmondFox

🇺🇦
  • Dnipro, Ukraine
View GitHub Profile
import { NestFactory } from '@nestjs/core';
import { ExpressAdapter } from '@nestjs/platform-express';
import * as express from 'express';
import * as functions from 'firebase-functions';
import { AppModule } from './src/app.module';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
const expressServer = express();
const createFunction = async (expressInstance): Promise<void> => {
@DesmondFox
DesmondFox / Main.java
Created January 29, 2019 13:27
Using Lock and Condition (fixed)
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
class Account {
private int balance;
@DesmondFox
DesmondFox / Main.java
Last active January 26, 2019 13:13
using Atomic types in Java
package com.company;
import java.util.concurrent.atomic.AtomicInteger;
class Account {
private AtomicInteger balance;
Account(int sum) {
balance = new AtomicInteger(sum);
}
bcm43142-firmware - bluetooth
@DesmondFox
DesmondFox / test
Created January 5, 2018 16:20
test
test