Skip to content

Instantly share code, notes, and snippets.

View sergeyklay's full-sized avatar

Serghei Iakovlev sergeyklay

View GitHub Profile
@sakama
sakama / MySQL5.6のFulltextIndexのベンチマーク結果.md
Created July 22, 2014 10:59
MySQL5.6のFulltextIndexのベンチマーク結果

MySQL5.5

text型

mysql> explain select * from restaurants where name like "あ%";
+----+-------------+-------------+------+---------------+------+---------+------+--------+-------------+
| id | select_type | table       | type | possible_keys | key  | key_len | ref  | rows   | Extra       |
+----+-------------+-------------+------+---------------+------+---------+------+--------+-------------+
@FeodorFitsner
FeodorFitsner / appveyor.yml
Created April 16, 2014 03:08
appveyor.yml reference
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#

THIS DOCUMENT

IS OUT OF

DATE

C++ Coding Standards Part 0: Automated Code Analysis

Automated analysis is the main advantage to working with a modern statically typed compiled language like C++. Code analysis tools can inform us when we have implemented an operator overload with a non-canonical form, when we should have made a method const, or when the scope of a variable can be reduced.

@atotto
atotto / chan_test.go
Created March 4, 2014 09:13
golang channel benchmark
package chan_test
import (
"testing"
)
func BenchmarkStructChan(b *testing.B) {
ch := make(chan struct{})
go func() {
for {
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #

Go support for Vim

Go is an interesting language in many respects, and one of them is tooling. Unlike many other languages, Go attempts to ship with various tools for code parsing and rewriting, to make it feasible to use IDE-like functionality with any editor or IDE, simply by invoking tools on the command-line.

I'd like to demonstrate my own fork of the Go Vim support, talk about what Google has provided and what kind of experiments I've done with it. I'll also show some interesting Go tools and how they can be integrated into Vim, like code completion, finding definitions, the "Go Oracle".

Even if you don't know anything about Go, I hope it will turn into an interesting discussion about language support and tooling in general.

@lappi-lynx
lappi-lynx / bootstrap_breadcrumbs_builder.rb
Last active August 29, 2015 13:56
bootstrap builder for breadcrumbs_on_rails gem
# bootstrap builder for breadcrumbs_on_rails gem
class BootstrapBreadcrumbsBuilder < BreadcrumbsOnRails::Breadcrumbs::Builder
def render
@context.content_tag(:ul, class: 'breadcrumb') do
@elements.collect do |element|
render_element(element)
end.join.html_safe
end
end
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active May 20, 2025 13:11
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@pascalpoitras
pascalpoitras / 1.md
Last active June 11, 2025 11:15
My WeeChat configuration

This configuration is not maintained anymore. You should think twice before using it, Breaking change and security issue will likely eventually happens as any abandonned project.

@mikew
mikew / 00-README.md
Last active December 31, 2015 04:59
Gitlab -> Jenkins

Installation

  • Set JENKINS_USER and JENKINS_TOKEN environment variables

  • Edit mappings.json and add a push hook in Gitlab to http://localhost:5678/push.php

    OR

Simply add a push hook in gitlab to http://localhost:5678/push.php?project=Jenkins+Project&amp;token=ABCDEF