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
<link rel="import" href="../chart-js/chart-js.html"> | |
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> | |
<template> |
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
/*Material card - start*/ | |
.card-item { | |
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15); | |
position: relative; | |
margin-bottom: 30px; | |
} | |
.card-item .chart { | |
padding: 15px; | |
float: left; |
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
$('#normal_select').dropkick({ | |
change: function(){ | |
dk = this.data.elem; | |
dkOptsList = dk.lastChild; | |
addClass( dk, "dk-select-open" + "-down" ); | |
dkOptsList.setAttribute( "aria-expanded", "true" ); | |
} | |
}); |
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
import java.util.Map; | |
import java.util.concurrent.ConcurrentHashMap; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.TimeUnit; | |
public class HelloWorld { | |
static Map<String, AtomicLong> orders = new ConcurrentHashMap<>(); | |
static void processOrders() { |
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
import java.util.Map; | |
import java.util.concurrent.ConcurrentHashMap; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.TimeUnit; | |
import java.util.concurrent.atomic.AtomicLong; | |
public class HelloWorld { | |
static Map<String, AtomicLong> orders = new ConcurrentHashMap<>(); | |
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
function Stars(n) { | |
for(var i=1; i<=n;i++){ | |
var s = ""; | |
for(var j=0; j<n-i;j++) { | |
s += " "; | |
} | |
var st =""; | |
for(var k=0; k<2*i-1;k++) { | |
st +="*"; | |
} |
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
def printstars(rows): | |
for i in range(rows): | |
print ' '*(rows-i-1)+'*'*(2*i+1) |
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 javapractices; | |
public class Stars { | |
public static void main(String[] args) { | |
int numberOfRows = 5; | |
for (int numberOfTimes = 1; numberOfTimes <= numberOfRows ; numberOfTimes++) { | |
for (int numberOfSpaces = 0; numberOfSpaces < numberOfRows - numberOfTimes; numberOfSpaces++) { | |
System.out.print(" "); | |
} | |
for (int numberOfStars = 0; numberOfStars < 2 * numberOfTimes - 1; numberOfStars++) { | |
System.out.print("*"); |
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
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.util.Objects; |
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
Kafka commands in windows | |
Go to Kafka directory | |
Start Kafka | |
.\bin\windows\kafka-server-start.bat .\config\server.properties | |
List Topics |
OlderNewer