hello
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
testrsfsd |
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
https://twitter.com/soulstewmartin/status/530765744204951553 | |
> Der Song zur #gewinnsession: What Have I Done To Deserve This http://youtu.be/Wn9E5i7l-Eg | |
https://twitter.com/ThYpHoOn/status/530764562501742593 | |
> |
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
git co - |
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
window.addEventListener("keydown", function(e) { | |
e.preventDefault(); // seems to be sufficient to prevent most default shortcuts | |
// do something, e.g. custom save | |
}); |
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 listen(){}; | |
// register for capture phase | |
// 3rd param useCapture is set to true | |
someDomElement.addEventListener('click', listen, true); | |
// register for bubble phase | |
// 3rd param useCapture is set to false (default) | |
someDomElement.addEventListener('click', listen, false); |
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
<html> | |
<body> | |
<span>LocalStorage: </span> | |
<span id="localstorage-info" style="font-weight: bold"></span> | |
<script type="text/javascript"> | |
var localStorageInfoElement = document.querySelector('#localstorage-info') | |
try { | |
window.localStorage.setItem('moep', true); | |
localStorageInfoElement.textContent = 'Yep! :)'; |
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
var dog = { | |
get age () { | |
console.log('accessed age'); | |
return this._age; | |
}, | |
set age (age) { | |
console.log('set age'); | |
this._age = age; | |
} | |
}; |
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 name="exret" value="{ $END$ return $SELECTION$ }" description="explicit return" toReformat="true" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</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
const puppeteer = require('puppeteer'); | |
const queries = require('dom-testing-library/dist/queries'); | |
const fs = require('fs'); | |
async function createHelpers(page) { | |
await page.evaluateOnNewDocument( | |
fs.readFileSync( | |
'./node_modules/dom-testing-library/dist/dom-testing-library.umd.js', | |
'utf8' | |
) |