Skip to content

Instantly share code, notes, and snippets.

View lomholdt's full-sized avatar

Jonas Lomholdt lomholdt

View GitHub Profile
@lomholdt
lomholdt / gist:52ae29a732ad139ff93901140e014cbb
Created June 13, 2017 07:11
Generate key and csr file for SSL certifikate
openssl req \
-newkey rsa:2048 -nodes -keyout domain.com.key \
-out domain.com.csr
<?php
/**
* Use composers autoload class to load library files
*/
require_once '../vendor/autoload.php';
/**
* AdExchangeSeller Api class
*
public <A, B> B foldLeft(List<A> l, B z, Function2<B, A, B> f) {
List list;
do {
if (Nil..MODULE$.equals((Object)(list = l))) {
B b = z;
return b;
}
if (!(list instanceof .colon.colon)) break;
.colon.colon colon2 = (.colon.colon)list;
Object h = colon2.head();