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
| # Oona Rรคisรคnen 2013 | |
| # http://windytan.com | |
| # ssh-keygen -l -f ~/.ssh/id_rsa.pub | perl emoji.pl | |
| @emoji = qw( ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฐ ๐ฑ ๐ฒ ๐ณ ๐ด ๐ต ๐ท ๐ธ | |
| ๐น ๐บ ๐ป ๐ผ ๐ฝ ๐พ ๐ฟ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ | |
| ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ | |
| ๐ ๐ ๐ ๐ ๐ ๐ก ๐ข ๐ฃ ๐ค ๐ฅ ๐ฆ ๐ง ๐จ ๐ฉ ๐ช ๐ซ | |
| ๐ฌ ๐ญ ๐ฎ ๐ฏ ๐ฐ ๐ฑ ๐ฒ ๐ณ ๐ด ๐ต ๐ถ ๐ท ๐ธ ๐น ๐บ ๐ป |
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
| // encode(decode) html text into html entity | |
| var decodeHtmlEntity = function(str) { | |
| return str.replace(/&#(\d+);/g, function(match, dec) { | |
| return String.fromCharCode(dec); | |
| }); | |
| }; | |
| var encodeHtmlEntity = function(str) { | |
| var buf = []; | |
| for (var i=str.length-1;i>=0;i--) { |
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
| 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 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
| /** | |
| * Creates a grid that you can click on. | |
| * @param options | |
| */ | |
| function createGrid(options) { | |
| // default options | |
| var defaultOptions = { | |
| gridViewOptions: { | |
| top: 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
| var win = Ti.UI.createWindow({ | |
| backgroundColor: 'white', | |
| top: 0, left: 0, right: 0, bottom: 0, | |
| layout: "vertical" | |
| }); | |
| var button = Ti.UI.createButton({ | |
| title: "click me" | |
| }); | |
| win.add(button); |
NewerOlder