Skip to content

Instantly share code, notes, and snippets.

View gtkatakura's full-sized avatar

gtkatakura

View GitHub Profile
@gtkatakura
gtkatakura / introrx.md
Created July 5, 2016 00:49 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@gtkatakura
gtkatakura / bubble-grid-2017.css
Created November 15, 2017 04:26 — forked from OviOvocny/bubble-grid-2017.css
Modern impractical stylesheet for old-style AniList lists.
{ANILIST-COVERS=LRG}
{ANILIST-POPUP}
body {
background-color: hsl(217, 23%, 16%);
}
/**/
@gtkatakura
gtkatakura / CardLitev45.css
Created November 15, 2017 04:26 — forked from OviOvocny/CardLitev45.css
Superovoce is at it again!
/* ANILIST MODIFIERS */
{ANILIST-COVERS=LRG}
/* ACTUAL CASCADING STYLE SHEETS -- Explore it all to find DISABLED FEATURES you might want enabled (or not, what do I know) */
@import "http://fonts.googleapis.com/css?family=Maven+Pro"; /* Custom font, feel free to delete if you don't want it */
body {
background-color: #333;
{ANILIST-COVERS=LRG}
{ANILIST-POPUP}
body {
background: #222;
}
.list_wrapper {
margin-left: 0;
max-width: 100%;
#container-main {perspective: 1px; height: 100vh; margin-left: -100px; padding-left: 150px; overflow-x: hidden; overflow-y: auto;}
#container-main::before {
content: "";
display: block;
width: 100%;
margin-left: -100px;
position: absolute;
background: url(http://40.media.tumblr.com/fbba87d327660462c8e834e164c526ca/tumblr_mzdgx16SIq1qfu9ibo3_540.jpg) top;
@gtkatakura
gtkatakura / toResponseBy.js
Created March 16, 2018 03:06 — forked from gtkatakura-bysoft/toResponseBy.js
lodash/fp + mapValues + toResponseBy = toMovie
import _ from 'lodash/fp'
const response = {
"Title": "Pulp Fiction",
"Year": "1994",
"Rated": "R",
"Released": "14 Oct 1994",
"Runtime": "154 min",
"Genre": "Crime, Drama",
"Director": "Quentin Tarantino",
/*
your obj pointer came in the first position of the stack
so you will load it on a register
*/
movl (%esp), %eax ;
/*
then you want to do obj.a += 6, if we suppose
that we're talking about records not dictionaries

Folder Structure

Please note

While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.

Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.

@gtkatakura
gtkatakura / using-uuid-as-pk.md
Created December 30, 2020 10:31 — forked from rponte/using-uuid-as-pk.md
Não use UUID como PK nas tabelas do seu banco de dados

Pretende usar UUID como PK em vez de Int/BigInt no seu banco de dados? Pense novamente...

TL;TD

Não use UUID como PK nas tabelas do seu banco de dados.

Um pouco mais de detalhes