Skip to content

Instantly share code, notes, and snippets.

View MuhammadFariMadyan's full-sized avatar
🔥
Coding from Home

Fari MuhammadFariMadyan

🔥
Coding from Home
View GitHub Profile
@MuhammadFariMadyan
MuhammadFariMadyan / 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
* fari.msenju@gmail.com
*/
import 'dart:io';
class User {
String nama;
int saldo;
@MuhammadFariMadyan
MuhammadFariMadyan / 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)

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
@MuhammadFariMadyan
MuhammadFariMadyan / 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
@MuhammadFariMadyan
MuhammadFariMadyan / 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') || '',