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
| svnVer=`sh /etc/profile; which svnversion` | |
| appBuild=`"$svnVer" | sed -e 's/:[0-9]\{1,\}//' | sed -e 's/[^0-9]//g'` | |
| /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $appBuild" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" | |
| /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $appBuild" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}.dSYM/Contents/Info.plist" | |
| echo "Incremented the build number ${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" |
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
| /** | |
| * Parses a valid time string from ANY string that is passed to it | |
| * | |
| * @param {string} time | |
| * @return {object} a Date object in a Moment wrapper | |
| * @private | |
| */ | |
| function parseTime(time) { | |
| var ampm, currentDay, hour, minute, timeArray; |
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
| /* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011 | |
| * http://benalman.com/ | |
| * Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */ | |
| (function($) { | |
| var o = $({}); | |
| $.subscribe = function() { | |
| o.on.apply(o, arguments); |
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
| (function(vod, $j){ | |
| vod.PaginationController = function(){}; | |
| $j.extend(vod.PaginationController.prototype, { | |
| attributes: { | |
| endIndex: 1, | |
| itemsPerPage: 25, | |
| itemsPerRow: 5, |
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
| gup: function(name){ | |
| name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); | |
| var regexS = "[\\?&]"+name+"=([^&#]*)"; | |
| var regex = new RegExp(regexS); | |
| var results = regex.exec(window.location.href); | |
| if (results == null) { | |
| return ''; | |
| } else { | |
| return results[1]; | |
| } |
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
| trim: function(str, max){ | |
| if(str.length > max){ | |
| str = str.substring(0, max-4)+" ..."; | |
| } | |
| return str; | |
| } // trim() |
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
| dataBind: function(data, ctrl){ | |
| var regexp = null; | |
| for (var key in data) { | |
| regexp = new RegExp("{" + key + "}","gi"); | |
| ctrl = ctrl.replace(regexp, data[key]); | |
| } | |
| return ctrl; | |
| } // dataBind() |
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
| if (typeof String.prototype.supplant !== 'function') { | |
| String.prototype.supplant = function (o) { | |
| return this.replace(/{([^{}]*)}/g, | |
| function (a, b) { | |
| var r = o[b]; | |
| return typeof r === 'string' ? r : a; | |
| }); | |
| }; | |
| } | |