Skip to content

Instantly share code, notes, and snippets.

View haydarai's full-sized avatar

Haydar Ali Ismail haydarai

View GitHub Profile
```
[INFO] ERROR in ./src/pages/account-2-fa-setup/Account2FaSetup.vue?vue&type=style&index=0&lang=css& (./node_modules/css-loader!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/lib/loader.js!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/account-2-fa-setup/Account2FaSetup.vue?vue&type=style&index=0&lang=css&)
[INFO] Module build failed (from ./node_modules/sass-loader/lib/loader.js):
[INFO] Error: Missing binding /Users/haydar/Workspace/src/taigers/iconverse/iconverse-admin/iconverse-admin-frontend/node_modules/node-sass/vendor/darwin-x64-59/binding.node
[INFO] Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 9.x
[INFO]
[INFO] Found bindings for the following environments:
[INFO] - OS X 64-bit with Node.js 8.x
[INFO]
[INFO] This usually happens because your environment has changed since running `npm install`.

Virtus

Activity tracker for sales

Environment Setup

  1. Copy and paste .env.example as .env and change variables inside the file accordingly
  2. Put firebase service account file in keys folder as firebase.json

Build Setup

function Human (name) {
this.name = name;
}
Human.prototype.sayHello = function () {
setTimeout(function () {
console.log(this.name);
}, 0)
}
var url = 'elastic/tw_post_ews*/_search?q=ori_post:' + this.dt_oripost.id +
'&size=' + total;
var urltop10 = 'elastic/tw_post_ews*/_search?size=' + total;
console.log("ini url", url);
// var url_chart = 'elastic/_search?&size='+total;
//SENTIMEN
var body = {
"query": {
"range": {
# -*- coding: utf-8 -*-
import os
import scrapy
import unidecode
import re
import uuid
from dotenv import load_dotenv
from elasticsearch import Elasticsearch
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"Afghanistan": [
{
"Date": 1999,
"Imports": "15",
"Exports": "20"
},
{
"Date": 2008,
"Imports": "42",
@haydarai
haydarai / catalog_returns.sql
Created December 8, 2018 18:01
Catalog returns
select date_dim.d_year, item.i_item_sk, reason.r_reason_sk, sum(catalog_returns.cr_return_quantity) as quantity
from catalog_returns, date_dim, item, reason
where catalog_returns.cr_returned_date_sk = date_dim.d_date_sk
and catalog_returns.cr_item_sk = item.i_item_sk
and catalog_returns.cr_reason_sk = reason.r_reason_sk
group by cube(date_dim.d_year, item.i_item_sk, reason.r_reason_sk)
order by date_dim.d_year, item.i_item_sk, reason.r_reason_sk
@haydarai
haydarai / store_returns.sql
Created December 8, 2018 17:52
Store Returns
select date_dim.d_year, item.i_item_sk, reason.r_reason_sk, sum(sr_return_quantity) as quantity
from store_returns, date_dim, item, reason
where store_returns.sr_returned_date_sk = date_dim.d_date_sk
and store_returns.sr_item_sk = item.i_item_sk
and store_returns.sr_reason_sk = reason.r_reason_sk
group by cube(date_dim.d_year, sr_item_sk, r_reason_sk)
order by date_dim.d_year, reason.r_reason.sk, item.i_item_sk
@haydarai
haydarai / web_returns.sql
Created December 8, 2018 17:37
Web Returns
select date_dim.d_year, item.i_item_sk, reason.r_reason_desc, sum(wr_return_quantity) as quantity
from web_returns, date_dim, item, reason
where web_returns.wr_returned_date_sk = date_dim.d_date_sk
and web_returns.wr_item_sk = item.i_item_sk
and web_returns.wr_reason_sk = reason.r_reason_sk
group by cube(date_dim.d_year, item.i_item_sk, reason.r_reason_desc)
order by date_dim.d_year, i_item_sk, reason.r_reason_desc