Skip to content

Instantly share code, notes, and snippets.

View Armer7's full-sized avatar
💭
Open to job opportunities

Aleksey Poslushnyak Armer7

💭
Open to job opportunities
  • Kramatorsk
View GitHub Profile
@Armer7
Armer7 / .eslintignore
Created April 4, 2023 08:50 — forked from jakecobley/.eslintignore
ESLint configuration extending Airbnb's and VueJS's configurations (targeting JavaScript and VueJS files).
################################################################################
# Node
################################################################################
node_modules
################################################################################
# Compiled Directories & Files
################################################################################
@Armer7
Armer7 / ToggleSwitch.vue
Created July 4, 2022 13:19 — forked from Jonarod/ToggleSwitch.vue
Simple custom Toggle Switch button for Vue.js, compatible with v-model.
/**
* @usage:
*
* <ToggleSwitch :trueFalseLabels="['On','Off']" :trueFalseColors="['#1CD4A7','#ccc']" v-model="isOn" />
*
* data() {
* return {
* isOn: false
* }
* }
@Armer7
Armer7 / RadioBox.vue
Last active July 4, 2022 20:19 — forked from Jonarod/RadioBox.vue
Simple custom Radio component for Vue.js, compatible with v-model.
/**
* it's works for value as Object
* @usage:
*
* <RadioBox label="Foo" value="foo" v-model="MySelectedValue" />
* <RadioBox label="Bar" value="bar" v-model="MySelectedValue" />
* <RadioBox label="Baz" value="baz" v-model="MySelectedValue" />
*
* data(){
* return {
@Armer7
Armer7 / CheckBox.vue
Last active July 4, 2022 20:18 — forked from Jonarod/CheckBox.vue
Simple custom CheckBox component for Vue.js, compatible with v-model.
/**
* It's works for value as Object
* @usage:
*
* <CheckBox label="Foo" value="foo" v-model="MySelectedValues" />
* <CheckBox label="Bar" value="bar" v-model="MySelectedValues" />
* <CheckBox label="Baz" value="baz" v-model="MySelectedValues" />
*
* data(){
* return {
@Armer7
Armer7 / blob_conversions_util.js
Created July 4, 2022 13:19 — forked from Jonarod/blob_conversions_util.js
Javascript utility to convert Blob to Base64, ImageData or ObjectUrl back and forth. Tree shakeable and promise based.
const BlobToBase64 = function(blob){
let blobUrl = URL.createObjectURL(blob);
return new Promise((resolve, reject) => {
let img = new Image();
img.onload = () => resolve(img);
img.onerror = err => reject(err);
img.src = blobUrl;
}).then(img => {
URL.revokeObjectURL(blobUrl);