Skip to content

Instantly share code, notes, and snippets.

View mkaliberda's full-sized avatar
🎯
Focusing

mkaliberda

🎯
Focusing
View GitHub Profile
@mkaliberda
mkaliberda / crontab.d
Created November 19, 2020 01:42
CRON last day of the month
# m h dom mon dow command
00 16 30 4,6,9,11 * /path/tasl.sh
00 16 31 1,3,5,7,8,10,12 * /path/tasl.sh
00 16 28 2 * /path/tasl.sh
import axios from 'axios';
import { actionTypes } from '@/store/types';
// eslint-disable-next-line import/no-cycle
import store from '@/store/index';
import TokenService from '../storage/token';
const ApiService = {
// Stores the 401 interceptor position so that it can be later ejected when needed
interceptor_401: null,
@mkaliberda
mkaliberda / axios.error.base.js
Created October 29, 2020 19:34
base error handler for axios
class BaseRepositoryError extends Error {
constructor(errorCode, response) {
super();
if (errorCode !== 500) {
this.message = this.parseErrorData(response.data);
} else {
this.message = 'Server Error. Please, contact support.';
}
this.errorCode = errorCode;
}
import xlrd
class ExcelParser:
def __init__(self, path):
self.__wbook = xlrd.open_workbook(path)
def get_row_data(self, template_parse, index_sheet, sort_field=None):
"""
get_row_data
import os
import email
import logging
import datetime as dt
import copy
import imaplib
import getpass
import re
logger = logging.getLogger(__name__)
@mkaliberda
mkaliberda / gist:3e312df8e8e95da5847c9d9c6e71b028
Created February 26, 2020 07:07 — forked from Bouke/gist:11261620
Multiple Python installations on OS X

Previous versions used homebrew to install the various versions. As suggested in the comments, it's better to use pyenv instead. If you are looking for the previous version of this document, see the revision history.

$ brew update
$ brew install pyenv
$ pyenv install 3.5.0
$ pyenv install 3.4.3
$ pyenv install 3.3.6
$ pyenv install 3.2.6
$ pyenv install 2.7.10

$ pyenv install 2.6.9

@mkaliberda
mkaliberda / imap-search
Created February 14, 2020 10:24 — forked from martinrusev/imap-search
IMAP Search criteria
@mkaliberda
mkaliberda / simple.vue
Created August 23, 2019 11:05
Simple component
<template>
<fast-card>
<template slot="card-title">
{{ $t('deposit-coin.deposit-address.head', [currency[0].toUpperCase()]) }}
</template>
<template slot="card-content">
<div
v-loading="tableLoader"
element-loading-spinner="el-icon-loading"
element-loading-background="rgba(255, 255, 255, 0.8)"
@mkaliberda
mkaliberda / simple.vue
Created August 23, 2019 11:05
Simple Component
<template>
<fast-card>
<template slot="card-title">
{{ $t('nav-menu.accounts.all-accounts') }}
</template>
<template slot="card-content">
<el-table
v-if="allAccounts"
:data="allAccounts"
@mkaliberda
mkaliberda / simple.js
Created August 23, 2019 11:02
Simple REDUX
import { actionTypes, mutationTypes } from '@/store/store-types'
import { ApiStatus } from '@/configs/configs'
import {
apiSiteApiFiatTypesIn,
apiSiteApiFiatTypesOut,
apiSiteApiFiatLimits
} from '@/services/service-api-in-out-fiat'
const state = {
depositFiatTypes: {},