Skip to content

Instantly share code, notes, and snippets.

View bsideup's full-sized avatar

Sergei Egorov bsideup

View GitHub Profile

Keybase proof

I hereby claim:

  • I am bsideup on github.
  • I am bsideup (https://keybase.io/bsideup) on keybase.
  • I have a public key whose fingerprint is 08B0 9F78 7B67 45E7 96CE 6DBE 1003 06F2 B379 3BF3

To claim this, I am signing this object:

given:
Integer a
Integer b
match:
a.equals(b)
replaceWith:
a == b
CompilerConfiguration configuration = new CompilerConfiguration()
configuration.disabledGlobalASTTransformations = Collections.singleton(MacroTransformation.name);
def normalShell = new GroovyShell(configuration);
def macroShell = new GroovyShell();
def r = benchmark {
'macro' {
macroShell.evaluate """
assert "bytes" == propertyName("".bytes)
"""
class View extends h2d.comp.Box {
public var h2d_comp__label0:h2d.comp.Label;
public var h2d_comp__button0:h2d.comp.Button;
public var h2d_comp__button1:h2d.comp.Button;
public var h2d_comp__button2:h2d.comp.Button;
public var h2d_comp__button3:h2d.comp.Button;
public var h2d_comp__box1:h2d.comp.Box;
public var h2d_comp__box0:h2d.comp.Box;
public var __checkboxView0:CheckboxView;
public var __checkboxView1:CheckboxView;
@bsideup
bsideup / Test.hx
Last active December 19, 2015 07:09
package ml;
class Test extends A {
/**
autogenerated NodeScope field TInst(deep.B,[])
**/
public var deep__b3:deep.B;
/**
autogenerated NodeScope field TInst(deep.B,[])
**/
public var deep__b4:deep.B;
@bsideup
bsideup / Test.mxml
Last active December 18, 2015 19:49
<?xml version="1.0" encoding="utf-8" ?>
<ans:A ans:aString="1" xmlns:ans="*" xmlns:deep="deep.*" >
<deep:B id="myB" test="123" prop="asValue">
<deep:anotherB>
<deep:B>
<deep:anotherB>
<deep:B test="100500" prop="thirdValue" />
</deep:anotherB>
</deep:B>
@bsideup
bsideup / A.hx
Last active December 18, 2015 19:39
class A
{
public var aString:String;
public var innerString : String;
public var anotherInnerString : String;
@hxmrDefaultProperty public var children : Array<B>;
<?xml version="1.0" encoding="utf-8" ?>
<ans:A generic:type="haxe.Timer" ans:aString="1" xmlns:ans="*" xmlns:deep="deep.*" xmlns:generic="http://haxe.org/hxmr/generic">
<deep:B id="myB" generic:type="haxe.Timer" test="123" deep:prop="asValue"/>
<ans:innerString>
<String id="myString" />
</ans:innerString>
</ans:A>
<?xml version="1.0"?>
<containers:ContainerBase xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:image="ru.trylogic.gui.components.image.*"
xmlns:textfield="ru.trylogic.gui.components.textField.*"
xmlns:containers="ru.trylogic.gui.containers.*">
<fx:Metadata>
[HostComponent("ru.trylogic.gui.components.button.Button")]
</fx:Metadata>
/**
* Generated by mxmlc 4.0
*
* Package: ru.trylogic.gui.components.button
* Class: ButtonSkin
* Source: /Users/bsideup/Dropbox/Work/_VersionControlled_/GitHub/TrylogicGUI/src/main/flex/ru/trylogic/gui/components/button/ButtonSkin.mxml
* Template: flex2/compiler/mxml/gen/ClassDef.vm
* Time: 2012.09.14 15:11:14 MSK
*/