Пешеходные зоны
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
(root, fn) -> | |
glob 'views/**/*.hbs', {}, (error, files) -> | |
for file in files | |
source = fs.readFileSync "#{root}/#{file}", 'utf8' | |
update = false | |
for filename, version of options.version | |
if source.indexOf(filename) > -1 | |
update = 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
function MyCustomType(value) { | |
this.property = value; | |
} | |
MyCustomType.prototype.method = function() { | |
return this.property; | |
}; |
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
body { | |
font: 25px/1 Arial; | |
} |
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
options = {} unless options? | |
options.type = type if type? |
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
function isRetina() { | |
return (('devicePixelRatio' in window && devicePixelRatio > 1) || ('matchMedia' in window && matchMedia("(-moz-device-pixel-ratio:1.0)").matches)); | |
} |
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
var socket = io.connect('http://127.0.0.1:8080'); | |
socket.on('connect', function() { | |
socket.on('message', function(tweet) { | |
var tweet = JSON.parse(tweet), content = ''; | |
content = '<div class="name">' + tweet.name + '</div>'; | |
content += '<div class="text">' + tweet.text + '</div>'; | |
$('#tweets').prepend(content); | |
}); |
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
<?php | |
trait Hello | |
{ | |
public function sayHello() | |
{ | |
echo 'Hello '; | |
} | |
} |
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
[PHP] | |
;;;;;;;;;;;;;;;;;;;; | |
; Language Options ; | |
;;;;;;;;;;;;;;;;;;;; | |
engine = On | |
short_open_tag = Off | |
asp_tags = Off | |
precision = 14 |