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
Switcher | |
Web developer | |
ColorZilla | |
PerfectPixel | |
Yslow | |
Page Ruler | |
Adblock | |
Joxy | |
Livereload | |
LiveStyle |
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 | |
class MyApp { | |
private $DBH, $db = Array( | |
"type" => "mysql", | |
"host" => "localhost", | |
"db" => "spendmoney", | |
"user" => "spendmoney", | |
"pass" => "123456", | |
); |
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
https://www.youtube.com/playlist?list=PLY4rE9dstrJwXCz1utct9b6Vub9VWQoKo | |
growl for windows | |
For gulp: | |
- gulp | |
- gulp-connect | |
- opn | |
- wiredep | |
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
to_char(to_timestamp(dtime), 'YYYY.MM.DD' ) as mydate | |
to_char((avg(dtime-click_time)::int || ' second')::interval, 'HH24:MI:SS') as delta | |
substring(referer, 'utm_source=([^&]*)') as site | |
round((100*count(1)::real/sum(count(1)) OVER (PARTITION BY User))::numeric, 2) as percent | |
ip2int('185.3.35.151') as ipint |
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
@media (max-width: 1150px) and (min-width: 300px) { | |
.cnd_main { | |
display: none; | |
} | |
} |
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
//Vanilla JS | |
var r = new XMLHttpRequest(); | |
r.open("POST", "/path/to/php", true); | |
r.onreadystatechange = function () { | |
if (r.readyState != 4 || r.status != 200) return; | |
console.log("Success: " + r.responseText); | |
}; | |
r.send("banana=yellow"); | |
//jQuery |
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
window.change_url = function (url) { | |
try { | |
history.pushState({}, '', url); | |
} catch(e) { | |
location.hash = '#' + url; | |
} | |
} |
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 util = require('util'); | |
var phrases = { | |
"Hello" : "Привет", | |
"world" : "Мир" | |
} | |
function PhraseError(message) { | |
this.message = message; |
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
Глава 2. Основы: | |
1. Добавление функции в прототип любого объекта {code} | |
2. В parseInt() всегда использовать систему вычисления month = parseInt(month, 10); //09 нормально спарсится | |
3. Всегда в if() используй === | |
4. Всегда используй {}, даже где можно без них | |
5. function MyConstructor() {...} //функции-конструкторы должны начинатся с большой буквы | |
6. ВЕРХНИЙ регистр для переменных, которые не должны менятся (константы) | |
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
VBoxManage modifyvm "VM" --natnet1 "192.168/16" | |
Настройки Сети - Bridge Network - Advanced - Allow All |
OlderNewer