Skip to content

Instantly share code, notes, and snippets.

View newtriks's full-sized avatar

Simon Bailey newtriks

View GitHub Profile
######################################
## PROJECT INFORMATION
######################################
## Developer info
AUTHOR = Simon Bailey
PROJECT.OWNER = Newtriks
PROJECT.OWNER.URL = http://www.newtriks.com
PROJECT.FULLNAME = Flex Ant Tasks Example
PROJECT.VERSION = 1.0.0 alpha
<?xml version="1.0"?>
<!-- ======================================================================
Flex ANT Build Script
- Deletes build and template directory
- Creates build, assets and templates directories
- Compiles release and debug swf's
- Connects to svn (Adobe Flex Opensource)
- Svn checkout of latest Flex SDK > templates > SWFObject
- Creates html wrappers for release and debug using SWFObject template
package
{
import flash.display.DisplayObject;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.geom.Point;
import mx.controls.List;
import mx.controls.listClasses.ListRowInfo;
import mx.core.mx_internal;
<?xml version="1.0"?>
<!-- Simple example to demonstrate the List Control -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#ffffff" backgroundGradientColors="[#ffffff,#ffffff]" xmlns:local="*" viewSourceURL="srcview/index.html">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var selectedItem:Object;
@newtriks
newtriks / JavaScript.sublime-build
Created November 5, 2012 16:22
Sublime Build File for JavaScript using (OS X) JSC
{
"cmd": ["/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc","$file"],
"selector": "source.js"
}
@newtriks
newtriks / angular-gulp-setup.md
Last active November 7, 2015 13:29
Project setup for: angular, gulp, bower, testem and protractor
  1. Install global dependencies: npm install -g browserify gulp bower testem protractor
  2. Install local npm dependencies: npm install
  3. Install local bower dependencies: gulp bowerInstall
  4. Install Protractor specific webdrivers: webdriver-manager update
  5. Build project into dist directory: gulp build
  6. Run application on local webserver plus watch for changes: gulp watch
  7. Run unit tests: testem
  8. Run end-to-end tests: gulp protractor (gulp watch must be running in as another process i.e. in another console window).
@newtriks
newtriks / HttpAction.elm
Created November 19, 2015 09:27 — forked from berndca/HttpAction.elm
Http.getString at startup
import StartApp
import Http
import Markdown
import Html exposing (Html, div, button, text)
import Html.Events exposing (onClick)
import Task exposing (Task)
import Effects exposing (Effects)
-- the URL of the README.md that we desire
readmeUrl : String
@newtriks
newtriks / buildfile
Created January 7, 2013 21:25
An example Flex buildfile for Buildr-AS3
require "fileutils"
require "buildr/as3" # needs - gem install buildr-as3 -v "0.2.30.pre"
# Version number for this release will become dynamic
VERSION_NUMBER = "0.0.1"
# Group identifier for your projects
GROUP = "com.newtriks"
COPYRIGHT = "newtriks.com"
@newtriks
newtriks / buildr-as3.sublime-build
Created January 7, 2013 21:37
Sublime-build file for running Buildr-as3
{
"cmd": ["/usr/local/bin/rbenv", "exec", "buildr", "compile"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.ruby"
}
@newtriks
newtriks / encodeaudio.sh
Created January 20, 2013 12:33
Join input audio files and encode to MP4 using ffmpeg
#!/bin/bash
# the version of the script
VERSION=1.0
echo "------------------------------------------"
echo "Audio Specific Concat Script v$VERSION - A script to concatenate multiple audio files and encode to MP4."
echo "Based on FFmpeg - www.ffmpeg.org and http://goo.gl/eDFeM"
echo "------------------------------------------"