Skip to content

Instantly share code, notes, and snippets.

View matematikaadit's full-sized avatar

Adit Cahya Ramadhan matematikaadit

View GitHub Profile
@matematikaadit
matematikaadit / README.md
Last active December 6, 2016 08:27
A collection of books, articles, videos, etc. that explain in detail about a concept/material
@matematikaadit
matematikaadit / README.md
Created November 9, 2016 14:09
Collections of useful (and some useless?) command for Unix/Linux

Image Manipulation

Mostly using imagemagick

Combining Images

montage -mode concatenate -tile COLxROW input1.png input2.png ... output.png
@matematikaadit
matematikaadit / README.md
Last active November 6, 2016 19:04
Instalasi DNSCrypt di Ubuntu 16.04. untuk bypass internet censorship (sensor/censor? internet) di Indonesia

Instalasi DNSCrypt menggunakan dnscrypt-autoinstall, (red: a script for installing and automatically configuring DNSCrypt on Linux-based systems). Diambil dari README.md di repo tersebut, tertanggal 7/11/16. Cek repo asli kalau-kalau ada perubahan.

Berikut petunjuk installasi untuk Ubuntu 16.04:

1. Download Scriptnya

wget https://raw.github.com/simonclausen/dnscrypt-autoinstall/master/dnscrypt-autoinstall
var
a: Array [1..5] of Longint = (1, 2, 3, 4, 5);
b: Array [0..3] of Longint = (7, 8, 9, 0);
procedure write_array(a: Array of Longint; n: Longint);
var i, first, last: Longint;
begin
first := Low(a);
last := Low(a) + n - 1;
for i := first to last do begin
program nimstar;
var
board: Array [1..4] of Longint = (1, 3, 5, 7);
player: Longint;
function is_finished: Boolean;
var
i: Longint;
begin
$ dig www.haskell-id.org +nostats +nocomments +nocmd
; <<>> DiG 9.9.5-W1 <<>> www.haskell-id.org +nostats +nocomments +nocmd
;; global options: +cmd
;www.haskell-id.org. IN A
www.haskell-id.org. 14399 IN CNAME haskell-id.github.io.
haskell-id.github.io. 3599 IN CNAME github.map.fastly.net.
github.map.fastly.net. 26 IN A 103.245.222.133
diff --git a/src/Site.hs b/src/Site.hs
index 07c27e9..309dbc5 100644
--- a/src/Site.hs
+++ b/src/Site.hs
@@ -59,6 +59,12 @@ siteIndex = match "index.html" $ do
>>= relativizeUrls
+cname :: Rules ()
+cname = match "CNAME" $ do
@matematikaadit
matematikaadit / Makefile
Last active August 29, 2015 14:13
Pascal Makefile
SOURCES = $(wildcard *.pas)
ifeq ($(OS), Windows_NT)
REMOVE = del /q
TOUCH = copy /b test +,,
TEST_FN = $(patsubst %.in,%.exe,$1) < $1
EXECUTABLES = $(patsubst %.pas,%.exe,$(SOURCES))
else
REMOVE = rm -f
TOUCH = touch test
TEST_FN = ./$(patsubst %.in,%,$1) < $1
@matematikaadit
matematikaadit / DList.hs
Last active August 29, 2015 14:11
Various Haskell Code
module DList
( DList(..)
, fromList
, toList
, empty
, (|>)
, (|:)
) where
-- Difference List
@matematikaadit
matematikaadit / README.md
Last active August 29, 2015 14:07
lorem-markdownum example

Siapkan: loremipsum.txt

Compile: ghc markdown.hs

Jalankan: ./markdown "."

Contoh output:

# Pellentesque augue vel