Example:
Jeffreys-MacBook-Air$ ant example
Buildfile: /Users/jsambells/Documents/example/build.xml
[echo] Parsing properties
[echo] greeting=Hello
[echo] audience=world
example:
[echo] Hello world
| module Jekyll | |
| class PostPublisher < Generator | |
| safe false | |
| def replace(filepath, regexp, *args, &block) | |
| content = File.read(filepath).gsub(regexp, *args, &block) | |
| File.open(filepath, 'wb') { |file| file.write(content) } | |
| end | |
| def generate(site) |
| set expandtab | |
| set shiftwidth=4 | |
| set softtabstop=4 | |
| set tabstop=4 | |
| set autoindent | |
| set backspace=2 | |
| set nocompatible | |
| set noerrorbells | |
| set esckeys |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return | |
| #; This will check the Operating System type so we can case on it later | |
| UNAME="`uname -s`" | |
| export UNAME |
| <?php | |
| function plist2json($child) { | |
| switch($child->nodeName) { | |
| case 'dict': | |
| $d = new StdClass(); | |
| $nodes = $child->childNodes; | |
| for($i = 0; $i < $nodes->length; $i++){ | |
| if ($nodes->item($i)->nodeName == 'key'){ | |
| $key = $nodes->item($i)->textContent; |
| // | |
| // LoadImage.h | |
| // AssetsFromPDF | |
| // | |
| // Created by Jeffrey Sambells on 2012-03-02. | |
| // | |
| #import <Foundation/Foundation.h> | |
| @interface LoadImage : NSObject |
Example:
Jeffreys-MacBook-Air$ ant example
Buildfile: /Users/jsambells/Documents/example/build.xml
[echo] Parsing properties
[echo] greeting=Hello
[echo] audience=world
example:
[echo] Hello world
| <?php | |
| $username = 'jsambells'; | |
| $opml = '<?xml version="1.0" encoding="ISO-8859-1"?> | |
| <opml version="1.0"> | |
| <head> | |
| <dateCreated>'.date('d-M-Y').'</dateCreated> | |
| </head> | |
| <body> |