Skip to content

Instantly share code, notes, and snippets.

View A6Brgeuka's full-sized avatar

Arshan Naranov A6Brgeuka

View GitHub Profile
async function delay(ms) {
return new Promise(res => {
setTimeout(res, ms)
})
}
async function findElement(selector, attemps = 10) {
if (!attemps) {
throw Error(`not found ${selector}`);
}
@A6Brgeuka
A6Brgeuka / test
Last active March 23, 2020 21:06
console.time()
var users = {
'userId1': {
'01-02-2020': true,
'02-02-2020': true
},
'userId2': {
'02-02-2020': true
},
'userId3': {
var users = {
'userId1': {
'01-02-2020': true,
'02-02-2020': true
},
'userId2': {
'02-02-2020': true
},
'userId3': {
'03-02-2020': true
import Ember from 'ember';
import Component from '@ember/component';
export default Ember.Controller.extend({});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
currentUser: Ember.computed(function () {
return this.store.createRecord('user', {name:'current'})
}),
users: Ember.computed(function() {
@A6Brgeuka
A6Brgeuka / .bash_profile
Created March 19, 2018 06:40
My git aliases
alias gs='git status'
alias go='git checkout'
alias gb='git branch'
alias gd='git diff'
alias gc='git commit'
alias ga='git add'
alias gph='git push'
alias gpl='git pull'
@A6Brgeuka
A6Brgeuka / async-for-each.js
Last active February 24, 2018 17:48
async-for-each
export default async (array, callback) => {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array)
}
}
@A6Brgeuka
A6Brgeuka / controllers.application.js
Last active February 21, 2018 17:03 — forked from samselikoff/controllers.application.js
Mirage 0.3 Dev Boilerplate
import Ember from 'ember';
export default Ember.Controller.extend({
});
@A6Brgeuka
A6Brgeuka / .eslintrc
Created February 16, 2018 10:36
Ember rest spread
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
ecmaFeatures: {
'experimentalObjectRestSpread': true,
}
},
extends: 'eslint:recommended',
@A6Brgeuka
A6Brgeuka / .block
Last active February 9, 2017 15:23
vertical boxplot
license: mit