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
import express from 'express'; | |
import { ApolloServer, gql } from 'apollo-server-express'; | |
import { Neo4jGraphQL } from "@neo4j/graphql"; | |
import cors from 'cors'; | |
import neo4j from 'neo4j-driver'; | |
const app = express(); | |
const corsOptions = { | |
origin: '*', |
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
# 1. Use the Iron Bank Neo4j 4.4.12 base image | |
FROM registry1.dso.mil/ironbank/opensource/neo4j/neo4j:4.4.12 | |
# 2. Set Neo4j credentials | |
ENV NEO4J_AUTH=neo4j/testMe1234! | |
# (Optional) If you want APOC automatically: | |
# ENV NEO4JLABS_PLUGINS='["apoc"]' | |
# 3. Expose ports (only documents them; no volumes used) |
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
version: '3' | |
services: | |
api: | |
build: api/ | |
command: node server.js | |
ports: | |
- "4000:4000" | |
- "8085:8085" |
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
# Uses the node base image with the latest LTS version | |
FROM registry1.dso.mil/ironbank/opensource/nodejs/debian/nodejs:18.19.1 | |
RUN mkdir -p /home/node/app | |
WORKDIR /home/node/app | |
COPY package.json /home/node/app/ | |
USER node | |
COPY --chown=node:node server.js /home/node/app/ |
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
TThread.CreateAnonymousThread(procedure () | |
var | |
I: Integer; | |
begin | |
TThread.Synchronize(nil, | |
procedure | |
begin | |
{ Update UI components at begining } | |
end |
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
version: "3.7" | |
services: | |
rabbitmqqtt: | |
build: rabbitmq/ | |
ports: | |
- "5672:5672" # AMQP port | |
- "1883:1883" # MQTT port | |
- "15672:15672" # Management UI port | |
volumes: |
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 the official RabbitMQ image as the base image | |
FROM rabbitmq:latest | |
# Set environment variables for configuration | |
ENV RABBITMQ_DEFAULT_USER=utest | |
ENV RABBITMQ_DEFAULT_PASS=test1234 | |
# Add labels for better maintainability | |
LABEL version="1.0" | |
LABEL description="Dockerfile for running RabbitMQ" |
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
unit AsyncThread; | |
interface | |
uses | |
{Delphi} | |
System.SysUtils | |
{Project} | |
; |
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
unit PlatformColorMode; | |
interface | |
uses | |
FMX.Platform | |
{$IFDEF MSWINDOWS} | |
, System.SysUtils, System.Win.Registry, Winapi.Windows | |
{$ENDIF} | |
; |
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
procedure TFrmMain.OnPyModuleLoad(Sender: TObject); | |
begin | |
with Sender as TPythonModule do | |
begin | |
AddDelphiMethod( 'printme', | |
ConsoleModule_Print, | |
'printme(handle,val1,val2,val3)'); | |
end; | |
end; |
NewerOlder