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
{"value": false, "version": "3.12.27", "stop_all": false} |
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
rm -rf ~/.appcelerator | |
rm -rf ~/.titanium | |
sudo npm uninstall -g titanium | |
sudo npm uninstall -g alloy | |
sudo npm uninstall -g acs | |
sudo npm uninstall -g appcelerator | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.node.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* |
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
import org.appcelerator.titanium.util.TiRHelper; | |
import android.content.Context; | |
import java.lang.reflect.Field; | |
import org.appcelerator.titanium.util.TiRHelper.ResourceNotFoundException; | |
import org.appcelerator.kroll.common.Log; | |
public class RHelper { | |
public static int getString(String str) { | |
try { | |
return TiRHelper.getApplicationResource("string." + str); |
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
exports.MaskInteger = function(v){ | |
return v.replace(/\D/g,""); | |
}; | |
/*Função que padroniza telefone (11) 94184-1241*/ | |
exports.MaskTelephone = function(v){ | |
v=v.replace(/\D/g,""); | |
v=v.replace(/^(\d{2})(\d)/g,"($1) $2"); | |
v=v.replace(/(\d)(\d{4})$/,"$1-$2"); | |
return v; |
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
var THINGLINK; | |
/* | |
Enviar apenas o "src" adicionando "https:" | |
'<img style="max-width:100%" src="//cdn.thinglink.me/api/image/1038487784584642562/1024/10/scaletowidth#tl-1038487784584642562;" class="alwaysThinglink"/><script async charset="utf-8" src="//cdn.thinglink.me/jse/embed.js"></script>' | |
*/ | |
var Dailymotion; | |
/* | |
Exemplo |
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
// I was unhappy about there was close to no control over the "pageControl" | |
// in scrollableViews, so I hacked my own | |
// ----- | |
// Configuration | |
function PagingControl(scrollableView){ | |
var pages = []; | |
var page; | |
var numberOfPages = 0; | |