This file contains 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 numpy as np | |
import pydicom | |
# Qui devi mettere il perscorso del file da convertire | |
data = np.fromfile('/Users/fat/Downloads/incollaggio CS01 HP 2023-1-27 12-59-5.uint16_scv', dtype=np.uint16) | |
ds = pydicom.Dataset() | |
ds.PatientName = 'John Doe' |
This file contains 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
Smart Workbench | |
waitingForOperator | |
operatorCheckin -> waitingForOrder | |
waitingForOrder | |
orderCheckin -> waitingForSetup | |
waitingForSetup | |
startSetup -> setup | |
setup | |
endSetup -> waitingForWork | |
waitingForWork |
This file contains 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
for d in $(ls) | |
do | |
(cd "$d" && echo "\n\n*******************************\n$PWD\n*******************************\n\n" && git status) | |
done |
This file contains 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
#!/bin/bash | |
grep --exclude-dir=node_modules -hro 'process\.env.\w*' . | sort -u |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<meta http-equiv='X-UA-Compatible' content='IE=edge'> | |
<title>Page Title</title> | |
<meta name='viewport' content='width=device-width, initial-scale=1'> | |
<link rel='stylesheet' type='text/css' media='screen' href='main.css'> | |
<script type="text/javascript"> | |
console.log("FUNZIONA") |
This file contains 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
#!/bin/sh | |
# Backup mongodb databases running in docker containers | |
export CONTAINER_NAME="my-container" | |
export DATABASE_NAME="my-db" | |
SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}") | |
export BACKUP_LOCATION="${SCRIPT_DIR}/../backups" | |
echo "Saving database backup to directory ${BACKUP_LOCATION}..." |
This file contains 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
#!/bin/sh | |
# Increments the project version (e.g. from 2.3.0 to 2.4.0) | |
# It handles stuff like | |
# * CHANGELOG | |
# * NPM package version | |
# * Git tags | |
# Calculating the new version requires to know which kind of update this is | |
# The default version increment is patch |
This file contains 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
{ | |
"start:prod": "NODE_ENV=production node server.js", | |
"start:dev": "NODE_ENV=development node server.js --debug", | |
"compose:dev:up":"docker-compose -p <MICROSERVICE_NAME> up -d", | |
"compose:dev:down":"docker-compose -p <MICROSERVICE_NAME> down", | |
"compose:prod:up":"docker-compose -p <MICROSERVICE_NAME> -f production-docker-compose.yml up -d", | |
"compose:prod:down":"docker-compose -p <MICROSERVICE_NAME> down" | |
} |
This file contains 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
{ | |
"lint": "npx eslint src test --fix", | |
"commit": "npx git-cz", | |
"changelog" : "rm CHANGELOG.md; npx conventional-changelog -t -i CHANGELOG.md --same-file", | |
"release" : "sh scripts/release.sh" | |
} |
This file contains 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
{ | |
"test": "NODE_ENV=development npx nyc --reporter=text mocha test/**/*.spec.js --check-coverage --lines 80 --exit", | |
"test-ci": "NODE_ENV=testing npx nyc --reporter=text mocha test/**/*.spec.js --check-coverage --lines 80 --exit", | |
"test:integration": "NODE_ENV=testing npx mocha test/integration-tests --exit", | |
"test:unit": "NODE_ENV=testing npx mocha test/unit --exit", | |
} |
NewerOlder