Skip to content

Instantly share code, notes, and snippets.

View febritecno's full-sized avatar
🏠
Working from home

Febrian Dwi Putra febritecno

🏠
Working from home
  • linkedin.com/in/febrian-dwi-putra
  • Bojonegoro, indonesia
  • 17:16 (UTC +07:00)
View GitHub Profile
@febritecno
febritecno / .eslintrc
Created February 14, 2018 08:17 — forked from suryakencana007/.eslintrc
eslint for react js
{
"extends": [
"plugin:react/recommended",
"plugin:jest/recommended"
],
"parser": "babel-eslint",
"env": {
"browser": true,
"commonjs": true,
"node": true,
@febritecno
febritecno / tmux-cheatsheet.markdown
Last active February 15, 2018 04:10 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

In tmux, hit the prefix ctrl+b (my modified prefix is ctrl+a) and then:

INGAT

CRTL + B

DULU YAK, sebelum perintah selanjutnya

@febritecno
febritecno / phpcs.xml
Created February 28, 2018 06:21 — forked from paulund/phpcs.xml
PHP PSR-2 CodeSniffer Config for Laravel
<?xml version="1.0"?>
<ruleset name="Laravel Standards">
<!--
The name attribute of the ruleset tag is displayed
when running PHP_CodeSniffer with the -v command line
argument. The description tag below is not displayed anywhere
except in this file, so it can contain information for
developers who may change this file in the future.
-->
@febritecno
febritecno / README.md
Created March 6, 2018 16:30 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@febritecno
febritecno / gitcom.md
Created May 22, 2018 16:15 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init
@febritecno
febritecno / vimrc
Created June 26, 2018 03:36 — forked from suryakun/vimrc
set nocompatible " be iMproved, required
filetype off " required
set exrc
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" ==== PLUGINS ====
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-scripts/L9'
@febritecno
febritecno / JavaScript.sublime-build
Created September 11, 2018 05:18 — forked from corbanb/JavaScript.sublime-build
Sublime Text - Tools > Build System > New Build System
// Sublime Text - Build System for Javascript
{
"cmd": ["node", "$file"],
"selector": "source.js"
}
@febritecno
febritecno / flutter_cheatsheet.md
Created October 22, 2018 16:36 — forked from vmwsree/flutter_cheatsheet.md
Cheat Sheet For Flutter

Container to be full width

constraints: BoxConstraints.expand() so the child a column can have expanded

Outlined Text Box

TextField(
  controller: _usernameController,
  decoration: InputDecoration(
@febritecno
febritecno / css-selectors.md
Created November 23, 2018 00:18 — forked from magicznyleszek/css-selectors.md
CSS Selectors Cheatsheet

CSS Selectors Cheatsheet

Element selectors

Element -- selects all h2 elements on the page

h2 {
    foo: bar;
@febritecno
febritecno / The Rules.md
Created November 23, 2018 00:22 — forked from sebmarkbage/The Rules.md
The Rules of React

The Rules of React

All libraries have subtle rules that you have to follow for them to work well. Often these are implied and undocumented rules that you have to learn as you go. This is an attempt to document the rules of React renders. Ideally a type system could enforce it.

What Functions Are "Pure"?

A number of methods in React are assumed to be "pure".

On classes that's the constructor, getDerivedStateFromProps, shouldComponentUpdate and render.