Hierarchical data metrics that allows fast read operations on tree like structures.
Based on Left and Right fields that are set during tree traversal. When entered into node value is set to it's Left, when exiting node value is set to it's Right.
Hierarchical data metrics that allows fast read operations on tree like structures.
Based on Left and Right fields that are set during tree traversal. When entered into node value is set to it's Left, when exiting node value is set to it's Right.
// based on Алексей Сердюков's answer at Stackoverflow (https://stackoverflow.com/a/50837219/1143392) | |
import { | |
Directive, | |
Input, | |
OnDestroy, | |
OnInit | |
} from '@angular/core'; | |
import { MediaObserver } from '@angular/flex-layout'; | |
import { MatGridList } from '@angular/material'; |
const { rxObserver, palette } = require('api/v0.3'); | |
const { merge, timer, Subject, from, empty } = require('rxjs'); | |
const { filter, startWith, bufferToggle, take, flatMap, zip, distinctUntilChanged, share, skip, map, windowToggle } = require('rxjs/operators'); | |
// stream for coloring | |
const palette$ = from(palette); | |
const source$ = timer(0, 10).pipe( | |
take(10), | |
// get color for each item |
--select ARRAY(select distinct unnest(array_agg(category.arr))) | |
select ARRAY(select distinct unnest(array[array[1,2,3], array[4,2,8]])) |
import EXIF from 'exif-js'; | |
const hasBlobConstructor = typeof (Blob) !== 'undefined' && (function checkBlobConstructor() { | |
try { | |
return Boolean(new Blob()); | |
} catch (error) { | |
return false; | |
} | |
}()); |
#! /bin/bash | |
# [get_golang.sh](https://gist.github.com/n8henrie/1043443463a4a511acf98aaa4f8f0f69) | |
# Download latest Golang release for AMD64 | |
# https://dl.google.com/go/go1.10.linux-amd64.tar.gz | |
set -euf -o pipefail | |
# Install pre-reqs | |
sudo apt-get install python3 git -y | |
o=$(python3 -c $'import os\nprint(os.get_blocking(0))\nos.set_blocking(0, True)') |
If you're developing an application based on React it can be helpful if you don't need to develop all the basic UI components yourself. Here you can find a list with various components, component libraries and complete design systems developed with and for React.
As the list got longer and longer I thought it would be better to have a "real" site for it.
## | |
## How to install mcrypt in php7.2 / php7.3 | |
## Linux / MacOS / OSX | |
## | |
## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/ | |
# |
from setuptools import find_packages, setup | |
from package import Package | |
setup( | |
author="Ami Mahloof", | |
author_email="[email protected]", | |
packages=find_packages(), | |
include_package_data=True, | |
cmdclass={ | |
"package": Package |
export function secondsToISOString(seconds) { | |
const date = new Date(seconds * 1000); | |
return date.toISOString(); | |
} |