Skip to content

Instantly share code, notes, and snippets.

🌉
SF, hacking, thinking, observing, feeling

Anton Podviaznikov podviaznikov

🌉
SF, hacking, thinking, observing, feeling
Block or report user

Report or block podviaznikov

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
View onename.io.txt
Verifying myself: My Bitcoin username is +podviaznikov. https://onename.io/podviaznikov
View keybase.md

Keybase proof

I hereby claim:

  • I am podviaznikov on github.
  • I am podviaznikov (https://keybase.io/podviaznikov) on keybase.
  • I have a public key whose fingerprint is ED55 74C1 1394 8860 7EA1 C228 879F 60AE EC4D D532

To claim this, I am signing this object:

View terminal-shortcust.md
  • Jump to Beginning of Line – Control+A
  • Jump to End of Line – Control+E
  • Go to Next Line – Control+N
  • Go to Previous Line – Control+P
  • Delete Previous Word – Control+W
  • Delete Line from Cursor to Beginning – Control+U
  • Delete Line from Cursor to End – Control+K
  • Cut from Cursor to Beginning of Line – Control+U
  • Cut from Cursor to End of Line – Control+K
  • Paste Previously Cut Text at Cursor – Control+Y
View sublime-tricks.md
  • Command + D - select a word.
  • Command + L - select a line.
  • Command + Ctrl + G - select a code, line, or word first the hit this combo to select the others with the same instances.
  • F5 - sort the properties in alphabetical order
  • Command - hold the Command key and click on the lines that you want to select.
  • Command + Shift + ] - bring you immediately to the next tab.
  • Command + Shift + [ - bring you the previous tab.
  • Command + Ctrl + P - switch between the projects that are listed on the SublimeText Sidebar.
  • Command + E - put the code selected in the Find input field.
  • Command + R - file crawling.
View freebase-countries.json
[ { capital: 'Вашингтон',
type: '/location/country',
id: '/en/united_states',
name: 'Сполучені Штати Америки' },
{ capital: 'Берлін',
type: '/location/country',
id: '/en/germany',
name: 'Німеччина' },
{ capital: 'Канберра',
type: '/location/country',
@podviaznikov
podviaznikov / nace.clj
Last active Aug 29, 2015
generate naces
View nace.clj
(ns nace.core
(:require [cheshire.core :refer :all]))
(def st (slurp "./resources/nace.json" :encoding "UTF-8"))
(defn remove-dots [s]
(clojure.string/replace s "." ""))
@podviaznikov
podviaznikov / idea-shortcust
Created Jul 3, 2015
Intelij idea shortcust
View idea-shortcust
http://blog.jetbrains.com/idea/2014/03/intellij-idea-13-1-rc-introduces-sublime-text-style-multiple-selections/
@podviaznikov
podviaznikov / clojure-logs-beanstalk.clj
Created May 15, 2013
to make clojure clojure.tools.logging work on amazon beanstalk past following code somewhere in the app. In case of ring/compojure project on top of handler.
View clojure-logs-beanstalk.clj
(alter-var-root
#'clojure.tools.logging/*logger-factory*
(constantly (clojure.tools.logging.impl/jul-factory)))
@podviaznikov
podviaznikov / clojure-require-https.clj
Created May 17, 2013
how to force https traffic in clojure web app
View clojure-require-https.clj
(defn https-url [request-url]
(str (str (str (str "https://" (:server-name request-url) ":") "443")) (:uri request-url)))
(defn require-https
[handler]
(fn [request]
(if (= (:scheme request) :http)
(ring.util.response/redirect (https-url request))
(handler request))))
You can’t perform that action at this time.