Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Aleksey Razbakov razbakov

🎯
Focusing
Block or report user

Report or block razbakov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View vuexUserFirebase.js
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'
View firebaseStorageUpload.js
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()
@razbakov
razbakov / QFirebaseUploaderBase.vue
Created Apr 23, 2019
Firebase File Uploader for Quasar Framework
View QFirebaseUploaderBase.vue
<script>
import { QUploaderBase } from 'quasar'
import firebase from 'firebase/app'
import 'firebase/storage'
import uuid from 'uuid/v4'
export default {
mixins: [ QUploaderBase ],
props: {
@razbakov
razbakov / airbnb.md
Last active Mar 18, 2019
Rental scam using Airbnb: Schöne Wohnung in der Maxvorstadt
View airbnb.md
  Schöne Wohnung in der Maxvorstadt
  Zimmer:	2,00
  Wohnfläche:	35,00 m²
  Kaltmiete:	550 €
  Adresse:	Görresstraße 17 80798 München, Maxvorstadt
  Scout-ID:	108756423

  ---
View vue-styleguide.md

Style guide

Filenames

  • should be PascalCase

Filenames of single-file components should either be always PascalCase or always kebab-case. PascalCase works best with autocompletion in code editors, as it’s consistent with how we reference components in JS(X) and templates, wherever possible. However, mixed case filenames can sometimes create issues on case-insensitive file systems, which is why kebab-case is also perfectly acceptable.

Components

@razbakov
razbakov / JuniorDesigner.md
Created Sep 12, 2018
Interview: How to become JuniorDesigner?
View JuniorDesigner.md

Interview

  1. Are education and working experience required to find a work as Junior Designer?
  2. What kind of tasks do you receive as a Junior Designer?
  3. What level of experience with graphic software is expected from Junior Designer?
  4. Does an employer expect you as Junior Designer to have an extended knowledge in design applications?
  5. Is it acceptable that you are still learning those applications?
  6. Which applications are required except Adobe Illustrator, Photoshop and InDesign?
  7. Is Adobe After Effects a must? 8 ) Is it more demanding to work in a Web Agency?
View git-commit.md

Capitalized, short (<=50 chars) summary without dot

Description. More detailed explanatory text, if necessary. Wrap it to about 72 characters or so. In some contexts, the first line is treated as the subject of an email and the rest of the text as the body. The blank line separating the summary from the body is critical (unless you omit the body entirely); tools like rebase can get confused if you run the two together.

Write your commit message in the imperative: "Fix bug" and not "Fixed bug"

@razbakov
razbakov / docker-compose.yml
Last active Sep 6, 2017
traefik configuration
View docker-compose.yml
version: "2"
services:
bo-loadbalancer:
image: "traefik:1.3"
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
View oro-console.txt
app/console
Symfony version 2.7.6 - app/vagrant_dev/debug
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
View table-groupping.js
// Input
groupBy = ['color', 'size', '', ...]
data = [
{
"color": "red",
"size": "big",
"data": "1"
},
You can’t perform that action at this time.