Skip to content

Instantly share code, notes, and snippets.

View ekazakov's full-sized avatar

Evgenii Kazakov ekazakov

  • Berlin
  • 04:16 (UTC -12:00)
View GitHub Profile
@ekazakov
ekazakov / ClassOf.markdown
Created August 24, 2013 19:02
A Pen by Evgeniy Kazakov.
@ekazakov
ekazakov / Tmuxinator config
Created January 26, 2014 20:13
tmuxinator config
# ~/.tmuxinator/main.yml
name: main
root: ~/
# Optional tmux socket
# socket_name: foo
# Runs before everything. Use it to start daemons etc.
# pre: sudo /etc/rc.d/mysqld start
#Proxy for virtual box
server {
listen 0.0.0.0:80;
server_name is.loc;
location / {
proxy_pass http://is.loc;
proxy_redirect off;
@ekazakov
ekazakov / _.jshintrc
Created January 26, 2014 20:23
JSHint config
{
"laxcomma" : false
, "globalstrict": false
, "quotmark": "double"
, "eqnull" : true
, "browser" : true
, "undef" : false
, "unused" : true
, "curly" : true
, "devel" : {
@ekazakov
ekazakov / MyBookStyles.css
Created January 26, 2014 20:24
Styles for epub books
html {
width: 100%;
}
body {
/*margin: 100px !important;*/
background-color: #E9E8E7 !important;
line-height: 1.5;
color: #333;
font-family: "adelle" !important;
@ekazakov
ekazakov / object_method.sublime-snippet
Created February 4, 2014 21:28
object method snippet
<snippet>
<content><![CDATA[
${1:method}: function (${2:options}) {
${4:throw "${1} is not implemmented yet.";}
}${3:,}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>method</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
@ekazakov
ekazakov / .editorconfig
Created February 7, 2014 19:07
editorconfig
[*]
end_of_line = lf
indent_style = space
indent_size = 4
charset = utf-8
insert_final_newline = true
@ekazakov
ekazakov / .bowerrc
Created February 19, 2014 09:59
bowerrc file for private registry
{
"registry": {
"register": "http://localhost:3333",
"publish": "http://localhost:3333",
"search": [
"http://localhost:3333"
, "https://bower.herokuapp.com"
]
},
@ekazakov
ekazakov / extend.coffee
Last active August 29, 2015 13:58
CoffeScript Extend с использованием getOwnPropertyDescriptor, для поддержки accessors
extend = (child, parent) ->
ctor = -> @constructor = child
ctor.prototype = parent.prototype
child.prototype = new ctor
for own key of parent
Object.defineProperty child, key, Object.getOwnPropertyDescriptor parent, key
child
@ekazakov
ekazakov / jsbin.fuyaj.coffee
Created April 13, 2014 18:05
Алгоритм Дейкстры на CoffeeScript
console.clear()
class PQueue
constructor: () ->
@items = []
add: (item) ->
@items.push item