Skip to content

Instantly share code, notes, and snippets.

@Leo40Git
Leo40Git / mkjre.bat
Last active November 7, 2021 20:33
Script to create JRE from Maven-style JAR folder
@echo off
setlocal EnableDelayedExpansion
:: these extra dependencies aren't picked up by jdeps
:: jdk.zipfs is required, presumably to access resources embedded in the JAR?
:: jdk.crypto.ec is required for internet communication with SSL
set EXTRA_DEPS=jdk.zipfs,jdk.crypto.ec
set JDK_PATH=%~1
set OUT_PATH=%~2
@QuantumGhost
QuantumGhost / example.puml
Last active March 23, 2024 22:39
A simple template for PlantUML to draw ER diagram.The basic idea comes from http://plantuml.sourceforge.net/qa/?qa=331/database-modeling
@startuml
' uncomment the line below if you're using computer with a retina display
' skinparam dpi 300
!define Table(name,desc) class name as "desc" << (T,#FFAAAA) >>
' we use bold for primary key
' green color for unique
' and underscore for not_null
!define primary_key(x) <b>x</b>
!define unique(x) <color:green>x</color>
!define not_null(x) <u>x</u>
@TehNut
TehNut / CurseAsMaven
Created April 8, 2015 18:22
Curse as Maven
repositories {
maven {
name = "CurseForge"
url = "https://minecraft.curseforge.com/api/" + project.curseforge_key
}
}
^^^ THIS DOES NOT GO IN BUILDSCRIPT, IT GOES ABOVE apply plugin: 'forge' ^^^
Then add this to dependencies
(ns async-test.timeout.core
(:require [cljs.core.async :refer [chan close!]])
(:require-macros
[cljs.core.async.macros :as m :refer [go]]))
(defn timeout [ms]
(let [c (chan)]
(js/setTimeout (fn [] (close! c)) ms)
c))