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
// I've only tested this with one code 128 font that I found here: http://freebarcodefonts.dobsonsw.com/ | |
// it's a .ttf so it can be embedded in your app | |
public static function getBarcode( $rawData :String ) :String | |
{ | |
var offset :Number = 32; | |
var highAscii :Number = 18; | |
var total :Number = 104; | |
var i :uint; | |
var len :uint; | |
var newCodeString :Vector.<Number> = new Vector.<Number>( $rawData.length + 3 ); |
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
# SDK Stuff | |
FLEX_HOME = /PATH_TO_FLEX_SDK_DIR_OVERLAID_W_AIR_2.6 | |
flex_libs = ${FLEX_HOME}/frameworks/libs | |
air_libs = ${flex_libs}/air | |
mxmlc = ${FLEX_HOME}/lib/mxmlc.jar | |
air_adl = ${FLEX_HOME}/bin/adl | |
air_adt = ${FLEX_HOME}/lib/adt.jar | |
# Project and current version | |
project.name = ProjectName |
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 com.client.projectname.device | |
{ | |
import com.greensock.TweenLite; | |
import org.osflash.signals.Signal; | |
import flash.events.AccelerometerEvent; | |
import flash.sensors.Accelerometer; | |
/** |
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 com.boyajian.ui | |
{ | |
import com.greensock.TweenLite; | |
import flash.display.DisplayObject; | |
import flash.display.DisplayObjectContainer; | |
import flash.display.Sprite; | |
import flash.display.Stage; | |
import flash.events.Event; |
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
APP_NAME = 'INSERT_DEVIL_WORSHIPPING_APP_NAME_HERE' | |
namespace :heroku do | |
namespace :db do | |
namespace :pull do | |
desc "Pulls staging db to local." | |
task :staging => :environment do | |
pull_db_locally("#{APP_NAME}-staging", "#{APP_NAME}_development") | |
end | |
desc "Pulls production db to local." |
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
// | |
// CDVSplashScreen+Overrides.h | |
// | |
// Created by boyajian on 9/10/13. | |
// | |
// | |
#import "CDVSplashScreen.h" | |
@interface CDVSplashScreen (Overrides) |
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
eventMethods = [ | |
'Ga', | |
'Ke', | |
'Nj', | |
'Og', | |
'T', | |
'addDomListener', | |
'addDomListenerOnce', | |
'addListener', | |
'addListenerOnce', |
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
roughSizeOfObject: (object) -> | |
objectList = [] | |
stack = [object] | |
bytes = 0 | |
while stack.length | |
value = stack.pop() | |
if typeof value is "boolean" | |
bytes += 4 | |
else if typeof value is "string" | |
bytes += value.length * 2 |
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
# keystore vars | |
keystore = 'path_to_your.keystore' | |
keystore_alias = 'alias_for_your_keystore' | |
keystore_password = 'password_for_your_keystore' | |
namespace :android do | |
namespace :google do | |
namespace :maps do | |
desc 'Generates a debug SHA1 specific to your machine.' | |
task :debug_sha do |
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
/(.+)@(.+)\.([a-z]{2,})/ |
OlderNewer