Skip to content

Instantly share code, notes, and snippets.

View muslih's full-sized avatar
a cup of ristretto

Muslih Aqqad muslih

a cup of ristretto
  • Banjarmasin, South Borneo
View GitHub Profile
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
@muslih
muslih / cetak_page_break.html
Last active August 29, 2015 14:00
Cetak dengan page break
<!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;
}
@muslih
muslih / README.md
Created December 7, 2016 08:48 — forked from linjunpop/README.md
Rails flash messages with AJAX requests
@muslih
muslih / Capybara.md
Created April 28, 2017 02:35 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@muslih
muslih / tmux-cheatsheet.markdown
Created September 9, 2017 03:24 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@muslih
muslih / .vimrc
Created October 5, 2017 17:40 — forked from joegoggins/.vimrc
Mac Vim .vimrc file
" 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
@muslih
muslih / tmux.md
Created October 8, 2017 02:51 — forked from andreyvit/tmux.md
tmux cheatsheet

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 / school.csv
Created January 9, 2018 09:48
Id example
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 / segment_a.csv
Last active January 12, 2018 07:31
Segment A
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
user_id,subscription_time
5a17034cf5c0dd0a68000001,3
5a17034cf5c0dd0a6800000c,1
5a1260b3163e0e0121000001,3
5a1260b3163e0e012100000c,3
5a1260b4163e0e0121000017,3
5a1260b4163e0e0121000022,3
5a1260b4163e0e012100002d,3
5a1260b4163e0e0121000038,3
5a1260b4163e0e0121000043,3