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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Biome - Full Lint", | |
"type": "shell", | |
"command": "yarn", | |
"args": [ | |
"biome", | |
"lint", |
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
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System; | |
using System.Text.RegularExpressions; | |
public class Program | |
{ | |
public void Main(string[] args) | |
{ | |
string jsonString = @"{""people"":[{ |
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
/** | |
* Convert a flat list into a 2D Array. | |
* | |
* @param list Flat list. | |
* @param elementsPerSubArray Size of inner arrays. | |
* @returns 2D array of the given size.. | |
*/ | |
private listToMatrix<T>(list: T[], elementsPerSubArray: number): T[][] { | |
const matrix: T[][] = []; | |
let index; |
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
// Converts nested objects and arrays into camelCase, when they were PascalCase to start with | |
var convert2Camel = function(obj) { | |
if (Object.prototype.toString.call(obj) === '[object Array]') { | |
var a = []; | |
obj.forEach(function(element) { | |
a.push(convert2Camel(element)); | |
}); | |
return a; | |
} else { | |
if (typeof obj == 'object') |
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
Imports System | |
Public Module Module1 | |
Public Sub Main() | |
Console.WriteLine(Decimal.Parse("-2")) | |
Console.WriteLine(MakeDoubleGreatAgain("-3.33")) | |
End Sub | |
'Parse assorted cutlures for doubles | |
Public Function MakeDoubleGreatAgain(value As String) As Double |
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
// Used as a UI indicaiton that a feature is not complete. Warns to log. | |
var TODO = function () { | |
var callerName = ""; | |
try { //noinspection ExceptionCaughtLocallyJS | |
throw new Error(); } | |
catch (e) { callerName = /TODO.+\n\s+at (.+) \(/.exec(e.stack)[1]; } | |
console.warn('Feature not complete:', callerName); | |
}; |
This project was created to allow for easy updating of our publicly documented API methods. It uses its own API to handle the maintenance of documentation so it is affectionatly refered to by me as MetaDocs.
- API docs are all saved in their own .JSON files in the configured location.
- Dispaly pages are generated on the fly from templates using .JSON data.
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
- <CaptureWorkflowLog xmlns="http://schemas.datacontract.org/2004/07/Square9.Objects.XMLImport" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> | |
- <Items> | |
- <CaptureWorkflowLogEntry> | |
<BatchId>4</BatchId> | |
- <History> | |
- <CaptureWorkflowLogEntryItem> | |
<DocItemId /> | |
<Message>Importing file into batch: E:\Scans\Med Tech 1\MEDTECH1.pdf</Message> | |
<MessageCategory>Process</MessageCategory> | |
<Step>File Import</Step> |
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
$("htmltag[data-field='" + current +"']"); | |
$("[data-api='Foobar'][data-field='name']").text(); |
NewerOlder