Skip to content

Instantly share code, notes, and snippets.

Sergei Egorov bsideup

Block or report user

Report or block bsideup

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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:

View refactor.groovy
given:
Integer a
Integer b
match:
a.equals(b)
replaceWith:
a == b
View perf.groovy
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)
"""
View TestView.as
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;
View Test.hx
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;
View Test.mxml
<?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>
View A.hx
class A
{
public var aString:String;
public var innerString : String;
public var anotherInnerString : String;
@hxmrDefaultProperty public var children : Array<B>;
View gist:5830726
<?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>
View ButtonSkin.mxml
<?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>
View generated.as
/**
* 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
*/
You can’t perform that action at this time.