This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Self executing loop staggered with delete requests to deal with local GH js rerenders | |
// Experiment with the timedelay of 1000 by default | |
var buttons = Array.from(document.querySelectorAll('button[title^="Delete "]')); | |
function loopIt(x) { | |
setTimeout(() => { | |
buttons[x].click(); | |
if(x < buttons.length -1) loopIt(x+1); | |
}, 1000); | |
}; | |
loopIt(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div v-click-outside="hide" class="changelog"> | |
<div class="anchor"><!-- This is a Icon we use --></div> | |
</div> | |
</template> | |
<script> | |
import uuid from 'uuid/v4' | |
import ClickOutside from 'vue-click-outside' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* globals Vue, Vuex */ | |
import { merge, entries } from 'lodash' | |
const rootNodeSelector = '#page[vue-app]' // Entry point on the page to support global components | |
let iterator = 1 | |
window.appHasBeenSetupOnce = false // Added support for loading multiple apps on one page | |
function setup (rootComponentNeedSeperateMount) { | |
window.appHasBeenSetupOnce = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createLocalVue, shallow } from 'vue-test-utils' | |
import VueRouter from 'vue-router' | |
import Vuex from 'vuex' | |
import moxios from 'moxios' | |
import Overview from '../../resources/assets/js/components/Overview.vue' | |
const factory = function() { | |
const localVue = createLocalVue() | |
localVue.use(VueRouter) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Model { | |
constructor(arr = []) { | |
if (!_.isArray(arr)) | |
throw new Error('First model param needs to be an Array!') | |
this._collection = new Array(...arr) | |
} | |
/** | |
* Get size |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Navigating to pages | |
# | |
visit '/account' | |
visit account_path(account) | |
# | |
# Assertions (URL) | |
# | |
expect(page).to have_current_path('user/edit') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# As I understand it | |
# 1. When Build is Finished - GET ERRORS FROM THE SERVER | |
# 2. Collect Errors for the whole build | |
# 3. Show those Errors | |
# 4. Allow to click on any error to make it disappear | |
# WHAT I FOUND SPLITTED INTO 2 FILES | |
# GLOBAL Variables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This approach was initally inspired by Bourbons (bourbon.io) approach on packing CSS Selectors together in one | |
* variable so you can easily do stuff with a group of selectors. | |
* Since the SASS 3.4 release you don't need any extra mixins to append classes or pseudo-classes on a selector list. | |
*/ | |
// Our Collection of input types we want to bind together | |
$_inputs-list:'input[type="email"]', | |
'input[type="number"]', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== Slim::Template.new('partials/_test.slim').render |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* mailConverter Script | |
* author: Roman Kuba, Codebryo | |
* web: codebryo.com | |
* | |
*/ | |
// Lets pretend you want to have mail-address on your website but maybe want to protect it from being grabbed through bots | |
// This script turns a textelement into an useable link | |
// It removes spaces and replaces [at] with @ and [dot] with . |
NewerOlder