This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
status=$(git -c color.status=always status -s) | |
if [ "$status" == "" ]; then | |
printf "Nothing to commit\n" | |
exit 1 | |
fi | |
printf "%s\n\nEnter your commit message, or cancel with Ctrl+C:\n" "$status" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Loopy = function(control, list) { | |
if (!control || control.apiName.substr(0,5) !== "Ti.UI") { | |
var html = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, "layers.html"); | |
var markup = '<html><head></head><body>'; | |
var toWrap = ''; | |
list.forEach(function(item) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$username = 'xxx'; | |
$password = 'xxx'; | |
$host = 'http://xxx'; | |
$issue = 'KEY-000'; | |
if (count($_POST) > 0) { | |
$body = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'), | |
http = require('http'); | |
http.createServer(function (req, res) { | |
fs.readFile(__dirname + "/." + req.url.split("?")[0], function (err,data) { | |
if (err) { | |
res.writeHead(404); | |
res.end(JSON.stringify(err)); | |
return; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A wrapper for http://billdawson.github.io/ti-android-animation/, | |
* to make the API more like the regular Ti.UI.Animation | |
* | |
* Notes: | |
* - I haven't added a wrapper for "curving" yet | |
* - Added "scale", "translateX" and "translateY" as separate properties that can be used instead of "transform" on iOS | |
* - You can only set "top" and "left" on Android, "right" or "bottom" doesn't work (since the position is animated in X or Y) | |
* - AnchorPoint doesn't seem to work on Android | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
JS_PATH="_js" | |
FINAL_JS="scripts.js" | |
SASS_PATH="_sass" | |
FINAL_CSS="." | |
echo " ≫ Building and minifying assets." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
JS_PATH="_js" | |
FINAL_JS="scripts.js" | |
SASS_PATH="_sass" | |
FINAL_CSS="." | |
sha=0 | |
previous_sha=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type mogrify >/dev/null 2>&1 || { echo >&2 "» This script requires mogrify. Please install ImageMagick first!"; exit 1; } | |
rm -rf Resources/android/images | |
mkdir Resources/android/images | |
mkdir Resources/android/images/res-xhdpi | |
mkdir Resources/android/images/res-mdpi | |
echo " » Copying the splash screen" | |
cp Resources/iphone/Default.png Resources/android/images/res-mdpi/default.png | |
cp Resources/iphone/[email protected] Resources/android/images/res-xhdpi/default.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modified https://gist.github.com/9281 to validate a remote URI instead. | |
# Wouldn't surprise me if a better CLI-tool is already available, but hey, | |
# we might improve it later. Also: Pretty colors! | |
task :validate, :site_uri do | t, args| | |
require 'net/http' | |
require 'w3c_validators' | |
include W3CValidators |