Skip to content

Instantly share code, notes, and snippets.

View carlosrovira's full-sized avatar

Carlos Rovira carlosrovira

View GitHub Profile
@carlosrovira
carlosrovira / TableImageLogoItemRenderer.mxml
Created July 22, 2020 11:29
A table item renderer that needs to redraw the image due to different domains and security settings
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2020, Codeoscopic S.A. - All Rights Reserved
Unauthorized copying of this file, via any medium is strictly prohibited
Proprietary and confidential
Copyright (C) 2020, Codeoscopic S.A. - Todos Los Derechos Reservados
La copia no autorizada de este archivo, a través de cualquier medio está estrictamente prohibida
Privado y confidencial
@carlosrovira
carlosrovira / mvn-royale.sh
Last active March 12, 2020 11:14
Build Royale with Maven and create SDK
#!/bin/bash
SDK_FOLDER="/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven"
#remove old SDK
#rm -rf "$SDK_FOLDER"
#stty -echo
cd $ROYALE_COMPILER_HOME
#git pull -v --progress "origin"
@carlosrovira
carlosrovira / broyale.sh
Last active April 12, 2023 16:10
Build Royale (new script)
#!/bin/bash
SDK_FOLDER="/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven"
#stty -echo
cd $ROYALE_COMPILER_HOME
#git pull -v --progress "origin"
#stty echo
#echo Royale Compiler updated from repo
if [[ $? != 0 ]]; then
#!/bin/bash
#stty -echo
cd $ROYALE_COMPILER_HOME
#git pull -v --progress "origin"
#stty echo
#echo Royale Compiler updated from repo
if [[ $? != 0 ]]; then
echo "Error:Build stopped - check for git conflicts in COMPILER"
exit 0
@carlosrovira
carlosrovira / App.mxml
Created October 17, 2019 14:44
600 Followers in Twitter
<j:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:j="library://ns.apache.org/royale/jewel"
xmlns:js="library://ns.apache.org/royale/basic">
<j:valuesImpl>
<js:SimpleCSSValuesImpl/>
</j:valuesImpl>
<fx:Script>
<![CDATA[
@carlosrovira
carlosrovira / gist:7895435
Last active December 30, 2015 22:39
CSS for MaskedTextInput
////////////////////////////////////////////////////////////////////////////////
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@carlosrovira
carlosrovira / gist:7895322
Last active December 30, 2015 22:39
Spark Masked Text Input Component. Second Draft (near 1.0 version)
////////////////////////////////////////////////////////////////////////////////
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0