Skip to content

Instantly share code, notes, and snippets.

View damirm's full-sized avatar

Damir Makhmutov damirm

  • Yandex
  • Russia, Moscow
View GitHub Profile
@damirm
damirm / ANSI.md
Created September 5, 2022 21:42 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@damirm
damirm / gist:ea61b694036dc04d6c3f
Created October 7, 2015 21:39 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@damirm
damirm / 1_ruby_quicksort.rb
Last active December 27, 2015 08:19
Here are some things you can do with Gists in GistBox.
# Use Gists to store entire functions
class QuickSort
def self.sort!(keys)
quick(keys,0,keys.size-1)
end
private
def self.quick(keys, left, right)