Skip to content

Instantly share code, notes, and snippets.

View niieani's full-sized avatar

Bazyli Brzóska niieani

View GitHub Profile
@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

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 / XFormatterHelper.php
Created September 29, 2011 12:54
XFormatterHelper for Symfony2 Console - formatting multiple blocks side-by-side
<?php
/**
* By: Bazyli Brzóska
* Date: 25.09.2011
* Time: 01:09
*/
namespace Tools;
use \Symfony\Component\Console\Helper\FormatterHelper;
@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">
@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 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
Created April 19, 2016 14:47
Aurelia: Suboptimal repeat element lifecycle [alternative without compose + diff + temp]
<template>
<require from="./component"></require>
<input type="checkbox" ref="isFiltering">
<br>
<component
repeat.for="id of components | without8: isFiltering.checked | diff: proxy"
id.bind="id"
></component>
</template>
@niieani
niieani / app.html
Last active April 19, 2016 16:47
Aurelia: Suboptimal repeat element lifecycle [alternative swap arrays + diffing + deepCompare]
<template>
<require from="./component"></require>
<button click.delegate="swapArrays()">Swap arrays</button>
<br>
<component
repeat.for="obj of componentsProxy"
id.bind="obj.id"
></component>