This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<ListView | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_height="fill_parent" | |
android:layout_width="fill_parent" | |
android:cacheColorHint="#00000000" | |
android:fadingEdge="none"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected static function scaleImage(bitmapData:BitmapData, width:Number, height:Number):BitmapData | |
{ | |
// Calculate the scaled size. | |
var scale:Number; | |
var scaledWidth:Number; | |
var scaledHeight:Number; | |
scale = Math.min(width/(bitmapData.width as Number), height/(bitmapData.height as Number)) | |
scaledHeight = bitmapData.height * scale; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
Michael Ritchie | |
mister@thanksmister.com | |
Copyright 2011 ThanksMister LLC | |
--> | |
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:mx="library://ns.adobe.com/flex/mx"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @authors Michael Ritchie | |
* @twitter @thanksmister | |
* @version Sept 11, 2012 | |
* | |
* Use: | |
* <controls:MaskedImage source="assets/imageToMask.png" height="200" width="200" maskImage="assets/mask.png"/> | |
* The mask image can be any shaped, just make it in Photoshop, but should be smaller than the image you wish to mask. | |
* Try just making a black mask shape and saving it out as .png file with alpha. | |
* */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
public class TimeZoneUtil | |
{ | |
import com.adobe.utils.DateUtil; | |
/** | |
* List of timezone abbreviations and matching GMT times. | |
* Modified form original code at: | |
* http://blog.flexexamples.com/2009/07/27/parsing-dates-with-timezones-in-flex/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/mosquitto/conf.d/mosquitto.conf | |
# Bridge to HA | |
connection snips-ha | |
# bridge_cafile /etc/mosquitto/ | |
bridge_insecure true | |
address 192.168.86.228:1883 | |
cleansession false | |
clientid snips | |
start_type automatic | |
#username _your user_ |
OlderNewer