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 / function.js
Created July 9, 2018 12:58
javascript functions 4 ways
// function declaration
function square(x) {
return x * x;
}
// function expression
const square = function(x) {
return x * x;
}
@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 / vsftpd.conf
Created March 5, 2019 18:36
vsftpd.conf
listen=NO
listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/magento/
ServerName example.com
ServerAlias www.example.com
<Directory /var/www/html/magento/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
@bbg
bbg / sublime.json
Created June 14, 2019 08:50
Sublimetext Preferences
{
"always_show_minimap_viewport": false,
"caret_extra_bottom": 4,
"caret_extra_top": 4,
"caret_extra_width": 2,
"caret_style": "smoth",
"close_windows_when_empty": true,
"color_scheme": "Packages/Theme - Naboo/Monokai Naboo.tmTheme",
"dpi_scale": 1,
"draw_minimap_border": true,
@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"=
@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"