Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

Harπ piharpi

🌴
On vacation
View GitHub Profile
@piharpi
piharpi / .block
Created Mar 16, 2020 — forked from tvalentius/.block
HDI Indonesia Choropleth Map
View .block
border: no
license: MIT
View gist:f74cfac10f829821a4f62a398bce179f

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.

View gist:422306424fd363c9d9a2e02f31a49771

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.

@piharpi
piharpi / devise.id.yml
Last active Feb 12, 2021 — forked from freeskys/devise.id.yml
A translation for devise >= 4.7.1 in indonesia
View devise.id.yml
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
id:
devise:
confirmations:
confirmed: "Email anda telah berhasil dikonfirmasi."
send_instructions: "Anda akan menerima sebuah email dengan instruksi bagaimana cara untuk mengkonfirmasikan email anda."
send_paranoid_instructions: "Jika email anda telah terdaftar, anda akan menerima email dengan instruksi bagaimana cara untuk mengkonfirmasikan email anda."
failure:
already_authenticated: "Anda telah masuk."
@piharpi
piharpi / kill-jekyll.md
Created Mar 17, 2019 — forked from lukehedger/kill-jekyll.md
Kill Jekyll server
View kill-jekyll.md

Stopping a Jekyll server with ctrl-z can cause issues as the process is not stopped fully. To kill it:

$ lsof -wni tcp:4000
$ kill -9 <PID of process>

And next time, use crtl-c to stop.