Skip to content

Instantly share code, notes, and snippets.

View bigopon's full-sized avatar
💭
Working

bigopon bigopon

💭
Working
View GitHub Profile
@bigopon
bigopon / index.html
Last active April 12, 2020 04:56 — forked from MaximBalaganskiy/index.html
tree-view-demo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dumber Gist</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<base href="/">
</head>
<!--
Dumber gist uses dumber bundler, the default bundle file
@bigopon
bigopon / index.html
Last active March 29, 2020 10:47
Compo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dumber Gist</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<base href="/">
</head>
<!--
Dumber gist uses dumber bundler, the default bundle file
@bigopon
bigopon / index.html
Last active March 15, 2020 05:05
test deepComputedFrom
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dumber Gist</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<base href="/">
</head>
<!--
Dumber gist uses dumber bundler, the default bundle file
@bigopon
bigopon / app.html
Last active July 2, 2019 09:49 — forked from koenbeuk/app.html
Aurelia Gist
<template>
<require from="style.css"></require>
<require from="custom-row.html"></require>
<table>
<tr as-element="custom-row"></tr>
</table>
</template>
@bigopon
bigopon / app.html
Last active February 24, 2019 08:07 — forked from rytmis/app.html
InheritBindingContext breaks refs
<template>
<require from="./parent-element"></require>
<h1>${message}</h1>
<parent-element />
</template>
@bigopon
bigopon / app.html
Last active February 14, 2019 23:09 — forked from Kla3mus/app.html
Aurelia with dynamic checkbox/radio functionality
<template>
<h1>Hello, ${fname}!</h1>
<hr>
<h4>You will notice that when changing checkboxes, they reflect their value properly, but when changing radio buttons, they keep their value when they have been selected once.</h4>
<div repeat.for="param of params">
<div if.bind="param.isCollection">
<div repeat.for="option of param.options">
<label mousedown.delegate="doClick(param.options, option)">
<input type="radio" checked.bind='option.selected' checked.one-way='option.selected & attr' name="opta">
@bigopon
bigopon / app.html
Last active November 30, 2018 11:09
Aurelia Map and Set Observer
<template>
<router-view></router-view>
</template>
@bigopon
bigopon / app.html
Created October 30, 2018 08:08
DI inheritance
<template>
<h1>${message}</h1>
<div class="form-group">
<label>input 1</label>
<input type="text" value.bind="input1">
</div>
<div class="form-group">
<label>input 2</label>
<input type="text" value.bind="myobject.input2 | checkUndefined">
@bigopon
bigopon / app.html
Last active October 24, 2018 11:53 — forked from Spaceman1861/app.html
Aurelia Gist
<template>
<require from="./sub-widget"></require>
<div repeat.for="log of logs">
<div>${log}</div>
</div>
<sub-widget></sub-widget>
</template>
@bigopon
bigopon / aurelia.esm.js
Created October 13, 2018 06:38 — forked from davismj/aurelia.esm.js
Static Aurelia Demo
const emptyMetadata=Object.freeze({}),metadataContainerKey=Symbol("meta");function AggregateError(t,e,i){if(e){if(e.innerError&&i)return e;const s="\n------------------------------------------------\n";t+=`${s}Inner Error:\n`,"string"==typeof e?t+=`Message: ${e}`:(e.message?t+=`Message: ${e.message}`:t+=`Unknown Inner Error Type. Displaying Inner Error as JSON:\n ${JSON.stringify(e,null," ")}`,e.stack&&(t+=`\nInner Error Stack:\n${e.stack}`,t+="\nEnd Inner Error Stack")),t+=s}let s=new Error(t);return e&&(s.innerError=e),s}"function"!=typeof Reflect.getOwnMetadata&&(Reflect.getOwnMetadata=function(t,e,i){if(e.hasOwnProperty(metadataContainerKey))return(e[metadataContainerKey][i]||emptyMetadata)[t]}),"function"!=typeof Reflect.defineMetadata&&(Reflect.defineMetadata=function(t,e,i,s){let r;i.hasOwnProperty(metadataContainerKey)?r=i[metadataContainerKey]:Reflect.defineProperty(i,metadataContainerKey,{configurable:!0,value:r={}}),(r[s]||(r[s]={}))[t]=e}),"function"!=typeof Reflect.metadata&&(Reflect.metadata=fu