Skip to content

Instantly share code, notes, and snippets.

Muslih Aqqad muslih

Block or report user

Report or block muslih

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:69e98f1c948da8ae2d0797cbee32e7e6
user_id,subscription_time
5a17034cf5c0dd0a68000001,3
5a17034cf5c0dd0a6800000c,1
5a1260b3163e0e0121000001,3
5a1260b3163e0e012100000c,3
5a1260b4163e0e0121000017,3
5a1260b4163e0e0121000022,3
5a1260b4163e0e012100002d,3
5a1260b4163e0e0121000038,3
5a1260b4163e0e0121000043,3
View segment_a.csv
organization_id school_name school_segment
5796c5a234c0e700030000ba MAN LHOKSEUMAWE Segment A
5796c59434c0e7000300000b MAN 2 BANDA ACEH Segment A
54c9cdbc1a494b0a6200ebd2 MAN MODEL PALANGKARAYA Segment A
5538c1dd87df070003000131 SMPN 228 JAKARTA Segment A
5538c20a87df070003001571 SMPN 1 Baleendah Segment A
5538c20b87df0700030015cd SMPN 1 SOREANG Segment A
5538c3e387df07000300fa2e MTsN 1 BUKITTINGGI Segment A
5538c45987df0700030134e4 SMPN 1 Kotabaru Segment A
5538c46887df070003013d74 SMPN 11 BALIKPAPAN Segment A
View school.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
1877879000000154007
1877879000000154044
1877879000000154009
1877879000000154018
1877879000000468246
1877879000000395479
1877879000000155537
1877879000000156873
1877879000000156891
1877879000000165314
@muslih
muslih / tmux.md
Created Oct 8, 2017 — forked from andreyvit/tmux.md
tmux cheatsheet
View tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

# remap prefix to Control + a
@muslih
muslih / .vimrc
Created Oct 5, 2017 — forked from joegoggins/.vimrc
Mac Vim .vimrc file
View .vimrc
" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" ================ General Config ====================
set number "Line numbers are good
set backspace=indent,eol,start "Allow backspace in insert mode
set history=1000 "Store lots of :cmdline history
set showcmd "Show incomplete cmds down the bottom
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@muslih
muslih / Capybara.md
Created Apr 28, 2017 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet
View Capybara.md

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@muslih
muslih / README.md
Created Dec 7, 2016 — forked from linjunpop/README.md
Rails flash messages with AJAX requests
View README.md
@muslih
muslih / cetak_page_break.html
Last active Aug 29, 2015
Cetak dengan page break
View cetak_page_break.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Cetak dengan page break</title>
<style>
.halaman{
page-break-after: always;
page-break-inside: avoid;
}
View gabung-model.rb
require 'dm-core'
require 'dm-migrations'
DataMapper.setup(:default, "sqlite3:///#{Dir.pwd}/gabung.db")
class Institusi
include DataMapper::Resource
property :id, Serial
property :nama_institusi, String
property :nilai, Integer
You can’t perform that action at this time.