Skip to content

Instantly share code, notes, and snippets.

View niieani's full-sized avatar

Bazyli Brzóska niieani

View GitHub Profile
@niieani
niieani / app.html
Last active April 19, 2016 10:25
Aurelia: Repeater does not observe changes on the array returned from ValueConverter
<template>
<div repeat.for="text of components | test">
${text}<br>
</div>
</template>
@niieani
niieani / app.html
Last active April 19, 2016 10:26
Aurelia: Suboptimal repeat element lifecycle [alternative without compose + diff]
<template>
<require from="./component"></require>
<input type="checkbox" ref="isFiltering">
<br>
<component
repeat.for="id of components | without8: isFiltering.checked | diff"
id.bind="id"
></component>
</template>
@niieani
niieani / app.html
Last active April 17, 2016 17:41
Aurelia: Suboptimal repeat element lifecycle [alternative swap arrays]
<template>
<require from="./component"></require>
<button click.delegate="swapArrays()">Swap arrays</button>
<br>
<component
repeat.for="id of components"
id.bind="id"
></component>
@niieani
niieani / app.html
Last active April 18, 2016 20:51
Aurelia: Suboptimal repeat element lifecycle [alternative without compose]
<template>
<require from="./component"></require>
<input type="checkbox" ref="isFiltering">
<br>
<component
repeat.for="id of components | without8: isFiltering.checked"
id.bind="id"
></component>
</template>
@niieani
niieani / app.html
Last active September 7, 2021 13:54 — forked from jdanyow/app.html
Aurelia RequireJS Gist
<template>
<!-- Simple usage: -->
<h1>message: ${async(message).value}</h1>
<!-- With a placeholder: -->
<h1>message: ${async(message).value ? async(message).value : '...'}</h1>
</template>
@niieani
niieani / app.html
Last active September 14, 2016 13:00
Aurelia Gist [to document]
<template>
<require from="./test"></require>
compose: <compose view="test.html" view-model.bind="testInstance"></compose>
<hr/>
test: <compose view-model.bind="testInstance"></compose>
<div as-element="compose" view-model.bind="testInstance"></div>
</template>
@niieani
niieani / app.html
Last active June 7, 2025 16:53 — forked from jdanyow/app.html
Aurelia Gist
<template>
<require from="./test"></require>
compose: <compose view="test.html" view-model.bind="testInstance"></compose>
<hr/>
test: <test view-model.bind="testInstance"></test>
</template>
@niieani
niieani / app.html
Created March 25, 2016 00:01
Aurelia Gist [computedFrom not applying]
<template>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li repeat.for="row of router.navigation" class="${row.isActive ? 'active' : ''}">
<a data-toggle="collapse" data-target="#bs-example-navbar-collapse-1.in" href.bind="row.href">${row.title}</a>
</li>
</ul>
<div class="loader" if.bind="router.isNavigating">

Keybase proof

I hereby claim:

  • I am niieani on github.
  • I am bazyli (https://keybase.io/bazyli) on keybase.
  • I have a public key whose fingerprint is D887 700A A775 C40D 681A FBDF 5E6C A5FE 9FAB 5C55

To claim this, I am signing this object:

@niieani
niieani / bash-infinity-example.sh
Last active August 29, 2015 14:15
Example usage of Bash Infinity Framework ( http://invent.life/project/bash-infinity-framework )
# See info @ http://invent.life/project/bash-infinity-framework
Human Bazyli
Bazyli.height = 100
# calls a function with a parameter
Bazyli.Eat strawberries
Bazyli.Eat lemon
# calls tostring method