This file contains 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
/* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* Anyone is free to copy, modify, publish, use, compile, sell, or | |
* distribute this software, either in source code form or as a compiled | |
* binary, for any purpose, commercial or non-commercial, and by any | |
* means. | |
* | |
* In jurisdictions that recognize copyright laws, the author or authors | |
* of this software dedicate any and all copyright interest in the |
This file contains 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
;; This is free and unencumbered software released into the public domain. | |
;; | |
;; Anyone is free to copy, modify, publish, use, compile, sell, or | |
;; distribute this software, either in source code form or as a compiled | |
;; binary, for any purpose, commercial or non-commercial, and by any | |
;; means. | |
;; | |
;; In jurisdictions that recognize copyright laws, the author or authors | |
;; of this software dedicate any and all copyright interest in the | |
;; software to the public domain. We make this dedication for the benefit |
This file contains 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
;; (.then (.then (.connect js/SC) | |
;; (fn [] (.get js/SC "/me"))) | |
;; (fn [me] (js/alert (str "Hello, " (.-username me))))) | |
(.. (.connect js/SC) | |
(then #(.get js/SC "/me")) | |
(then #(js/alert (str "Hello, " (.-username %))))) |
This file contains 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
// Usage: | |
// | |
// Run './gradlew tomcatRunWar' | |
// Visit http://localhost:8080/servlet-web-applications/hello | |
buildscript { | |
ext.kotlin_version = '1.1.2' | |
repositories { | |
jcenter() | |
} |
This file contains 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
;; MIT License | |
;; Copyright (c) 2017 Burhanuddin Baharuddin | |
;; Permission is hereby granted, free of charge, to any person obtaining a copy | |
;; of this software and associated documentation files (the "Software"), to deal | |
;; in the Software without restriction, including without limitation the rights | |
;; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
;; copies of the Software, and to permit persons to whom the Software is | |
;; furnished to do so, subject to the following conditions: |
This file contains 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
(ql:quickload :cl-arrows) | |
(ql:quickload :lparallel) | |
(defpackage :euler-playground | |
(:use :cl :lparallel :cl-arrows)) | |
(in-package :euler-playground) | |
(defconstant +limit+ 28123) | |
(defvar *abundant-numbers* '()) |
This file contains 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
package kotlinplayground | |
fun List<Int>.kemudian() = apply { } | |
fun List<Int>.dan() = apply { } | |
fun Int.sehingga(x: Int): IntRange = rangeTo(x) | |
fun diberiSenarai(x : IntRange): List<Int> = x.toList() |
This file contains 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
This is for xfce4-terminal. | |
Shortcuts: | |
Ctrl+Alt+t - Open terminal | |
Ctrl+Shift+t - Open new tab | |
Ctrl+PgUp/PgDown - Switch tab | |
Ctrl+Shift+w - Close tab | |
To make terminal uses 256-color mode, type: | |
export TERM=xterm-256color |
This file contains 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
(defun main () | |
(format t "Hello World!~%")) | |
(save-application "hello-ccl" :toplevel-function #'main :prepend-kernel t) |
OlderNewer