Skip to content

Instantly share code, notes, and snippets.

View amb26's full-sized avatar

Antranig Basman amb26

View GitHub Profile
@amb26
amb26 / fluid-signals.js
Created March 11, 2024 13:41
Spitball implementation of fluid.effect which delays notification until all referenced signals have moved away from undefined
fluid.effect = function (func, ...args) {
return effect( () => {
let undefinedSignals = false;
const designalArgs = [];
for (const arg of args) {
if (arg instanceof preactSignalsCore.Signal) {
const value = arg.value;
designalArgs.push(arg.value);
if (value === undefined) {
undefinedSignals = true;
@amb26
amb26 / imerss-new.js
Created March 2, 2024 23:44
Extremal version of imerss-new.js before destroying models
/*
Copyright 2017-2023 Antranig Basman
Licensed under the Educational Community License (ECL), Version 2.0 or the New
BSD license. You may not use this file except in compliance with one these
Licenses.
You may obtain a copy of the ECL 2.0 License and BSD License at
https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt
*/
/* global Papa, maplibregl, HashTable, preactSignalsCore */
/* eslint-env node */
"use strict";
const linkedom = require("linkedom");
const arrow = `
<div class="long-down-arrow">
<svg width="16" height="111">
<use href="#downarrow" />
@amb26
amb26 / AllSpp.svg
Created December 15, 2023 20:03
Rowan's AllSpp.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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: {