Skip to content

Instantly share code, notes, and snippets.

View jean-merelis's full-sized avatar

Jeandeson O. Merelis jean-merelis

View GitHub Profile
@jean-merelis
jean-merelis / README.md
Created March 5, 2023 04:40 — forked from jose-mdz/README.md
Orthogonal Diagram Connector

Orthogonal Connectors

This algorithm returns the points that form an orthogonal path between two rectangles.

How to Use

// Define shapes
const shapeA = {left: 50,  top: 50, width: 100, height: 100};
const shapeB = {left: 200, top: 200, width: 50, height: 100};
@jean-merelis
jean-merelis / id.kt
Last active July 18, 2021 17:09
ulid - Kotlin implementation
package com.github.jeanmerelis.id
import java.security.SecureRandom
import java.util.*
import kotlin.Comparable as KotlinComparable
class ID : KotlinComparable<ID> {
val mostSignificantBits: Long
val leastSignificantBits: Long
@jean-merelis
jean-merelis / _ng-select-theme.scss
Last active December 8, 2023 16:15
Directive that provides support for MatFormFieldControl (Angular Material) in NgSelect.
// WIP
@import '~@angular/material/theming';
@mixin ng-select-theme($theme) {
$primary: map-get($theme, primary);
$accent: map-get($theme, accent);
$warn: map-get($theme, warn);
$isdark: map-get($theme, is-dark);
$foreground: map-get($theme, foreground);