I hereby claim:
- I am renarsvilnis on github.
- I am renarsvilnis (https://keybase.io/renarsvilnis) on keybase.
- I have a public key ASCqW6nmRyxAuawicthyZFzwvp-FVybO76yYRTzLcdfr7go
To claim this, I am signing this object:
function parseYoutubeUrl(url) { | |
var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/, | |
match = url.match(regExp); | |
return match && match[7].length == 11 ? match[7] : false; | |
} |
// ... | |
function loggingMiddleware (req, res, next) { | |
const id = genReqId(req) | |
req.log = res.log = logger.child({reqId: id}) | |
req.log[useLevel]({req}, 'Recieved request') | |
res[startTime] = res[startTime] || Date.now() | |
if (!req.res) { req.res = res } | |
res.on('finish', onResFinished) |
I hereby claim:
To claim this, I am signing this object:
function parseVimeoUrl(url) { | |
const regExp = /(?:https?:\/\/(?:www\.)?)?vimeo.com\/(?:channels\/|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|)(\d+)(?:$|\/|\?)/; | |
const match = url.match(regExp); | |
return match ? match[3] : false; | |
} |
alert('Hello world!'); |
Curated list of useful gulp plugins for awesome and easy frontend web development.