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
Class CodeGolf.Leet | |
{ | |
ClassMethod Convert(a As %String) As %String | |
{ | |
; your code here | |
Q "" | |
} | |
} |
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
#include <stdio.h> | |
char* DumpHex2(const void* data, size_t size) { | |
const int symbolSize = 100; | |
char* buffer = calloc(10*size, sizeof(char)); | |
char* symbol = calloc(symbolSize, sizeof(char)); | |
char ascii[17]; | |
size_t i, j; | |
ascii[16] = '\0'; |
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
#include %occReference | |
#if $$$comClassDefined("%Library.Object") | |
#define jsonClassIsLatestVersion $classIsLatestVersion | |
//usage: obj.$$$jsonClassIsLatestVersion() | |
#define jsonExtends $extends | |
//usage: {}.$$$jsonExtends(classname) | |
#define jsonFromJSON $fromJSON | |
//usage: {}.$$$jsonFromJSON(string) | |
#define jsonGetIterator $getIterator | |
//usage: obj.$$$jsonGetIterator() |
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
Class Debug.Trace Extends %RegisteredObject | |
{ | |
ClassMethod On(aGN As %String = "") As %Status [ ProcedureBlock = 0 ] | |
{ | |
#define InvalidIO $io'=$p | |
if aGN="" set %TraceLog=$name(^CacheTemp.TraceLog) | |
else set %TraceLog=aGN | |
kill @%TraceLog | |
for i=1:1:$stack-1 { |