Skip to content

Instantly share code, notes, and snippets.

View ram-prasad-1's full-sized avatar
🎯
Focusing

Ram Prasad Deora ram-prasad-1

🎯
Focusing
View GitHub Profile
@ram-prasad-1
ram-prasad-1 / nextjs.md
Created February 19, 2021 13:19 — forked from naoisegolden/nextjs.md
SSR and Code-splitting in Stuart FE apps

Next.js compared to our and other solutions

Figuring out how Next.js handles code splitting and routing so that we can decide if it fits our needs or if we can take inspiration from it for our own internal solution.

SSR

SSR with Next.js

There is no special documentation about Next.js SSR, since it's supported out of the box and handled transparently.

@ram-prasad-1
ram-prasad-1 / vertical-rhythm-mixin.scss
Created May 13, 2020 15:59 — forked from brendansparrow/vertical-rhythm-mixin.scss
A Sass mixin for maintaining vertical rhythm
$font-size: 16px;
$line-height-ratio: 1.5;
$line-height-base: 1rem * $line-height-ratio;
// base line-height = 16px * 1.5 = 24px
html {
font-size: $font-size;
line-height: $line-height-ratio;
background: url(http://basehold.it/i/24);
}

Basic processing steps:

    private fun runTextRecognition(bitmap: Bitmap) {
        val image = FirebaseVisionImage.fromBitmap(bitmap)
        val recognizer = FirebaseVision.getInstance().onDeviceTextRecognizer

        recognizer.processImage(image).addOnSuccessListener {
            processTextRecognitionResult(it)
            isOcrImageFlowLocked = false
@ram-prasad-1
ram-prasad-1 / gist:f8adad2d4fa6555f9232deb3c044ee95
Created September 27, 2019 14:08 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch