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
Ti.include('lib/htmlparser.js'); | |
Ti.include('lib/soupselect.js'); | |
var select = soupselect.select; | |
var body = '<html><head><title>Test</title></head>' | |
+ '<body>' | |
+ '<img src="http://l.yimg.com/mq/i/home/HKGallery.gif" />' | |
+ '<div id="block">' | |
+ ' <div class="row">Row 1</div>' |
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
<!doctype html> | |
<html ng-app="Demo" ng-controller="AppController"> | |
<head> | |
<meta charset="utf-8" /> | |
<title> | |
Lazy Loading Images With AngularJS | |
</title> | |
<style type="text/css"> |
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
Titanium has no built in Unit Test as Xcode/ObjC and Android Java have | |
Jasmine and Ti-mocha are the two main unit test frameworks for titanium | |
Jasmine runs without requiring the app to run | |
Ti-mocha runs while the app is running | |
Using T-Mocha |
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
#!/bin/bash | |
#================================================================ | |
# Let's Encrypt renewal script for Apache on Ubuntu/Debian | |
# @author Erika Heidi<[email protected]> | |
# Usage: ./le-renew.sh [base-domain-name] | |
# More info: http://do.co/1mbVihI | |
#================================================================ | |
domain=$1 | |
le_path='/opt/letsencrypt' | |
le_conf='/etc/letsencrypt' |