I hereby claim:
- I am viatsko on github.
- I am viatsko (https://keybase.io/viatsko) on keybase.
- I have a public key ASCv3OujDvgf83tDamhNfzciDroGiCK1aYqkJfYDXmd0eQo
To claim this, I am signing this object:
-ea | |
-server | |
-Xms1g | |
-Xmx1g | |
-Xss16m | |
-XX:PermSize=256m | |
-XX:MaxPermSize=256m | |
-XX:+DoEscapeAnalysis | |
-XX:+UseCompressedOops | |
-XX:+UnlockExperimentalVMOptions |
@pretty_date[str] | |
$str[^str.trim[]] | |
$parts[^str.split[ ;lh]] | |
$day[$parts.0] | |
$month[$parts.1] | |
$year[$parts.2] | |
$month[^month.lower[]] |
Пишем первое REST API приложение на NodeJS (Express + Mongoose) | |
http://habrahabr.ru/post/213931/ |
'use strict'; | |
module.exports = function(text) { | |
return text.replace(/([а-яё])|([\s_-])|([^a-z\d])/gi, | |
function (all, ch, space, words, i) { | |
if (space || words) { | |
return space ? '-' : ''; | |
} | |
var code = ch.charCodeAt(0), | |
index = code == 1025 || code == 1105 ? 0 : |
if (!filename.match(/(jpe?g|png|gif)$/)){ | |
} |
var waveform = require('waveform'); | |
var fs = require('fs'); | |
var probe = require('node-ffprobe'); | |
var _ = require('lodash'); | |
var async = require('async'); | |
var walk = require('walk'); | |
var files = []; | |
// Walker options |
var _ = require('lodash'); | |
var data = require('./entries.json'); | |
module.exports = _.map(data, function(){ | |
data.summ = data.summ * 2; | |
return data; | |
}); |
Hotel's Catalog & Hotel's Page: | |
* Can't see price for 1 day if didn't select date on previous page, only $$$$$ instead of it on hotel description. Booking suggests to select date via select area which is not comfortable to see price just for one night. Need to find a place for daily buttons. | |
* Maybe give user an ability to save search filter in case he has some hotel requirements or just want to keep different filters for work travel/family travel, I, myself, find it very useful for me. | |
http://www.booking.com/hotel/fr/poussins.ru.html?sid=d3db3da5dfd91caf15a630553a89cb24;dcid=4;checkin=2015-06-15;checkout=2015-06-16;dist=0;srfid=4a5feaf12beee7bd0fdd20e26f4ac574abc93882X1;type=total;ucfs=1& | |
* Visitors also seen needs fancybox gallery to preview hotel photos, it would be more catchy than just random photo on hover (even if it's not a random photo) |
I hereby claim:
To claim this, I am signing this object:
// The following data should be run in the console while viewing the page https://read.amazon.com/ | |
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension | |
var db = openDatabase('K4W', '2', 'thedatabase', 1024 * 1024); | |
getAmazonCsv = function() { | |
// Set header for CSV export line - change this if you change the fields used | |
var csvData = "ASIN,Title,Authors,PurchaseDate\n"; | |
db.transaction(function(tx) { |