Skip to content

Instantly share code, notes, and snippets.

View prashanth-g's full-sized avatar
🎯
Focusing

Prashanth prashanth-g

🎯
Focusing
View GitHub Profile
@prashanth-g
prashanth-g / designer.html
Last active August 29, 2015 14:18
designer
<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>
@prashanth-g
prashanth-g / material.css
Created June 23, 2015 04:29
Material css
/*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;
$('#normal_select').dropkick({
change: function(){
dk = this.data.elem;
dkOptsList = dk.lastChild;
addClass( dk, "dk-select-open" + "-down" );
dkOptsList.setAttribute( "aria-expanded", "true" );
}
});
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() {
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<>();
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 +="*";
}
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("*");
def printstars(rows):
for i in range(rows):
print ' '*(rows-i-1)+'*'*(2*i+1)
@prashanth-g
prashanth-g / KafkaFrequentCommands.txt
Last active August 16, 2019 06:27
Frequent Kafka Commands in Windows
Kafka commands in windows
Go to Kafka directory
Start Kafka
.\bin\windows\kafka-server-start.bat .\config\server.properties
List Topics
@prashanth-g
prashanth-g / Git.java
Created June 10, 2019 06:36 — forked from Crydust/Git.java
run git commands from java
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;