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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>#BlondieCode - лайфхаки программиста. Рейтинг 5 звезд.</title> | |
<meta charset="utf-8"> | |
<style> | |
body, html {padding: 0;margin: 0;} | |
body { | |
background: #efefef; color: #2d2d2d; | |
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; |
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> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
body {background: #efefef; color: #999999; font-family: "Helvetica Neue", Arial, sans-serif;} | |
a {color:#333333;} | |
a:hover {color: #777777;} | |
.borderHolder { | |
position: relative; |
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> | |
<head> | |
<title>BlondieCode. Лайфхаки программиста. Поиск с подстановкой.</title> | |
<meta charset="utf-8"> | |
<meta name="description" content="BlondieCode. Блог блондинки-программиста. Подписывайся. Здесь много интересного."> | |
<meta name="keywords" content="BlondieCode, программирование"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> |
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 layout = 'mobile'; | |
if (layout = 'desktop'){ | |
console.log('Будем парсить большой баннер на всю страницу и флеш-плеер'); | |
} else { | |
console.log('Будем парсить скромную мобильную темплейту'); | |
} | |
var layout = 'mobile'; | |
if (layout == 'desktop'){ |
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
//----------------ПРИМЕР 1--------------------// | |
var starCount = 0; | |
var potatoBoom = function(callback){ | |
starCount = starCount + 1; | |
callback(); | |
}; | |
setTimeout(function(){ | |
potatoBoom(function(){console.log("На счету у картофельного снайпера " | |
+ starCount + " звезд");}) | |
}, 1000 |
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
<div class="ratingHolder"> | |
<div class="passiveRatingHolder"> | |
<div class="ratingBg"></div> | |
<div style="width: 85%;" class="ratingMask"></div> | |
</div> | |
<div class="rateNumbers"> | |
<div> | |
<span class="ratingvalue">4.25</span> | |
/ | |
<span class="bestrating">5.00</span> |
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
process.env.NODE_ENV = 'production'; | |
NODE_ENV = production node app.js | |
export NODE_ENV=production // nix системы | |
set NODE_ENV = production // windows | |
var async = require('async'); | |
async.parallel([ | |
functionOne, | |
functionTwo, |
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 soap = require('soap'); | |
var Cookie = require('soap-cookie'); | |
exports.get = function(req, res){ | |
var url = 'http://ws.example.com/wsclientPath?wsdl'; | |
soap.createClient(url, function(err, client) { | |
if (err) { | |
res.send(err); |
OlderNewer