Skip to content

Instantly share code, notes, and snippets.

View davidtucker's full-sized avatar

David Tucker davidtucker

View GitHub Profile
@davidtucker
davidtucker / manifestGenerator
Created December 15, 2010 20:32
Generate a Flex Library manifest XML file via Ant by utilizing Flex metadata.
<!--
==========================================================================
Macro: generateManifestFile
Creates a manifest file for components using the [Manifest( "ComponentName" )]
metadata.
==========================================================================
-->
<macrodef name="generateManifestFile">
<attribute name="outputFile" default="${basedir}/manifest.xml" />
<attribute name="sourceDirectory" default="src" />
@davidtucker
davidtucker / SampleComponent.js
Created February 9, 2012 02:23
Sample EaselJS Component
// Sample EaselJS Component
(function (window) {
function SampleComponent () {
this.initialize();
}
SampleComponent.prototype = new Shape();
@davidtucker
davidtucker / Main.js
Created February 9, 2012 02:28
Sample Sencha Touch View
Ext.define("CoffeeHunter.view.Main", {
extend: "Ext.TabPanel",
xtype: "main",
config: {
tabBarPosition: "bottom",
ui: "brown",
items: [
{
xtype: "locations",
@davidtucker
davidtucker / httpd.conf
Created February 14, 2012 03:30
Sample Apache Alias Entry
Alias /st2 /Projects/SenchaTouch2
<Directory "/Projects/SenchaTouch2">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
@davidtucker
davidtucker / output.txt
Created February 14, 2012 15:31
Output from ST2 Power Tools Generator Demonstration
> generateSenchaTouch2Project.sh
----------------------------------
SENCHA TOUCH 2 PROJECT GENERATOR
----------------------------------
Developed by David Tucker (http://www.davidtucker.net)
Project Hosted on Github (https://github.com/davidtucker/senchaTouch2Tools)
This code is licensed with an MIT License which can be viewed at
http://www.opensource.org/licenses/mit-license.php
{% extends "layout.html" %}
{% block canonical %}{{ url }}{{ page.url }}{% endblock %}
{% block title %}{{ page.title }}{% endblock %}
{% block meta %}
{{ super() }}
{% if page.metadata.keywords %}<meta name="keywords" content="{{ page.metadata.keywords }}">{% endif %}
{% endblock %}
{% block content %}
<div class="row">
<div class="twelve columns">
---
title: About David Tucker
subtitle: Software developer and architect, author, speaker, and digital strategist
author: David tucker
date: 2013-01-02
template: about.html
keywords: david tucker,developer,architect,author,speaker
changefreq: monthly
priority: 0.7
---
@davidtucker
davidtucker / example1.js
Last active December 28, 2015 08:09
Node Example 1 - Simple Web Server
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('The Web Server is Running\n');
}).listen(8095);
console.log('Server Running on Port 8095');
@davidtucker
davidtucker / package.json
Last active December 28, 2015 08:59
Simple package.json File
{
"name" : "sample-node-application",
"version" : "0.0.1",
"author" : "David Tucker"
}
@davidtucker
davidtucker / install.sh
Created November 15, 2013 01:11
Installing Dependencies with NPM
# Installing Express and Socket.io
npm install express --save-dev
npm install socket.io --save-dev
# Installing Dependencies (for other developers)
npm install
# Updating Dependencies (if new versions were released)
npm update