Skip to content

Instantly share code, notes, and snippets.

View razbakov's full-sized avatar
🖖
Hi

Aleksey Razbakov razbakov

🖖
Hi
View GitHub Profile
@razbakov
razbakov / wd-form.vue
Created February 7, 2024 10:34
Vue Form Component
<template>
<form @submit.prevent="submit">
<slot />
</form>
</template>
<script>
import Vue from 'vue'
import { onMounted, ref } from '@nuxtjs/composition-api'
git fetch --all
git push origin HEAD
WORK_BRANCH=`git rev-parse --abbrev-ref HEAD`
git checkout development
git rebase origin/development
git merge $WORK_BRANCH --no-edit
git push origin HEAD
git checkout $WORK_BRANCH

get AJQ-15x15-ZM

{
  product: {
    DecimalsAllowed: false,
    Description1: 'Ablauf ESS Aqua Jewel Quattro 15x15cm ES',
    Description2: '"Zero+Edelst. gebürstet" swh 30/35/50mm',
    GTIN: '',
    PicturePath: 'https://ablexprod.blob.core.windows.net/ablexprodcontainer/8eb882af3664f584682df48d6401b5f7',
<template>
<input
v-model="userValue"
:pattern="pattern"
v-bind="$attrs"
type="tel"
@focus="focus"
@keydown="keyDown"
@blur="update"
>
import { reactive, toRefs, computed } from '@vue/composition-api'
import Vue from 'vue'
import firebase from 'firebase/app'
import 'firebase/auth'
import 'firebase/firestore'
const state = Vue.observable({
loading: true,
signingIn: false,
uid: null,
@razbakov
razbakov / evernote_2.applescript
Created January 30, 2020 19:47
Evernote Apple Script API
-- This script includes examples for using AppleScript to perform several
-- useful tasks with Evernote.
-- Each section illustrates a chunk of Evernote's AppleScript interface,
-- and each section also cleans up after itself.
-- Please refer to the Evernote application's scripting dictionary for
-- detailed information and BE CAREFUL: operations that would normally
-- confirmation from the user (such as deleting notes, etc) are
-- completed without warning when invoked from AppleScript!
tell application "Evernote"
@razbakov
razbakov / MigrateNotesToEvernote.applescript
Created January 30, 2020 19:47
MigrateNotesToEvernote
-- Read more
-- https://dev.evernote.com/doc/articles/applescript.php
-- https://gist.github.com/evernotegists
-- https://discussion.evernote.com/topic/4046-importing-from-apple-mailapps-notes/
-- https://www.macosxautomation.com/applescript/notes/05.html
-- https://macscripter.net/viewtopic.php?id=45602
tell application "Notes"
set theMessages to every note
repeat with appleNote in theMessages
@razbakov
razbakov / highlighted.html
Created January 30, 2020 19:39
Highlight header
<h1 class="editorial-card__title">
<span class="underlay-highlight-yellow">How great managers give and receive feedback</span>
</h1>
<style>
.underlay-highlight-yellow {
background-image: url(text-underlay-yellow.svg);
}
</style>
import Vue from 'vue'
import * as Sentry from '@sentry/browser'
import axios from 'axios'
import _ from 'lodash'
import { Platform, Notify } from 'quasar'
import Firebase from 'firebase/app'
import 'firebase/auth'
import 'firebase/messaging'
import moment from 'moment'
import firebase from 'firebase/app'
import 'firebase/storage'
import uuid from 'uuid/v4'
export default function upload (file, metadata, onChange) {
return new Promise((resolve) => {
const ref = 'media/' + uuid()
const uploadTask = firebase
.storage()
.ref()