Skip to content

Instantly share code, notes, and snippets.

View quocthinhle's full-sized avatar
🗡️
Patience

Le Quoc Thinh quocthinhle

🗡️
Patience
View GitHub Profile
const express = require('express');
const jsonwebtoken = require('jsonwebtoken');
const app = express();
const dbs = [
{
username: 'thinh',
age: 22,
email: 'thinh@gmail.com',
FROM node:alpine
RUN mkdir -p /usr/src/app
COPY . ./usr/src/app
WORKDIR /usr/src/app
RUN npm install
version: '3.8'
services:
neo4j-service:
image: neo4j
restart: always
environment:
- NEO4J_AUTH=neo4j/neo4j1
container_name: neo4j-container
ports:
import java.time.LocalDateTime;
import java.util.concurrent.TimeUnit;
public class ThreadStaticSyncDemo {
public static void main (String[] args) throws InterruptedException {
Thread thread1 = new Thread(() -> {
System.out.println("thread1 before call "+ LocalDateTime.now());
syncMethod("from thread1");