Skip to content

Instantly share code, notes, and snippets.

View i-van's full-sized avatar
🇺🇦

Ivan Nosov i-van

🇺🇦
View GitHub Profile
class Controller {
@route('get', '/index')
@middleware('load_user')
async index() {
let user = await User.get()
, value = await user.doSomething();
if (!value) {
throw new Error('Some Error');
@i-van
i-van / log.txt
Last active December 19, 2015 15:12
worker:1 task (capture {"site":"http://thepiratebay.se"}) started +4ms
CaptureTask run cmd /home/vagrant/src/phantomjs/bin/phantomjs /home/vagrant/src/phantomjs/examples/rasterize.js http://thepiratebay.se /home/vagrant/src/banner-checker/app/tasks/../../screenshots/1450535882182.png +1ms
worker:1 task (capture {"site":"http://thepiratebay.se"}) finished +4s
worker:1 task (capture {"site":"http://waptrick.com"}) started +3ms
CaptureTask run cmd /home/vagrant/src/phantomjs/bin/phantomjs /home/vagrant/src/phantomjs/examples/rasterize.js http://waptrick.com /home/vagrant/src/banner-checker/app/tasks/../../screenshots/1450535886050.png +0ms
worker:1 task (capture {"site":"http://waptrick.com"}) finished +7s
worker:1 task (capture {"site":"http://divxtotal.com"}) started +3ms
CaptureTask run cmd /home/vagrant/src/phantomjs/bin/phantomjs /home/vagrant/src/phantomjs/examples/rasterize.js http://divxtotal.com /home/vagrant/src/banner-checker/app/tasks/../../screenshots/1450535893123.png +0ms
worker:1
@i-van
i-van / deal
Created November 12, 2015 14:38
added_by_current_user: false
coupon_code: null
description: "Shop the Latest in Kids' Shoes, Starting at $16, at Nordstrom! Free Shipping and Free Returns!"
discount_amount: null
discount_text: null
discount_type: "other"
expiration_at: "2016-02-01"
expired: false
followed_by_current_user: false
followers_amount: 0
var path = require('path');
var webpack = require("webpack");
var CleanPlugin = require('clean-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
debug: true,
context: path.join(__dirname, "sources"),
entry: {
{
"id": "2109",
"system_name": "uryuk-50_1",
"title": "Всё основное меню или вся барная карта в 2 ресторанах «Урюк» со скидкой 50%",
"gift_title": "Всё основное меню или вся барная карта в 2 ресторанах «Урюк» со скидкой 50%",
"title_75": "Всё основное меню или вся барная карта в 2 ресторанах «Урюк» за полцены",
"price": {
"amount": 75,
"currency": {
"currency_id": 1,
{
"id": "2973",
"system_name": "cosmik2-75",
"title": "2 или 3 часа игры в боулинг в одном из 10 парков развлечений «Космик»",
"gift_title": "2 или 3 часа игры в боулинг в одном из 10 парков развлечений «Космик»",
"title_75": "2 или 3 часа игры в боулинг в одном из 10 парков развлечений «Космик»",
"price": {
"amount": 360,
"currency": {
"currency_id": 1,
{
"errorCode": 0,
"regions": [
{
"id": 1,
"updated": "2014-10-05T23:23:54+04:00",
"retailerId": 1,
"name": "Москва и МО",
"description": "Москва и МО"
},
{
"id": 195168,
"updated": "2015-09-23T19:38:46+03:00",
"image": "http://s.edadeal.ru/items/1/th600/195168.jpg",
"categoryId": 4,
"subcategoryId": 35,
"description": "Колбаса Докторская Сетунь б/о",
"quantity": 0.65,
"quantityUnitId": 1,
"priceOld": 355,
{
"id": 195164,
"updated": "2015-09-23T19:37:51+03:00",
"image": "http://s.edadeal.ru/items/1/th600/195164.jpg",
"categoryId": 9,
"subcategoryId": 93,
"description": "Виноград черный",
"country": "Россия",
"quantity": 1,
"quantityUnitId": 1,
'use strict';
var co = require('co');
module.exports = {
up: co.wrap(function*(migration, DataTypes) {
var sequelize = migration.sequelize;
yield sequelize.query(`
CREATE TABLE public.feeds (