Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Akshay Bharambe akshaybharambe14

🎯
Focusing
View GitHub Profile
View synccondsimple.go
package main
import (
"fmt"
"os"
"os/signal"
"sync"
"time"
)
@akshaybharambe14
akshaybharambe14 / vsc-extensions.bat
Created May 22, 2019
Install popular vs code extensions in one go for windows
View vsc-extensions.bat
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 Nov 26, 2019
Steps to install redis on linux machine
@akshaybharambe14
akshaybharambe14 / context_cancel.go
Created Jan 25, 2020 — forked from fracasula/context_cancel.go
GoLang exiting from multiple go routines with context and wait group
View context_cancel.go
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 Feb 16, 2020
New Windows Terminal profile settings and key bindings.
View profile.jsonc
// 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 Mar 10, 2020
Function to count digits in a number in golang
View digitCount.go
package main
import (
"fmt"
)
func main() {
fmt.Println(CountDigits(1234454666))
}
@akshaybharambe14
akshaybharambe14 / digitCount.go
Created Mar 10, 2020
Function to count digits in a number in golang
View digitCount.go
package main
import (
"fmt"
)
func main() {
fmt.Println(CountDigits(1234454666))
}
View sjsonvsmap_test.go
package main
import (
"testing"
"github.com/tidwall/sjson"
"github.com/tidwall/gjson"
)
@akshaybharambe14
akshaybharambe14 / main.go
Created Apr 18, 2020 — forked from creack/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
View main.go
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"strconv"
@akshaybharambe14
akshaybharambe14 / pingPong.go
Created Jun 10, 2020
Simple Ping Pong in Go with go routines
View pingPong.go
package main
import (
"fmt"
"time"
)
func main() {
c := make(chan struct{})
You can’t perform that action at this time.