Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
dir="/Users/dave/Sites/"
project=""
# Check for Git
type -P git &>/dev/null || { echo "Git is not installed. Exiting." >&2; exit 1; }
# Get a project name
while [ -z "$project" ]
do
@daveWid
daveWid / site_generator.sh
Created January 13, 2011 19:37
Simple Site Generator
#!/bin/bash
site=""
prefix="output"
# Loop through the variables
while [ "$1" != '' ]
do
case $1 in
-u| --url )
shift
@daveWid
daveWid / Remove Transparecy.js
Created January 20, 2011 23:09
Remove Transparency from Illustrator Files
/**
* Run through all of the paths and turn the transparency to
* 100% to avoid problems in flash.
*/
var Transparency = {
total: 0,
// Removes all of the transparency
@daveWid
daveWid / PaintStreaks.as
Created February 20, 2011 02:21
Paint Streaks Document Class
import net.davewidmer.flint.Streaks;
var streaks:Streaks = new Streaks();
addChild(streaks);
streaks.start();
@daveWid
daveWid / Streaks.as
Created February 20, 2011 02:22
Paint Streaks Class
/**
* Paint-like Streaks using the Flint particle generator.
*
* @author Dave Widmer
*/
package net.davewidmer.flint
{
import flash.filters.BlurFilter;
import flash.geom.Point;
import flash.geom.Rectangle;
@daveWid
daveWid / SnowFall.as
Created February 20, 2011 02:24
Flint Snowfall Document Class
import net.davewidmer.flint.Snow;
var snowfall:Snow = new Snow();
addChild(snowfall);
snowfall.start();
@daveWid
daveWid / Snow.as
Created February 20, 2011 02:24
Snow Class for the Flint Particle system
/**
* Snowfall using the Flint particle generator.
*
* @author Dave Widmer
*/
package net.davewidmer.flint
{
import flash.geom.Point;
import net.davewidmer.display.BaseSprite;
@daveWid
daveWid / BaseSprite.as
Created February 20, 2011 02:27
BaseSprite for Flash based projects
/**
* The BaseSprite is the foundation for all of the display objects
* that are used in this set of classes.
*
* @author Dave Widmer
* @see http://www.davewidmer.net
*
* @license MIT (http://www.opensource.org/licenses/mit-license.php)
* @copyright 2010 © Dave Widmer
*/
@daveWid
daveWid / twitter_feed_parser.php
Created February 20, 2011 02:45
A simple function to parse a Twitter post
<?php
/**
* Formats a tweet with links
*
* @author Dave Widmer
* @see http://www.davewidmer.net
*
* @param string Tweet
* @return string Formatted Tweet
@daveWid
daveWid / phpunit.xml
Created February 25, 2011 19:31
PHPUnit configuration file
<phpunit bootstrap="public/index.php" colors="true" verbose="true">
<testsuites>
<testsuite name="PHPUnit Test Suite">
<file>31x/modules/unittest/tests.php</file>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>kohana</group>
</exclude>