(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
telegraf: | |
image: telegraf | |
restart: always | |
environment: | |
HOST_PROC: /rootfs/proc | |
HOST_SYS: /rootfs/sys | |
HOST_ETC: /rootfs/etc | |
hostname: localhost | |
volumes: | |
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
ObjectMapper mapper = new ObjectMapper(); | |
ArrayNode arrayNode = mapper.createArrayNode(); | |
ObjectNode objectNode1 = mapper.createObjectNode(); | |
objectNode1.put("bookName", "Java"); | |
objectNode1.put("price", "100"); | |
ObjectNode objectNode2 = mapper.createObjectNode(); | |
objectNode2.put("bookName", "Spring"); |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# Every Vagrant virtual environment requires a box to build off of. | |
# Named boxes, like this one, don't need a URL, since the are looked up |
public static void swap1(int a, int b) { | |
System.out.println("The intital value " + a + " " + b); | |
a = a + b; | |
b = a - b; | |
a = a - b; | |
System.out.println("The swapped value " + a + " " + b); | |
} |
public static int addIter(int a, int b) { | |
while (b != 0) { | |
int carry = a & b; | |
a = a ^ b; | |
b = carry << 1; | |
} | |
return a; | |
} |
var Base64 = { | |
// private property | |
_keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", | |
// public method for encoding | |
encode : function (input) { | |
var output = ""; | |
var chr1, chr2, chr3, enc1, enc2, enc3, enc4; | |
var i = 0; |