This file contains 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 readContentFromFile(file) | |
{ | |
return require('fs').readFileSync(file).toString(); | |
} | |
function writeContentToFile(file, content) | |
{ | |
require('fs').writeFileSync(file, content); | |
} |
This file contains 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 isProduction(alloyConfig) | |
{ | |
return 'production' == alloyConfig.deploytype; | |
} | |
function removeUnimportantLogCallsFromContent(content) | |
{ | |
if (!content) { | |
return; | |
} |
This file contains 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 | |
foreach (getAllTssFilenames() as $tssfile){ | |
echo "\nSearching for unused styles in $tssfile:\n"; | |
outputUnusedStyles($tssfile); | |
} | |
function getAllTssFilenames() | |
{ | |
return glob('app/styles/*.tss'); |
This file contains 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 | |
// usage: php -d memory_limit=256M titanium_mobile_apidoc_2_sublimetext.php > Tita.sublime-completions | |
function shorten_titanium($key) | |
{ | |
return str_replace('Titanium', 'Ti', $key); | |
} | |
function get_completions($content) | |
{ | |
$processed = array(); |