Skip to content

Instantly share code, notes, and snippets.

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

Gilang gizipp

🏠
Working from home
View GitHub Profile
@gizipp
gizipp / elixir_phx_101.md
Last active December 4, 2017 02:03
Elixir Phoenix 101

Hello, This is Elixir Phoenix 101!


What is Elixir?

see Wikipedia

Elixir is a functional, concurrent, general-purpose programming language that runs on the Erlang virtual machine (BEAM).

It is used by companies such as E-MetroTel, Pinterest and Moz, and also used for web development.

@gizipp
gizipp / minimum-lovable-product.md
Last active December 11, 2017 03:21
Minimum Lovable Product

Minimum Lovable Product

Let's deliver a product that users fall in love with. ;)

https://github.com/src-d/proteus
```
//proteus:generate
type User struct {
Model
Username string
}
type Model struct {
@gizipp
gizipp / kriuk.txt
Last active February 28, 2018 04:08
Kriuk
Punk apa yang yg bisa buat makan? Rumah makan padang Punk-uan bundo!
@gizipp
gizipp / gist:399f104f54bcaf708333ae769af3de5f
Created January 2, 2019 10:55
Install Erlang and Elixing via ASDF
Install Erlang and Elixing via ASDF https://github.com/asdf-vm/asdf
# Erlang
asdf plugin-add erlang
asdf install erlang 21.2
asdf global erlang 21.2
# Elixir
asdf plugin-add elixir
asdf install elixir 1.7.4-otp-21
@gizipp
gizipp / gist:4c6093e3851c2c6233ab57124e293915
Created February 21, 2019 09:17
Photography Call For Entries
https://visitcenter.org/call-for-entries/
https://jipfest.com/call-for-submissions/
@gizipp
gizipp / reset-database-pg-on-heroku.md
Created February 21, 2020 11:24
[Rails] How to reset PG Database on Heroku?

How to reset PG Database on Heroku?

TL;DR

heroku restart && heroku pg:reset DATABASE && heroku run rake db:migrate

Steps

  • Step 1: heroku restart
  • Step 2: heroku pg:reset DATABASE (no need to change the DATABASE)
@gizipp
gizipp / status-code-explained.md
Created February 27, 2020 00:46
Status Code Explained

Status Code Explained

  • 200 – OK Everything is working

  • 201 – CREATED New resource has been created

  • 204 – NO CONTENT

@gizipp
gizipp / sandi-metz-rules-for-developers.md
Created March 19, 2020 08:56
Sandi Metz' Rules For Developers
  1. Classes can be no longer than one hundred lines of code.
  2. Methods can be no longer than five lines of code.
  3. Pass no more than four parameters into a method. Hash options are parameters.
  4. Controllers can instantiate only one object. Therefore, views can only know about one instance variable and views should only send messages to that object (@object.collaborator.value is not allowed).

https://yiming.dev/blog/2017/08/23/sandi-metzs-rules-for-oop/ https://thoughtbot.com/blog/sandi-metz-rules-for-developers