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 / settings.json
Last active February 29, 2020 23:23
vscode settings
{
"go.buildOnSave": "workspace",
"go.toolsGopath": "/home/nocturnalmonster/go",
"workbench.tree.renderIndentGuides": "always",
"workbench.colorCustomizations": {
// "list.inactiveSelectionBackground": "#C5DEF0",
// "sideBar.background": "#F8F6F6",
// "sideBar.foreground": "#000000",
// "editor.background": "#FFFFFF",
// "editor.foreground": "#000000",
@bbg
bbg / useful-commands.md
Last active February 16, 2020 21:31
Genel olarak sıkca kullandığım unuttuğum zaman hatırlamak için tutacağım komutlar.
  • Docker Container Bash -> sudo docker exec -it container_name /bin/bash
@bbg
bbg / example.html
Created February 9, 2020 13:05
Canvas Stream Capture
<!DOCTYPE html>
<html>
<head>
<title>Parcel Sandbox</title>
<meta charset="UTF-8" />
<style>
div {
display: block;
}
</style>
@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 / files.go
Created February 4, 2020 12:06
file listing in folder
package main
import (
"fmt"
"os"
"path/filepath"
)
func main() {
var files []string
@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 / 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 / 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 / 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 / test.css
Last active September 25, 2019 19:47
test
!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";var n=[],i=t.document,r=Object.getPrototypeOf,a=n.slice,o=n.concat,s=n.push,l=n.indexOf,c={},u=c.toString,d=c.hasOwnProperty,h=d.toString,p=h.call(Object),f={},m=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},g=function(t){return null!=t&&t===t.window},v={type:!0,src:!0,noModule:!0};function y(t,e,n){var r,a=(e=e||i).createElement("script");if(a.text=t,n)for(r in v)n[r]&&(a[r]=n[r]);e.head.appendChild(a).parentNode.removeChild(a)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[u.call(t)]||"object":typeof t}var b=function(t,e){return new b.fn.init(t,e)},w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function x(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!m(t)&&!g(t)&&("array"=