A Pen by Evgeniy Kazakov on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.clear() | |
class PQueue | |
constructor: () -> | |
@items = [] | |
add: (item) -> | |
@items.push item |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"registry": { | |
"register": "http://localhost:3333", | |
"publish": "http://localhost:3333", | |
"search": [ | |
"http://localhost:3333" | |
, "https://bower.herokuapp.com" | |
] | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[*] | |
end_of_line = lf | |
indent_style = space | |
indent_size = 4 | |
charset = utf-8 | |
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
width: 100%; | |
} | |
body { | |
/*margin: 100px !important;*/ | |
background-color: #E9E8E7 !important; | |
line-height: 1.5; | |
color: #333; | |
font-family: "adelle" !important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"laxcomma" : false | |
, "globalstrict": false | |
, "quotmark": "double" | |
, "eqnull" : true | |
, "browser" : true | |
, "undef" : false | |
, "unused" : true | |
, "curly" : true | |
, "devel" : { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Proxy for virtual box | |
server { | |
listen 0.0.0.0:80; | |
server_name is.loc; | |
location / { | |
proxy_pass http://is.loc; | |
proxy_redirect off; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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 |
NewerOlder