Skip to content

Instantly share code, notes, and snippets.

View bbg's full-sized avatar
👍
"Our true mentor in life is science."   Mustafa Kemal Atatürk

Batuhan Göksu bbg

👍
"Our true mentor in life is science."   Mustafa Kemal Atatürk
View GitHub Profile
@bbg
bbg / main.go
Created June 16, 2018 10:39 — forked from 3n21c0/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@bbg
bbg / README.md
Created July 14, 2018 08:58 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@bbg
bbg / log.go
Created January 8, 2019 15:38 — forked from border/log.go
Log Example For Go
package utils
import (
"log"
"os"
)
var (
Log *log.Logger
)
@bbg
bbg / command
Last active February 4, 2020 12:06 — forked from kpnemo/gist:5847136
aerender.exe example
C:\Users\Administrator\Dropbox\CreaTV\AAE_projects\boris_ae_proj>"c:\Program Files\Adobe\Adobe After Effects CS6\Support Files\aerender.exe" -project "C:\Users\Administrator\Dropbox\CreaTV\AAE_project
s\boris_ae_proj\opener.aep" -comp "opener" -RStemplate "Best Settings" -OMtemplate "H.264" -v "ERRORS_AND_PROGRESS" -mp -output "C:\video2.mp4"
@bbg
bbg / sqlite3gorm.go
Created January 21, 2020 14:19 — forked from mashingan/sqlite3gorm.go
Simple CRUD example working with Gorm
package main
import (
"fmt"
"net/http"
"strconv"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/sqlite"
"github.com/labstack/echo"
@bbg
bbg / main.go
Created January 25, 2020 11:43 — forked from nmerouze/main.go
JSON-API with Go and MongoDB: Part 2
package main
import (
"encoding/json"
"log"
"net/http"
"reflect"
"time"
"github.com/gorilla/context"
@bbg
bbg / 01_basic.go
Created January 28, 2020 13:53 — forked from reagent/00_README.md
Custom HTTP Routing in Go
package main
import (
"io"
"log"
"net/http"
)
func main() {
@bbg
bbg / parse_json_post.go
Created February 7, 2020 19:25 — forked from andreagrandi/parse_json_post.go
Parse a JSON http POST in GoLang
package main
import (
"encoding/json"
"fmt"
"net/http"
)
type test_struct struct {
Test string
@bbg
bbg / grub2_options_update_f.sh
Created February 15, 2020 22:55 — forked from dbfin/grub2_options_update_f.sh
Update grub in Fedora
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
@bbg
bbg / workbench.colorCustomizations.json
Created February 19, 2020 20:18 — forked from jacklorusso/workbench.colorCustomizations.json
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own.
"workbench.colorCustomizations": {
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.
"contrastActiveBorder": "",
"contrastBorder": "",
// Base Colors
"focusBorder": "",
"foreground": "",
"widget.shadow": "",
"selection.background": "",
"descriptionForeground": "",