Skip to content

Instantly share code, notes, and snippets.

View szalonna's full-sized avatar
:shipit:

József Sebestyén szalonna

:shipit:
  • Instructure
  • Budapest, Hungary
  • 07:06 (UTC +02:00)
View GitHub Profile
@szalonna
szalonna / repeatUntil.operator.ts
Last active March 11, 2020 11:35
Rerun observable until the response meets a given condition
export type RepeatUntilOperator = <T>(
conditionChecker: (response: T) => boolean,
delayInterval?: number
) => (source$: Observable<T>) => Observable<T>;
/**
* Rerun source observable until the response meets a defined condition.
* @param conditionChecker Function which checks every response for a given condition
* @param delayInterval [Optional] Delay between a response and a new request if condition is not met. Unit: ms. Default: 5000.
*/
@szalonna
szalonna / vscode-styles.css
Last active May 3, 2017 12:32
vscode-styles for operator mono, fira code ligatures, and oceanic next italic
.type.storage,.type.storage.declaration, .storage.class.modifier {
font-family: 'Operator Mono Book';
}
.type.storage.arrow.function {
font-family: 'Fira Code'
}
.token.keyword.operator {
font-family: 'Fira Code'
@szalonna
szalonna / rtree.js
Last active August 29, 2015 14:24 — forked from jr-codes/rtree.js
// Usage:
// Put this in a separate file and load it as the first module
// (See https://github.com/jrburke/requirejs/wiki/Internal-API:-onResourceLoad)
// Methods available after page load:
// rtree.map()
// - Fills out every module's map property under rtree.tree.
// - Print out rtree.tree in the console to see their map property.
// rtree.toUml()
// - Print out Graphviz object which can be visualised e.g. dagred3 (http://cpettitt.github.io/project/dagre-d3/latest/demo/interactive-demo.html)
// - Prints out a UML string that can be used to generate UML