Skip to content

Instantly share code, notes, and snippets.

View akshaybharambe14's full-sized avatar
🎯
Focusing

Akshay Bharambe akshaybharambe14

🎯
Focusing
View GitHub Profile
package main
import (
"fmt"
"os"
"os/signal"
"sync"
"time"
)
@akshaybharambe14
akshaybharambe14 / vsc-extensions.bat
Created May 22, 2019 17:36
Install popular vs code extensions in one go for windows
code --install-extension christian-kohler.path-intellisense
code --install-extension CoenraadS.bracket-pair-colorizer
code --install-extension DavidAnson.vscode-markdownlint
code --install-extension dbaeumer.vscode-eslint
code --install-extension eamodio.gitlens
code --install-extension esbenp.prettier-vscode
code --install-extension formulahendry.auto-close-tag
code --install-extension formulahendry.code-runner
code --install-extension jspolancor.presentationmode
code --install-extension kenhowardpdx.vscode-gist
@akshaybharambe14
akshaybharambe14 / InstallRedis.txt
Created November 26, 2019 04:39
Steps to install redis on linux machine
‎‎​
@akshaybharambe14
akshaybharambe14 / context_cancel.go
Created January 25, 2020 06:42 — forked from fracasula/context_cancel.go
GoLang exiting from multiple go routines with context and wait group
package main
// Here we show how to properly terminate multiple go routines by using a context.
// Thanks to WaitGroup we'll be able to end all go routines gracefully before the main function ends.
import (
"fmt"
"os"
"context"
"sync"
@akshaybharambe14
akshaybharambe14 / profile.jsonc
Created February 16, 2020 08:40
New Windows Terminal profile settings and key bindings.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles": [
{
// Make changes here to the powershell.exe profile
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
@akshaybharambe14
akshaybharambe14 / digitCount.go
Created March 10, 2020 17:11
Function to count digits in a number in golang
package main
import (
"fmt"
)
func main() {
fmt.Println(CountDigits(1234454666))
}
@akshaybharambe14
akshaybharambe14 / digitCount.go
Created March 10, 2020 17:11
Function to count digits in a number in golang
package main
import (
"fmt"
)
func main() {
fmt.Println(CountDigits(1234454666))
}
package main
import (
"testing"
"github.com/tidwall/sjson"
"github.com/tidwall/gjson"
)
@akshaybharambe14
akshaybharambe14 / main.go
Created April 18, 2020 07:51 — forked from creack/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"strconv"
@akshaybharambe14
akshaybharambe14 / pingPong.go
Created June 10, 2020 05:46
Simple Ping Pong in Go with go routines
package main
import (
"fmt"
"time"
)
func main() {
c := make(chan struct{})