Skip to content

Instantly share code, notes, and snippets.

View mfarim's full-sized avatar
πŸ”₯
Pro Work From Anywhere

M Fari Madyan mfarim

πŸ”₯
Pro Work From Anywhere
View GitHub Profile
@mfarim
mfarim / tugas1.dart
Created August 28, 2019 17:39
Aplikasi ATM sederhana yang dapat dijalankan melalui Terminal atau Command Prompt (CMD) menggunakan bahasa Dart.
/*
* Aplikasi ATM sederhana
* [email protected]
*/
import 'dart:io';
class User {
String nama;
int saldo;
@mfarim
mfarim / gist:1095ec63c07d186a88eb6b9fabbe7fbb
Created June 23, 2019 13:45 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:

Folder Structure

Motivations

  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
@mfarim
mfarim / install_nodejs_and_yarn_homebrew.md
Created June 23, 2019 13:43 — forked from nijicha/install_nodejs_and_yarn_homebrew.md
Install NVM, Node.js, Yarn via Homebrew

Install NVM, NodeJS, Yarn via Homebrew

Prerequisites

  • Homebrew should be installed (Command line tools for Xcode are included).

Getting start

Install NVM and NodeJS

  1. Install nvm via Homebrew
@mfarim
mfarim / js-terms.md
Created June 23, 2019 13:40 — forked from AllThingsSmitty/js-terms.md
10 terms to help you better understand JavaScript

10 JavaScript Terms You Should Know

From currying to closures there are quite a number of special words used in JavaScript. These will not only help you increase your vocabulary but also better understand JavaScript. Special terms are normally found in documentation and technical articles. But some of them like closures are pretty standard things to know about. Knowing what the word itself means can help you know the concept it's named for better.

  1. Arity
  2. Anonymous
  3. Closure
  4. Currying
  5. Hoisting
  6. Mutation
@mfarim
mfarim / App.js
Created August 1, 2018 06:32 — forked from sconstantinides/App.js
Sample Firebase task app
import React, { Component } from 'react';
import firebase from '@firebase/app';
import firestore from './firestore'; // Code: https://gist.github.com/sconstantinides/546a48ba183b1234f750ca6261440199
class App extends Component {
constructor(props) {
super(props);
this.state = {
userId: localStorage.getItem('userId') || '',