Skip to content

Instantly share code, notes, and snippets.

View flyer1's full-sized avatar
🏠
Working from home

Jon Kroeker flyer1

🏠
Working from home
View GitHub Profile
@Stuff90
Stuff90 / observable-recursive.js
Last active May 7, 2022 02:53
Example of a recursive call to an API using Observables
// Example for article : https://medium.com/@simonb90/appels-api-itératifs-avec-rxjs-a1c2593c558b
/*
* Definition of API method:
* getEntitiesByPage(page: number): Observable<Entity[]>
*/
let iterator = new BehaviorSubject<number>(1);
iterator.mergeMap((i) => {
@tomerd
tomerd / gauge.js
Last active April 21, 2024 21:08
google style gauges using javascript d3.js
function Gauge(placeholderName, configuration)
{
this.placeholderName = placeholderName;
var self = this; // for internal d3 functions
this.configure = function(configuration)
{
this.config = configuration;