-
Float: Floating-point representation (CC-BY-3.0)
-
Text Encoding: What every programmer absolutely, positively needs to know about encodings and character sets to work with text (CC-BY-NC-SA-3.0)
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:
wget https://raw.github.com/simonclausen/dnscrypt-autoinstall/master/dnscrypt-autoinstall
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program nimstar; | |
var | |
board: Array [1..4] of Longint = (1, 3, 5, 7); | |
player: Longint; | |
function is_finished: Boolean; | |
var | |
i: Longint; | |
begin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module DList | |
( DList(..) | |
, fromList | |
, toList | |
, empty | |
, (|>) | |
, (|:) | |
) where | |
-- Difference List |
Siapkan: loremipsum.txt
Compile: ghc markdown.hs
Jalankan: ./markdown "."
Contoh output:
# Pellentesque augue vel