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
# .kube contents | |
▶ ls -al /Users/mmoci/.kube/ | |
total 32 | |
drwxr-xr-x 12 mmoci 1668562246 384 Dec 11 10:01 . | |
drwxr-xr-x+ 148 mmoci 1668562246 4736 Mar 25 17:09 .. | |
-rw-r--r--@ 1 mmoci 1668562246 6148 Jan 28 2019 .DS_Store | |
drwxr-xr-x 3 mmoci 1668562246 96 Mar 20 2017 cache | |
-rw------- 1 mmoci 1668562246 5862 Dec 11 10:01 config | |
drwxr-xr-x 3 mmoci 1668562246 96 Nov 26 2018 some-directory |
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
▶ ls -al /Users/mmoci/.kube/ | |
total 32 | |
drwxr-xr-x 12 mmoci 1668562246 384 Dec 11 10:01 . | |
drwxr-xr-x+ 148 mmoci 1668562246 4736 Mar 25 17:09 .. | |
-rw-r--r--@ 1 mmoci 1668562246 6148 Jan 28 2019 .DS_Store | |
drwxr-xr-x 3 mmoci 1668562246 96 Mar 20 2017 cache | |
-rw------- 1 mmoci 1668562246 5862 Dec 11 10:01 config | |
drwxr-xr-x 3 mmoci 1668562246 96 Nov 26 2018 a-directory | |
~ |
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
;; Added by Package.el. This must come before configurations of | |
;; installed packages. Don't delete this line. If you don't want it, | |
;; just comment it out by adding a semicolon to the start of the line. | |
;; You may delete these explanatory comments. | |
(package-initialize) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. |
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 fm.mox.spikes.functionaljava; | |
import fj.F; | |
import fj.data.Reader; | |
import lombok.Value; | |
import lombok.experimental.Tolerate; | |
import org.testng.annotations.BeforeMethod; | |
import org.testng.annotations.Test; | |
import java.math.BigInteger; |
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
/* taken from https://productforums.google.com/d/msg/docs/w4MXeqJaefU/tPjnI2l2TJUJ */ | |
function addHeaderNumbering () { | |
var pars = DocumentApp.getActiveDocument().getBody().getParagraphs(); | |
var counterHeader = [0, 0, 0, 0, 0, 0]; | |
for(var i=0; i<pars.length; i++) { | |
var par = pars[i]; | |
var hdg = par.getHeading(); | |
if (hdg == DocumentApp.ParagraphHeading.HEADING1) { |
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
@Test | |
public void throttlingRxJava() throws Exception { | |
Observable<Long> everySecond = Observable.fromIterable(Arrays.asList(1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L)) | |
.map(aLong -> { | |
try { | |
Thread.sleep(1_000L); | |
} catch (InterruptedException e) { | |
// | |
} |
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
public class ATest { | |
@Test | |
public void test() { | |
JSONObject root = new JSONObject("{}"); | |
List<TestC> list = new ArrayList<>(); | |
TestC testC = new TestC("type", "bucket", "code", null, DateTime.now(), | |
null); | |
TestC testC1 = new TestC("type", "bucket", "code", null, DateTime.now(), | |
null); |
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
@Test | |
public void test() { | |
JSONObject root = new JSONObject("{}"); | |
List<TestC> list = new ArrayList<>(); | |
TestC testC = new TestC("type", "bucket", "code", null, DateTime.now(), | |
null); | |
TestC testC1 = new TestC("type", "bucket", "code", null, DateTime.now(), | |
null); | |
root.put("1", testC); |
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
private static List<ServerAddress> parseServerAddresses(final String serverAddressesString) { | |
final String[] serversSplitOnComma = serverAddressesString.split(","); | |
final List<ServerAddress> serverAddresses = new ArrayList<>(3); | |
for (final String serverAndPort : serversSplitOnComma) { | |
final String[] splitOnColon = serverAndPort.split(":"); |
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
{ | |
"message": "ok", | |
"msgCode": 0, | |
"challengerSquad": { | |
"formation": "F_3_4_3", | |
"gk": { | |
"id": "p55083", | |
"position": "G", | |
"name": "Marco", | |
"lastName": "Sportiello", |
NewerOlder