Код | Название |
---|---|
27611 | Москва |
26062 | С.-Петербург |
29865 | Абакан |
22550 | Архангельск |
34880 | Астрахань |
29838 | Барнаул |
34214 | Белгород |
31510 | Благовещенск |
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
<noscript> | |
<meta http-equiv="refresh" content="0; URL=http://URL.HERE/badbrowser/"> | |
</noscript> |
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
/* | |
JQCBlock - jquery compatible sir trevor block (old style) | |
it may be usefull for legacy jquery dependent code | |
*/ | |
SirTrevor.JQCompatibleBlock = SirTrevor.Block.extend({ | |
$ : function(selector) { | |
return $(this.el).find(selector); | |
} | |
}); |
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 | |
require_once('AbstractAdvertisementXMLReader.php'); | |
class TestReader extends AbstractAdvertisementXMLReader { | |
private $num = 0; | |
public function parseRow() { |
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 fixedSizeQueue(size) { | |
var queue = Array.apply(null, []); | |
queue.fixedSize = size; | |
queue.trimHead = fixedSizeQueue.trimHead; | |
queue.push = fixedSizeQueue.push; | |
return queue; |
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 | |
/* | |
Родительский класс для XML импортеров. | |
*/ | |
class AbstractAdvertisementXMLReader { | |
protected $reader; | |
protected $result = array(); | |
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 | |
/* | |
Set my_theme_t function as allowed for pods echo tag | |
*/ | |
function my_theme_pods_template_echo_tag_allowed_functions($funcs) { | |
return array_merge($funcs, array('my_theme_t')); | |
} | |
add_filter('pods_template_echo_tag_allowed_functions', 'my_theme_pods_template_echo_tag_allowed_functions'); | |
/* | |
Add "echo" tag to Pods Template |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
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
# some more ls aliases | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias c='clear' | |
# git aliases | |
alias gad='git add' | |
alias gcm='git commit -m' | |
alias gp='git push' |
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
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
OlderNewer