Skip to content

Instantly share code, notes, and snippets.

View muhammadyana's full-sized avatar
🏠
Work From Anywhere

Muhammad Yana Mulyana muhammadyana

🏠
Work From Anywhere
View GitHub Profile
@muhammadyana
muhammadyana / .bash_profile
Created September 28, 2017 03:05 — forked from dirkraft/.bash_profile
.bash_profile (for Mac)includes sections for Bash, Homebrew, Ruby, Python, AWS
###############################################################################
# Globals-ish
export VISUAL=vim
export EDITOR=vim
export JAVA_HOME=`/usr/libexec/java_home`
###############################################################################
# Bash
@muhammadyana
muhammadyana / indonesia-map-geojson.json
Last active March 29, 2021 00:33
indonesia map geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@muhammadyana
muhammadyana / indonesia.geojson
Created July 16, 2019 04:21
Indonesia Geojson Data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@muhammadyana
muhammadyana / yogja.gejson
Created July 17, 2019 08:23
jogja.geojson
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"id_wilayah":41864,"nama_wilayah":"KULON PROGO","id_provinsi":41863,"nm_provinsi":"DAERAH ISTIMEWA YOGYAKARTA","id_kabkota":41864,"nm_kabkota":"KULON PROGO","id_kecamatan":null,"nm_kecamatan":null,"id_kelurahan":null,"nm_kelurahan":null,"jumlahPenduduk":445655,"alokasiKursi":40,"tingkatWilayah":2,"bppd":11141,"centroid_x":12300224.1494935,"centroid_y":-873620.4304257927,"depthLevel":10,"kind":null,"koordinat":null,"tipe":null,"flagPemekaran":false,"id_geo_json":221991,"objectid":0,"shape_Leng":null,"shape_Area":null},"geometry":{"type":"Polygon","coordinates":[[[110.27048410475771,-7.705743059594454],[110.26874539778197,-7.70711887303753],[110.26775359485259,-7.707287671288952],[110.26173492522668,-7.704841839978883],[110.25984540644043,-7.705352388701726],[110.2580427001106,-7.705306452230957],[110.25540160709858,-7.706364030675445],[110.25448609006105,-7.70771538615611],[110.25317383350568,-7.708491101782897],[110.25039674501386,-7.7083
@muhammadyana
muhammadyana / indonesia-bank.json
Last active March 26, 2025 19:04
Daftar List Bank Indonesia Beserta Kode Bank (Json)
[
{
"name": "PT. BANK CIMB NIAGA - (CIMB)",
"code": "022"
},
{
"name": "PT. BANK CIMB NIAGA UNIT USAHA SYARIAH - (CIMB SYARIAH)",
"code": "730"
},
{
@muhammadyana
muhammadyana / kualalumpur-map-area.geojson
Created September 11, 2019 07:40
Kuala Lumput Map Area Gejson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@muhammadyana
muhammadyana / kualalumpur-map-area.json
Created September 11, 2019 07:42
kuala lumpur map area json
{
"type": "Kuala Lumpur",
"coordinates": [
[
[
101.6585629090845,
3.113126779727183
],
[
101.65351386912528,
@muhammadyana
muhammadyana / setup-rails-and-react.MD
Last active May 2, 2020 11:46
UBUNTU SETUP FOR RAILS AND REACT

INSTALL ZSH

sudo apt install zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git

echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc

@muhammadyana
muhammadyana / rails-softdeleteable.rb
Created May 9, 2020 07:25
Ruby on Rails Soft Deleteable
module SoftDeletable
extend ActiveSupport::Concern
included do
scope :deleted, ->{ where.not(deleted_at: nil) }
scope :without_deleted, ->{ where(deleted_at: nil) }
scope :with_deleted, ->{ unscope(where: :deleted_at) }
default_scope { without_deleted }
end