Skip to content

Instantly share code, notes, and snippets.

View geongeorge's full-sized avatar
👋
Hello

Geon George geongeorge

👋
Hello
View GitHub Profile

+--------+-------+ | Letter | count | +--------+-------+ | ആ | 2707 | | ര | 1796 | | ി | 1759 | | റ | 1115 | | സ | 671 | | ഇ | 3874 | | േ | 809 |

/** @format */
// Flex parent
.flex {
display: flex;
}
.flex-row {
flex-direction: column;
.mt-0, .my-0, .m-0 {
margin-top: 0rem;
}
.pt-0, .py-0, .p-0 {
padding-top: 0rem;
}
.mb-0, .my-0, .m-0 {
margin-bottom: 0rem;
@geongeorge
geongeorge / Tailwind Spacing Helpers New.scss
Created May 15, 2021 12:06
Tailwind Like spacing utility classes
// Generate Margin and Padding helpers similar to Tailwind CSS
// https://tailwindcss.com/docs/margin/
// https://tailwindcss.com/docs/padding/
// Source: https://gist.github.com/geongeorge/c7ce3980cf31c547014d38972580809e
// Generated Output: https://gist.github.com/geongeorge/bfa32854bfe370577335bd9ff4899f14
$spaceamounts: (
(0, 0),
(1, 0.25),
@geongeorge
geongeorge / clean-graphql.js
Created September 18, 2021 15:41
Clean graphql response : Remove edges, node and __typename from graphql response
/**
* Remove edges, node and __typename from graphql response
*
* @param {Object} input - The graphql response
* @returns {Object} Clean graphql response
*/
const cleanGraphQLResponse = function (input) {
if (!input) return null;
const isPrimitiveType = (test) => {
@geongeorge
geongeorge / Inject vConsole.js
Created March 1, 2022 16:03
Inject vConsole to view console on mobile
const script = document.createElement('script')
script.onload = function () {
console.log('Loaded vConsole')
var vConsole = new window.VConsole()
}
script.src = 'https://unpkg.com/vconsole@latest/dist/vconsole.min.js'
console.log('Loading vConsole')
document.head.appendChild(script)