Skip to content

Instantly share code, notes, and snippets.

View eugene-shashkov's full-sized avatar

Yevhenii Shashkov eugene-shashkov

View GitHub Profile
@ezaurum
ezaurum / gin-hello-world.go
Last active December 12, 2023 08:32
go gin / hello world
package main
import (
"github.com/gin-gonic/gin"
"net/http"
)
func main() {
r := gin.Default()
@BR0kEN-
BR0kEN- / string_functions.sh
Created June 8, 2015 11:25
Bash implementation of strpos and substr functions from PHP library
#!/usr/bin/env bash
# @param string $1
# Input string.
# @param int $2
# Cut an amount of characters from left side of string.
# @param int [$3]
# Leave an amount of characters in the truncated string.
substr()
{