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> |
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
| // | |
| // LoadImage.h | |
| // AssetsFromPDF | |
| // | |
| // Created by Jeffrey Sambells on 2012-03-02. | |
| // | |
| #import <Foundation/Foundation.h> | |
| @interface LoadImage : NSObject |
| <?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; |
| # ~/.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 |
| set expandtab | |
| set shiftwidth=4 | |
| set softtabstop=4 | |
| set tabstop=4 | |
| set autoindent | |
| set backspace=2 | |
| set nocompatible | |
| set noerrorbells | |
| set esckeys |
| 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) |
| // urls:https://projects.zoho.com/* | |
| // Inject so we're running in the document context | |
| function inject(newScript) { | |
| var oScript = document.createElement("script"); | |
| oScript.language = "javascript"; | |
| oScript.type = "text/javascript"; | |
| oScript.text = newScript; | |
| document.getElementsByTagName('BODY').item(0).appendChild(oScript); | |
| } |
| #import "AppDelegate.h" | |
| // install XcodeColors plugin https://github.com/robbiehanson/XcodeColors | |
| // install KZLinkedConsole plugin https://github.com/krzysztofzablocki/KZLinkedConsole | |
| // Include cocoalumberjack in your pods | |
| // pod 'CocoaLumberjack', '~> 1' | |
| // NOTE this will work for version 2 as well, just need to tweak it. | |
| #import <CocoaLumberjack/DDASLLogger.h> | |
| #import <CocoaLumberjack/DDTTYLogger.h> |
| /** | |
| * Will return version from properties file and replace -SNAPSHOT by GIT commit hash | |
| * to recognize origin commit for the every build. | |
| */ | |
| project.ext.evalVersionName = { | |
| def ideBuild = project.properties['android.injected.invoked.from.ide'] | |
| if (ideBuild) { | |
| logger.info("IDE build"); | |
| return "dev" | |
| } else if (project.VERSION.toUpperCase().contains("SNAPSHOT")) { |