Skip to content

Instantly share code, notes, and snippets.

View it1ro's full-sized avatar

Ilmir Karimov it1ro

  • Russia, Ulyanovsk
View GitHub Profile
@it1ro
it1ro / semantic-commit-messages.md
Created October 11, 2025 22:36 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@it1ro
it1ro / latency.txt
Created April 8, 2024 04:03 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@it1ro
it1ro / optparse-template.rb
Created April 12, 2019 08:30 — forked from rtomayko/optparse-template.rb
Ruby optparse template
#!/usr/bin/env ruby
#/ Usage: <progname> [options]...
#/ How does this script make my life easier?
# ** Tip: use #/ lines to define the --help usage message.
$stderr.sync = true
require 'optparse'
# default options
flag = false
option = "default value"
@it1ro
it1ro / simple_form_bulma.rb
Created April 11, 2019 12:50 — forked from JuanVqz/simple_form_bulma.rb
Support for simple form with bulma css, copy and paste on config/initializers/simple_form_bulma.rb
# frozen_string_literal: true
# Use this setup block to configure all options available in SimpleForm.
SimpleForm.setup do |config|
# Default class for buttons
config.button_class = 'button'
# Define the default class of the input wrapper of the boolean input.
config.boolean_label_class = 'checkbox'
@it1ro
it1ro / vocabulary.md
Created December 19, 2018 20:06 — forked from machikoyasuda/vocabulary.md
Japanese/English programming/tech vocabulary

----- Tech -----

拡張現実【かくちょうげんじつ】 augmented reality, AR

投資家【とうしか】 investor

静的【せいてき】 static

@it1ro
it1ro / rxjs_operators_by_example.md
Created December 18, 2018 07:20 — forked from btroncone/rxjs_operators_by_example.md
RxJS 5 Operators By Example