What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-22 13:20:11
creating room in ws node js
const rooms = {}; wss.on("connection", socket => { const uuid = ...; // create here a uuid for this connection const leave = room => { // not present: do nothing if(! rooms[room][uuid]) return; // if the one exiting is t... Add solution -
Python 2022-03-11 14:30:08
pyinstaller pymssql
#To whom might help #I got lots of issues trying to user pymssql with Pyinstaller and #I finally got it right so posting here might help someone #after you install pymssql using pip install pymssql #use this parameters in pyintaller to get it included ... Add solution -
-
TypeScript 2022-02-17 11:50:06
tsconfig configuration
//type config configuration { "compilerOptions": { "outDir": "dist", "target": "ESNext", "module": "CommonJS", "moduleResolution": "node", "esModuleI... Add solution -
SQL 2022-02-15 23:55:05
sql get list of domains and the tables that use them
--Queries an sde-schema geodatabase in SQL Server DECLARE @DOMAIN_NAME NVARCHAR(MAX); SET @DOMAIN_NAME = 'Material'; DECLARE @CLASS_DEFS TABLE ( Name nvarchar(max), Definition XML ) --Insert records to temporary record set INSERT INTO @CLASS_... Add solution -
-
Other 2022-02-09 10:00:30
long query running script
postgres=> SELECT pid, now() - pg_stat_activity.query_start AS duration, query, state FROM pg_stat_activity WHERE (now() - pg_stat_activity.query_start) > interval '5 minutes' and state = 'active' ORDER BY duration DESC NULLS LAST; pid | durat... Add solution