Skip to content

Instantly share code, notes, and snippets.

View amb26's full-sized avatar

Antranig Basman amb26

View GitHub Profile
@amb26
amb26 / testspeed2.txt
Created September 20, 2023 10:01
Testing time and space consumption of allocating JSON and DOM nodes - with 0 properties each
"use strict";
const testDOMSpeed = function (its) {
const array = [];
for (let i = 0; i < its; ++i) {
const element = document.createElement("div");
array.push(element);
}
return array;
};
@amb26
amb26 / testSpeed.txt
Created September 20, 2023 09:57
Testing time and space consumption of allocating JSON and DOM nodes - with 2 properties each
Program:
"use strict";
const testDOMSpeed = function (its) {
const array = [];
for (let i = 0; i < its; ++i) {
const element = document.createElement("div");
element.setAttribute("t1", "" + i);
element.setAttribute("t2", "" + i);
#include "CoreTypes.h"
#include "Misc/AssertionMacros.h"
#include "Containers/Array.h"
#include "Math/UnrealMathUtility.h"
/**
* Template class TRingBuffer
*
* An expanding ring buffer with client specifiable maximum capacity.
*

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog. Infusion from v2.0.0 onwards adheres to Semantic Versioning.

[Unreleased]

Added

IMERSS Bioinformatics Working Group Data Archive, Pipelines and Visualisations

This repository houses the working data of the IMERSS biodiversity informatics working group together with algorithms for transforming, reconciling and projecting observation and checklist data into formats suitable for publication, submission to global authorities such as GBIF, as well as map-based and graphical visualisations.

Data Archive

All data is stored in CSV files in subdirectories under data although some unprocessed checklist data is a

{
defaultColor: [35,35,35],
//baseDirectory: "%bagatelle/data/Xetthecum/qgis2web_2022_02_12-21_38_21_508226/data",
baseDirectory: "%bagatelle/data/Xetthecum/qgis2web_2022_03_11-10_39_28_717315/data",
CSVs: {
sensitiveEcosystems: {
path: "%bagatelle/data/Xetthecum/Sensitive Ecosystems.csv"
}
},
communities: {
@amb26
amb26 / Edwards reclamation.txt
Created January 25, 2022 21:00
Jonathan Edwards' example from his Kent talk of reclaiming a value from the interior of a (materialised) function
Glad to see one of my pet peeves strike a chord. I've always wanted functions to have multiple return values like they have multiple arguments, but all of the solutions I've seen break every calling site when you go from one to two return values. Here is the bit I wrote in the doc:
## Associated results
The result of a code block is the final value of the subject. However it is often desirable to return extra results from a function call. For example, integral division would like to return not only the integral ratio but the fractional remainder as well. This is done as follows:
```
integral-divide ()= 1 do{
divisor: 1
numerator = $
:= numerator / divisor floor()
@amb26
amb26 / README.md
Last active January 17, 2022 12:24

IMERSS Bioinformatics Working Group Data Archive, Pipelines and Visualisations

This repository houses the working data of the IMERSS biodiversity informatics working group together with algorithms for transforming, reconciling and projecting observation and checklist data into formats suitable for publication, submission to global authorities such as GBIF, as well as map-based and graphical visualisations.

Data Archive

All data is stored in CSV files in subdirectories under data although some unprocessed checklist data is a

We Count Covid Data Monitor

This package implements a map and query-based visualisation of data on Ontario COVID-19 assessment centre locations for project We Count.

It includes built-in data that merges the ODS assessment centre locations dataset with a mocked accessibility dataset for these assessment centres to visualize at [data/merged/output.csv].

Install

@amb26
amb26 / Vol I.md
Last active October 12, 2021 11:40

Galiano Data Paper Vol I - Marina Animalia

This file documents the full data pipeline necessary to reproduce the data pipeline responsible for exporting catalogue and summary data for Volume I of the Galiano Data Paper, given the raw upstream catalogue data and curated summaries as input.

Firstly, clone and install this repository using instructions listed in README.md, reproduced here: