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
{ | |
"kamus": { | |
"adalah":"اداله", "ambil":"امبيل", "asal":"اصل", "lancar":"لنچر", "majlis":"مجليس", | |
"bahasa":"بهاس", "bahawa":"بهاوا", "banyak":"باڽق", "bagai":"باݢاي", "bebas":"بباس", | |
"berita":"بريتا", "biografi":"بيوݢرفي", "boleh":"بوليه", "buah":"بواە", "bukan":"بوکن", | |
"belum":"بلوم", | |
"dalam":"دالم", "dan":"دان", "dapat":"داڤت", "dari":"دري", "datang":"داتڠ", | |
"dengan":"دڠن", "di":"د", "dikit":"ديکيت", "dia":"دي", | |
"ensiklopedia":"اينسيکلوڤيديا", | |
"falsafah":"فلسفه", "filem":"فيلم", |
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
System.out.println("Hello world!") |
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
JAR=xmlformatter.jar | |
XmlFormatter.class: XmlFormatter.java | |
javac XmlFormatter.java | |
$(JAR): XmlFormatter.class formatter.xlst | |
jar --create --file $(JAR) --main-class=XmlFormatter XmlFormatter.class formatter.xlst | |
cfg: $(JAR) | |
java -agentlib:native-image-agent=config-output-dir=cfg -jar $(JAR) test.xml |
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
///usr/bin/env java $0 $@; exit | |
public class hello { | |
public static void main(String[] args) { | |
System.out.println("I'm a script! Or am I? 😉"); | |
} | |
} | |
/* to run it, execute a follows: | |
$ ./hello.java | |
*/ |
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
<project name="test" xmlns:ivy="antlib:org.apache.ivy.ant"> | |
<property name="src.dir" value="src/main/java" /> | |
<property name="build.dir" value="build" /> | |
<property name="classes.dir" value="build/main/classes" /> | |
<target name="resolve"> | |
<ivy:cachepath pathid="lib.path.id" /> | |
<echo file="classpath.properties">compile.classpath=${toString:lib.path.id}</echo> | |
</target> |
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
<script> | |
const ONE_DAY = 24*60*60*1000; | |
const DAYS = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]; | |
export | |
let date, month, year; | |
function getCalendar(year, month) { | |
var first = new Date(year, month); | |
var cells = []; |
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
function $(a,b) { | |
if (b === undefined) | |
return document.querySelector(a); | |
return a.querySelector(b); | |
} | |
function $$(a,b) { | |
if (b === undefined) | |
return document.querySelectorAll(a); | |
return a.querySelectorAll(b); |