Skip to content

Instantly share code, notes, and snippets.

@pedrocatre
pedrocatre / markmansonaudiodl.js
Last active December 24, 2020 11:21
download audio content on https://markmanson.net/audio, requires a premium account
// wait function taken from https://stackoverflow.com/a/33414145
function wait(ms) {
var start = new Date().getTime();
var end = start;
while (end < start + ms) {
end = new Date().getTime();
}
}
let count = 0;
@pedrocatre
pedrocatre / dataProvider.xml
Created September 24, 2018 20:44
IntelliJ live template for TestNG data provider
<template name="dataProvider" value="@org.testng.annotations.DataProvider&#10; public java.lang.Object[][] $dataProviderName$() {&#10; return new java.lang.Object[][]{&#10; {$END$}&#10; };&#10; }" description="data provider for test ng" toReformat="true" toShortenFQNames="true">
<variable name="dataProviderName" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>