Skip to content

Instantly share code, notes, and snippets.

Denis Fadeev fadeev

Block or report user

Report or block fadeev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am fadeev on github.
  • I am fadeev ( on keybase.
  • I have a public key ASCLEPVE0l2nhHEREkYXZWAuB3hDJbryWAaKclgGiTevTwo

To claim this, I am signing this object:

fadeev / settings.json
Created Mar 9, 2019
VS Code Settings
View settings.json
"workbench.sideBar.location": "right",
"editor.minimap.enabled": false,
"": false,
"editor.tabSize": 2,
"editor.renderIndentGuides": false,
"editor.detectIndentation": false,
"html.format.indentInnerHtml": true,
"terminal.integrated.macOptionIsMeta": true,
"explorer.confirmDelete": false,
View .emacs
(setq backup-directory-alist '(("." . "~/.emacs.d/backups/"))
backup-by-copying 1
auto-save-default 0
inhibit-splash-screen 1
ring-bell-function 'ignore
coding-system-for-write 'utf-8
coding-system-for-read 'utf-8
inferior-lisp-program "/usr/local/bin/sbcl --noinform")
(set-language-environment "Russian")
fadeev / gist:2486368
Created Apr 25, 2012
ANSI Common Lisp (exercises)
View gist:2486368
;; Exercise 3.2, p. 56
(defun union-in-order (&rest lists)
"Returns a union of lsts, preserving the order"
(remove-duplicates (reduce #'append lists)
:from-end t
:test #'equal))
;; Exercise 3.3, p. 56
(defun sort-by-frequency (list)
"Returns sorted by frequency alist of occurrences,
fadeev / gist:1486429
Created Dec 16, 2011
Debian on a Laptop
View gist:1486429
aptitude install iwlwifi wpasupplicant
In [ /etc/network/interfaces ] add the following:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid [ wireless-network ]
wpa-psk [ password ]
Configure keyboard layout: dpkg-reconfigure keyboard-configuration
fadeev /
Created Sep 14, 2011
Cons, car and cdr in Python
def cons(x,y):
return lambda pick: x if pick == 1 else y
def car(cons):
return cons(1)
def cdr(cons):
return cons(2)
fadeev / cons-if.rb
Created Sep 13, 2011
Cons, car and cdr in Ruby
View cons-if.rb
def cons a, b
lambda { |pick|
return a if pick == 1
return b if pick == 2
def car cons 1
fadeev / cyr_functions.rb
Created Sep 11, 2011
Downcase, upcase and “delatin” functions for strings in cyrillic
View cyr_functions.rb
# encoding: utf-8
class String
def cyr_downcase
.map { |c| if (1040..1071) === c then (c + 32) elsif (1025 == c) then 1105 else c end }
fadeev / gist:1127889
Created Aug 5, 2011
Get a single character from the console
View gist:1127889
# From the Highline gem,
def get_character( input = STDIN )
You can’t perform that action at this time.