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
(ns idos | |
(:require [clojure.string :as str] | |
[hickory.select :as s] | |
[hickory.core :as h] | |
[org.httpkit.client :as http] | |
[clojure.tools.logging :refer [debug]]) | |
(:import [javax.net.ssl SSLEngine SSLParameters SNIHostName] | |
[java.net URI URLEncoder])) | |
(defn sni-configure |
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 bb | |
(ns translate | |
(:require [clojure.java.shell :refer [sh]] | |
[clojure.string :as str])) | |
(def langs ["en" "cs" "de" "it" "ro" "hu" "ru"]) | |
(defn translate [s langs] | |
(let [langs-arg (str ":" (str/join "+" langs)) |
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
#!/bin/sh | |
#_( | |
DEPS=' | |
{:deps {org.clojure/java.jmx {:mvn/version,"1.0.0"}}} | |
' | |
exec clojure $OPTS -Sdeps "$DEPS" -M "$0" "$@" | |
) | |
(ns user | |
(:require [clojure.java.jmx :as jmx] |
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
;; babashka script for turning JSON test report into a simple CSV file containing 100 slowest tests | |
;; and their basic stats (duration, number of methods, avg per-method duration). | |
;; | |
;; (JSON report can typically be downloaded by appending `/api/json` to the testReport page URL, for example: | |
;; `https://jenkins.somecompany.io/job/SOME-PROJECT-build/job/master/4892/testReport/api/json` | |
;; | |
;; Usage: | |
;; | |
;; 1) download the json file | |
;; 2) execute `bb simplify_junit_json_testreport.clj input.json output.csv` |
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
#!/bin/sh | |
#_( | |
DEPS=' | |
{:deps {org.clojure/java.jmx {:mvn/version,"1.0.0"}}} | |
' | |
exec clojure $OPTS -Sdeps "$DEPS" -M "$0" "$@" | |
) | |
(ns jmx.core | |
(:require [clojure.java.jmx :as jmx] |
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
git clone [email protected]:brdloush/thymeleaf-perf-issue.git | |
1) 3.0.0-BETA01: | |
mvn -Dthymeleaf=3.0.0.BETA01 clean test | |
------------------------------------------------------- | |
T E S T S | |
------------------------------------------------------- |
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 com.winterbe.react; | |
import jdk.nashorn.api.scripting.NashornScriptEngine; | |
import javax.script.ScriptEngineManager; | |
import javax.script.ScriptException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.Reader; | |
import java.util.List; |