Skip to content

Instantly share code, notes, and snippets.

View grongierisc's full-sized avatar

Guillaume Rongier grongierisc

View GitHub Profile
@grongierisc
grongierisc / Badges
Last active November 14, 2022 16:30
Codecoverage python iris-dollar
Badges
@grongierisc
grongierisc / download-vs-code-server.sh
Last active November 1, 2022 08:06 — forked from b01/download-vs-code-server.sh
Linux script to download latest VS Code Server, good for Docker (tested in Alpine).
#!/bin/sh
set -e
ARCH="amd64"
U_NAME=$(uname -m)
if [ "${U_NAME}" = "aarch64" ]; then
ARCH="arm64"
fi
/* Copyright (c) 2021 by InterSystems Corporation.
Cambridge, Massachusetts, U.S.A. All rights reserved.
Confidential property of InterSystems Corporation. */
Class PEX.Msg.Message Extends (Ens.MessageBody, %CSP.Page, %XML.Adaptor)
{
Property Base64Image As %Stream.GlobalCharacter;
Property BinaryImage As %Stream.GlobalBinary;
{
"openapi": "3.0.0",
"info": {
"title": "NHSI/E WDS Temp Staffing (Sample Draft API Spec)",
"description": "This is NHSI/E WDS Temp Staffing API Specifications (Sample Draft API Spec)",
"termsOfService": "http://nhsdigital.nhs.uk/",
"contact": {
"name": "NHSI/E WDS Team",
"email": "medi.harsini1@nhs.net"
},
Class User.Util
{
ClassMethod EmptyToNull(dyna As %DynamicObject) As %DynamicObject
{
set iter = dyna.%GetIterator()
while iter.%GetNext(.key , .value ) {
if value = "" {
do dyna.%Set(key,"","null")
}
@grongierisc
grongierisc / PackageName.ClassName.cls
Created April 14, 2021 09:55
Benchmark Routine vs ClassMethod vs Method
/// Description
Class PackageName.ClassName Extends %RegisteredObject
{
/// Description
ClassMethod Test() As %Status
{
Set sc = $$$OK
#define posix ##class(%Library.PosixTime).CurrentTimeStamp()
Set me = ..%New()