Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Podcasting, Firebase, Svelte

Nikos quantuminformation

💭
Podcasting, Firebase, Svelte
View GitHub Profile
@quantuminformation
quantuminformation / cloudSettings
Created Jul 21, 2018
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2018-07-21T10:18:51.556Z","extensionVersion":"v3.0.0"}
View gist:8b9b5d7a6b6714638bb7ae376c98e654
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define("SolarPopup", [], factory);
else if(typeof exports === 'object')
exports["SolarPopup"] = factory();
else
root["SolarPopup"] = factory();
})(this, function() {
View feed-me-to-code-generator.json
{
"shouldBeNumber1": "1",
"shouldBeString1": ".1",
"shouldBeBoolean1": "false",
"shouldBeFragment1": {
"FshouldBeNumber1": "1",
"FshouldBeString1": "bar",
"FshouldBeBoolean1": "false"
}
}
@quantuminformation
quantuminformation / getUniqueQueryPathToDomEventTarget
Created Jul 18, 2015
Get unique query selector for element
View getUniqueQueryPathToDomEventTarget
/**
*
* @param e event from the DOM that we want to workout the testing path.
*/
getUniqueQueryPathToDomEventTarget: function (e) {
let hasEmberIdRegex = /ember[\d]+/;
if (e.target.id && !hasEmberIdRegex.test(e.target.id)) {
return "#" + e.target.id;
} else {
let path = e.path.reverse().slice(2); //remove the window and document path sections
View designer.html
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
You can’t perform that action at this time.