This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit, Input, ElementRef, Renderer2, AfterViewInit, Output, EventEmitter, OnDestroy } from '@angular/core'; | |
import { StackEffects } from './stack-effects'; | |
import { Subject } from 'rxjs'; | |
import { distinctUntilChanged, debounceTime, takeUntil } from 'rxjs/operators'; | |
interface EffectItem { | |
index: number; | |
element: HTMLElement; | |
position: number; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from doctr.io import DocumentFile | |
from doctr.models import ocr_predictor | |
import pandas as pd | |
import numpy as np | |
from fuzzywuzzy import fuzz | |
from pdb import set_trace | |
import json | |
import sys | |
model = ocr_predictor(det_arch='db_resnet50', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--primary-color: #123456; | |
--secondary-color: #654321; | |
} | |
.component { | |
color: var(--primary-color); | |
background-color: var(--secondary-color); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Promise.all(promises).then(values => { | |
// use values | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setSelectionRangeOnInput(el, caretPos) { | |
if (el.createTextRange) { | |
const range = el.createTextRange(); | |
range.move('character', caretPos); | |
range.select(); | |
} else { | |
el.focus(); | |
if (el.selectionStart) { | |
el.setSelectionRange(caretPos, caretPos); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipelines: | |
branches: | |
<BRANCH_NAME>: | |
- step: | |
services: | |
- docker | |
name: Deploy to GKE | |
deployment: staging | |
image: google/cloud-sdk:latest | |
script: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
server { | |
listen 80; | |
server_name localhost; |