Skip to content

Instantly share code, notes, and snippets.

View rozd's full-sized avatar
🛸

Max Rozdobudko rozd

🛸
  • Freelance
  • Kyiv, Ukraine
View GitHub Profile
public class Order
{
[ChoiceType("Book")]
public var books:Array;
}
public class Book
{
[Required]
public var isbn:String;
<order>
<book isbn="0942407296"
title="Rain"
author="Karen Duve" />
<book isbn="0953892201"
title="Perfume"
author="Patrick Suskind"
comment="Special Offer">
Some description
</book>
@rozd
rozd / gist:3910895
Created October 18, 2012 10:23
as3-states-proof-of-concept
States.host(this)
.state("disabled")
.child("titleLabel")
.width(100).height(100)
.size(100, 100)
.x(10).y(23)
.position(10, 23)
.text("disabeled state")
.set("textFormat", tf)
.end()
@rozd
rozd / Export Layers To Files.jsx
Last active November 1, 2022 23:07
Modified Photoshop's "Export Layers To Files" script.
// Copyright 2007. Adobe Systems, Incorporated. All rights reserved.
// This script will export each layer in the document to a separate file.
// Written by Naoki Hada
// ZStrings and auto layout by Tom Ruark
/*
@@@BUILDINFO@@@ Export Layers To Files.jsx 1.0.0.16
*/
/*
@rozd
rozd / PlainButton.as
Last active July 14, 2016 09:40
Flash simple button
import flash.display.DisplayObjectContainer;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.TextFormatAlign;
class PlainButton extends Sprite
{
@rozd
rozd / HyperlinkTextBlockTextRenderer.as
Created August 15, 2014 11:55
HyperlinkTextBlockTextRenderer
package feathersx.controls.text
{
import feathers.controls.text.TextBlockTextRenderer;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.text.engine.ContentElement;
import flash.text.engine.ElementFormat;
import flash.text.engine.GroupElement;
import flash.text.engine.TextElement;
@rozd
rozd / FixUnresponsiveTouch.as
Created June 12, 2016 08:56
Fixes issue with significantly short delay between TOUCH_BEGIN and TOUCH_END events at the bottom of the Adobe AIR NOT full screen application.
/**
* Created by max on 6/12/16.
*/
package
{
import flash.display.Stage;
import flash.events.TimerEvent;
import flash.events.TouchEvent;
import flash.utils.Timer;
import flash.utils.getTimer;
@rozd
rozd / copy_resources.rb
Created July 29, 2016 09:13
Starling-Framework/util/idea/copy_resources.rb
#!/usr/bin/ruby
require "rexml/document"
require "fileutils"
include REXML
platforms = ["ios", "android", "air-desktop"]
script_name = File.basename(__FILE__)
if ARGV.count < 3
@rozd
rozd / kill-adl.sh
Last active April 5, 2018 07:50
Kill all ADL processes
#!/bin/sh
echo killing adl...
pkill -HUP adl > /dev/null
echo killed
#
@rozd
rozd / CurrentUer.swift
Last active July 12, 2019 19:22
CurrentUser Swift implementation for iOS
//: Playground - noun: a place where people can play
import Foundation
// MARK: Infrastructure
/// Contract for remote user service
protocol UserService {
func signIn(completion handler: (User?) -> ())
}