Skip to content

Instantly share code, notes, and snippets.

@connatser
connatser / github.js
Created March 1, 2012 17:43
gistJS sample
README: http://fitzgen.github.com/github-api/
Repo: https://github.com/fitzgen/github-api/blob/master/github.js
@connatser
connatser / _assets.yml
Created December 29, 2011 16:45
Rake web deploy
javascript_compressor: yui
gzip_assets: off
javascripts:
scripts:
- _source/libs/jquery-1.5.min.js
- _source/libs/jquery.address-1.4.min.js
- _source/src/myShit.js
- _source/src/moreOfMyShit.js
@connatser
connatser / RakeFile
Created September 17, 2011 22:45
Guard rake
desc "Parse haml layouts"
task :parse_haml do
print "Parsing Haml layouts..."
system(%{
cd _source/_layouts/haml &&
for f in *.haml; do [ -e $f ] && haml $f ../${f%.haml}.html; done
})
puts "done."
end
@connatser
connatser / hydraulic_as3_build
Created June 19, 2011 06:33
Sample AS3 build script
<project name="My Project" default="init">
<!-- load previously defined configuration properties file -->
<property file="build.properties" />
<property name="APP_ROOT" value="DEPLOY" />
<!-- points to our flexTasks.jar we copied to the libs folder to distribute with the project -->
<taskdef resource="flexTasks.tasks" classpath="${basedir}/lib/flexTasks.jar" />
<!-- Initialize the targets -->
@connatser
connatser / hyd_proj_init
Created June 17, 2011 13:16
Sample projInit
<project name="Flex Ant Tasks Build Script" default="init">
<!-- load previously defined configuration properties file -->
<property file="build.properties" />
<property name="APP_ROOT" value="DEPLOY"/>
<!-- points to our flexTasks.jar we copied to the libs folder to distribute with the project -->
<taskdef resource="flexTasks.tasks" classpath="${basedir}/libs/flexTasks.jar" />
<!-- delete and create the DEPLOY dir again -->
@connatser
connatser / hyd_build_props
Created June 17, 2011 13:07
Sample build.properties
CO_NAME = mycompany
PROJ_NAME = myproject
APP_DOCS = ${basedir}/doc
ASSETS = ${DEPLOY_DIR}/assets
BUILD_ASSETS = ${basedir}/build_assets
DEPLOY_DIR = ${basedir}/bin
LIBS_DIR =${basedir}/lib
PROJ_COMMON_LIBS = //CHANGE THIS TO THE PATH TO YOUR COMMONLY USED LIBRARIES
package com.numbknuckle.model {
import com.numbknuckle.events.FobEvents;
import flash.display.MovieClip;;
/**
* @author Brian Connatser
*/
public class AssetConversion extends MovieClip {
private var _assetsXML : XML;