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 wv = Ti.UI.createWebView(); | |
| var pdf = require('pdf'); | |
| wv.addEventListener('pdf', function (event) { | |
| pdf(event.url, event.cookies, function (err) { | |
| if (err) alert(err); | |
| }); | |
| }); |
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
| <?xml version="1.0" encoding="utf-8" standalone="yes" ?> | |
| <T3DataStructure> | |
| <meta type="array"> | |
| <langDisable>1</langDisable> | |
| </meta> | |
| <sheets> | |
| <general> | |
| <ROOT type="array"> | |
| <TCEforms> | |
| <sheetTitle>Spalten (normal)</sheetTitle> |
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
| <?php | |
| class Shopware_Plugins_Frontend_OrderMod_Bootstrap extends Shopware_Components_Plugin_Bootstrap | |
| { | |
| /** | |
| * (non-PHPdoc) | |
| * @see Shopware_Components_Plugin_Bootstrap::install() | |
| */ | |
| public function install() | |
| { |
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
| /* | |
| * Android API Guide | |
| * http://developer.android.com/guide/topics/ui/actionbar.html | |
| * Android Design Guide | |
| * http://developer.android.com/design/patterns/actionbar.html | |
| * Titanium Mobile will support someday | |
| * https://jira.appcelerator.org/browse/TIMOB-2371 | |
| */ | |
| var osName = Ti.Platform.osname, | |
| isAndroid = osName==='android', |
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
| /** | |
| * @author Dario Marcelino | |
| */ | |
| var defaultHintTextColor = 'gray'; | |
| var filter = function (/*Object*/ source){ | |
| var newObj = {}; | |
| for(name in source){ |
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
| /* | |
| Make the Facebook Like box responsive (fluid width) | |
| https://developers.facebook.com/docs/reference/plugins/like-box/ | |
| */ | |
| /* This element holds injected scripts inside iframes that in some cases may stretch layouts. So, we're just hiding it. */ | |
| #fb-root { | |
| display: none; | |
| } |
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
| This is a simple CommonJS module to wrap Titanium Ti.Network.HttpClient calls to interact with Drupal Services. | |
| NOTE: Code updated at @TiConf using callback functions. | |
| Tested using: | |
| Drupal 6.24 | |
| Services 3.1 | |
| Titanium Mobile SDK 1.8.2 (Android 2.2 SDK) |
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
| /* | |
| * nginx configuration snippet for dynamic image manipulation using HttpImageFilterModule | |
| * | |
| * URL example: http://www.yourserver.com/imgresize/250-100-0/demo.jpg | |
| * Parameters are width-height-rotation | |
| * You need to compile nginx with --with-http_image_filter_module | |
| * More information at http://wiki.nginx.org/HttpImageFilterModule | |
| */ | |
| location ~/imgresize/(?P<width>[0-9]+)-(?P<height>[0-9]+)-(?P<rotate>[0-9]+)/(?P<filename>.+)$ { | |
| rewrite /imgresize/[0-9]+-[0-9]+-[0-9]+/(.+)$ /images/$1 break; |