This file contains hidden or 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
import kotlinx.coroutines.* | |
import java.time.Instant | |
import java.time.format.DateTimeFormatter | |
import java.util.concurrent.ExecutorService | |
import java.util.concurrent.Executors | |
fun main(args: Array<String>) { | |
exampleBlocking() | |
exampleBlockingDispatcher() | |
exampleLaunchGlobal() |
This file contains hidden or 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 test; | |
import java.util.Scanner; | |
public class Test2 { | |
public static void main(String[] args) { | |
Scanner keyboard = new Scanner(System.in); |
This file contains hidden or 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.disney.storm; | |
import org.apache.storm.Config; | |
import org.apache.storm.LocalCluster; | |
import org.apache.storm.trident.TridentState; | |
import org.apache.storm.trident.TridentTopology; | |
import org.apache.storm.trident.operation.BaseFunction; | |
import org.apache.storm.trident.operation.TridentCollector; | |
import org.apache.storm.trident.operation.builtin.Count; | |
import org.apache.storm.trident.spout.IBatchSpout; |
This file contains hidden or 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.careercup.linkedlist; | |
public class DoubleLinkedList<AnyType> { | |
private Node<AnyType> nodeFirst; | |
private Node<AnyType> nodeLast; | |
private Node<AnyType> nodeIndex; | |
public DoubleLinkedList() { | |
nodeFirst = null; |
This file contains hidden or 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.careercup.linkedlist; | |
public class CircularDoubleLinkedList { | |
public static class Node<AnyType> { | |
private AnyType data; | |
private Node<AnyType> next; | |
private Node<AnyType> prev; | |
This file contains hidden or 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.careercup.linkedlist; | |
public class CircularLinkedList { | |
public static class Node<AnyType> { | |
private AnyType data; | |
private Node<AnyType> next; | |
public Node( AnyType data ) { |
This file contains hidden or 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 introalgo.chap2; | |
import java.util.Random; | |
public class MergeSort2 { | |
static int[] init( int max ) { | |
int[] data = new int[max]; | |
Random random = new Random(); | |
for (int i = 0; i < data.length; i++) { |
This file contains hidden or 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 introalgo.chap2; | |
import java.util.Random; | |
public class MergeSort1 { | |
static int[] init( int max ) { | |
int[] data = new int[max]; | |
Random random = new Random(); | |
for (int i = 0; i < data.length; i++) { |
This file contains hidden or 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 introalgo.chap2; | |
import java.util.Random; | |
public class InsertSort1 { | |
public static void main( String[] args ) { | |
Random random = new Random(); | |
This file contains hidden or 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
<configuration> | |
<simple-gateway> | |
<drivers> | |
<driver id="driverHttpSender"> | |
<properties> | |
<property name="remoteUri" value="http://remoteuri/path"/> | |
<property name="scriptFile" value="./js/driverHttpSender.js"/> | |
</properties> | |
</driver> | |
<driver id="driverHttpListener"> |
NewerOlder