Skip to content

Instantly share code, notes, and snippets.

@aonurdemir
aonurdemir / page.html
Last active June 28, 2020 15:59 — forked from ismasan/sse.go
Example Server Sent Events (SSE) server in Golang
<html>
<head>
<meta charset="UTF-8">
<title>Server-sent events demo</title>
</head>
<body>
<button>Close the connection</button>
<ul>
</ul>
@aonurdemir
aonurdemir / mysql.md
Created September 19, 2019 13:37 — forked from jackblack369/mysql.md
[mysql] #mysql
  • the size of blob column
     A BLOB can be 65535 bytes (64 KB) maximum.
     If you need more consider using:
     a MEDIUMBLOB for 16777215 bytes (16 MB)
     a LONGBLOB for 4294967295 bytes (4 GB).
    
  • join sql
  • string convert to timstamp

Multiple MySQL Versions with Homebrew

For homebrew version 0.9.5.

brew -v # => Homebrew 0.9.5

Install the current version of mysql.

# Install current mysql version

brew install mysql

@aonurdemir
aonurdemir / jquery.fn.serializeObject.js
Last active September 18, 2015 11:36 — forked from i11v/jquery.fn.serializeObject.js
This function extends jQuery by serializeObject method. Argument — form data, returns object.
;(function ($) {
$.fn.serializeObject = function () {
var obj = {},
arr = this.serializeArray();
$.each(arr, function () {
if (typeof obj[this.name] !== "undefined") {
if (!obj[this.name].push) {
obj[this.name] = [obj[this.name]];
}