This file contains 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
I am attesting that this GitHub handle dasDaniel is linked to the Tezos account tz1dXovduNQ9zTxJVivtZmaRFxS7QqAegpNg for tzprofiles | |
sig:edsigtycMG9n29mefM7YSJjdfD1NtVLwS8mcqQjXCsz7LQjjEyQww5tUvhuGVbuTVAQXgfJCWdCdzMJM7nRoi361Wkn1Eo5XBGG |
This file contains 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
const spyConsoleLog = () => { | |
let logs = []; | |
const findLog = fragment => logs.find(message => (message + "").indexOf(fragment) >= 0); | |
Cypress.on("window:before:load", win => { | |
let clog = win.console.log; | |
win.console.log = (...arg) => { | |
logs.push(arg.join(" ")); | |
clog.apply(console, arg); | |
}; | |
}); |
This file contains 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
#!/bin/bash | |
echo -n "Continue (y/n)? " | |
read answer | |
if [ "$answer" != "${answer#[Yy]}" ] ;then | |
echo Yes | |
install_thing | |
else | |
echo No |
This file contains 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
function withWrapperArray(wrapperArray) { | |
return { | |
childSelectorHasText: (selector, str) => wrapperArray.filter(i => i.find(selector).text().match(str)), | |
hasText: (str) => wrapperArray.filter(i => i.text().match(str)), | |
areVisible: () => wrapperArray.wrappers.filter(w => w.isVisible()).length, | |
areHidden: () => wrapperArray.wrappers.filter(w => !w.isVisible()).length, | |
areAllVisible: () => wrapperArray.wrappers.every(w => w.isVisible()), | |
areAllHidden: () => wrapperArray.wrappers.every(w => !w.isVisible()), | |
} | |
} |
This file contains 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
function onGLC(glc) { | |
glc.loop(); | |
glc.size(400, 400); | |
glc.setDuration(1.5); | |
glc.setFPS(30); | |
glc.setMode('single'); | |
glc.setEasing(false); | |
glc.styles.backgroundColor = "#000000"; | |
var list = glc.renderList, | |
width = glc.w, |
This file contains 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 functional> | |
<div :class="['alert', data.class, data.staticClass].join(' ')" :style="data.style"> | |
<slot name="icon"> | |
</slot> | |
<slot name="body"> | |
</slot> | |
</div> | |
</template> |
This file contains 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
/* | |
<div class="el-with-whitespace> | |
No spaces at the end | |
</div> | |
*/ | |
await t.expect(await Selector('.el-with-whitespace').innerText.then(v => v.trim())).eql('No spaces at the end') | |
// it requires the `await t` otherwise the element doesn't check the updated value |
This file contains 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
<div id="demo" class="demo"> | |
<button v-on:click="add">Add</button> | |
<canvas id="assetcanvas" width="200" height="200"></canvas> | |
</div> |
This file contains 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
merge = _.merge; |
This file contains 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
<link rel="import" href="../core-field/core-field.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<polymer-element name="my-element"> |
NewerOlder