Skip to content

Instantly share code, notes, and snippets.

View ashishmaurya's full-sized avatar
🏠
Working from home

ashish maurya ashishmaurya

🏠
Working from home
View GitHub Profile
@ashishmaurya
ashishmaurya / kafka-ui.yaml
Created June 27, 2021 18:46
Installing Kafka UI on local k8s cluster
apiVersion: apps/v1
kind: Deployment
metadata:
name: kafka-ui-deployment
labels:
app: kafka-ui
# namespace: mstore
spec:
replicas: 1
selector:
@ashishmaurya
ashishmaurya / zookeeper.yaml
Created June 27, 2021 18:37
Installing zookeeper on kubernetes cluster
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: zookeeper
name: zookeeper
spec:
replicas: 1
selector:
matchLabels:
@ashishmaurya
ashishmaurya / main.go
Last active August 20, 2020 10:25
Firebase Short link Creation - GO
package main
import (
"bytes"
"encoding/json"
"net/http"
"os"
)
//FirebaseShortLinkResponse **
@ashishmaurya
ashishmaurya / main_single.go
Created August 17, 2020 13:49
Open Directory Downloader in GoLang
package main
import (
"bufio"
"io"
"log"
"net/http"
"net/url"
"os"
"path"
@ashishmaurya
ashishmaurya / main.go
Last active August 17, 2020 14:52
Open Directory Downloader in GoLang with multi-threading
package main
import (
"bufio"
"flag"
"io"
"log"
"net/http"
"net/url"
"os"
@ashishmaurya
ashishmaurya / classAudioFileModified.php
Last active August 17, 2020 05:14
Generate Waveform from music file with PHP
<?php
//Refer : https://github.com/ashishmaurya/waveform-using-php/blob/master/classAudioFileModified.php
//For full class file
function getVisualizationSVG($output) {
$width = $this->visual_width;
$height = $this->visual_height;
$height_channel = $height / $this->wave_channels;
if ($this->wave_filename <> "" && $this->wave_id == "RIFF" && $this->wave_type == "WAVE" && ($this->wave_channels >= 1 && $this->wave_channels <= 2) && $this->wave_bits % 8 == 0) {
$file = fopen($this->wave_filename, "r");
@ashishmaurya
ashishmaurya / index.js
Created August 16, 2020 06:30
Create Piano Tile Game in Web
var config = {
width:300,
height:600,
rows:6,
cols:4,
speed:5,
interval:20
}
config.height = window.innerHeight-2;
config.defaultSpeed = config.speed;
@ashishmaurya
ashishmaurya / index.css
Created August 16, 2020 06:29
Create Piano Tile Game in Web
body{
margin: 0px;
}
.canvasContainer{
margin: 0 auto;
text-align: center;
position: relative;
font-size: 0px;
}
.canvasContainer canvas{
@ashishmaurya
ashishmaurya / index.html
Created August 16, 2020 06:28
Create Piano Tile Game in Web
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Games - Piano Tiles</title>
<link rel="stylesheet" href="index.css">
<script src="index.js"></script>
</head>
//Package name
package main
//External packages used in program
import "fmt"
//Entry point into application
func main() {
fmt.Println("Hello, World!!")
}