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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{HTTP_ACCEPT} image/webp | |
| RewriteCond %{DOCUMENT_ROOT}/$1.webp -f | |
| RewriteRule ^(wp-content/uploads.+)\.(jpe?g|png)$ $1.webp [T=image/webp,E=accept:1] | |
| </IfModule> | |
| <IfModule mod_headers.c> | |
| Header append Vary Accept env=REDIRECT_accept | |
| </IfModule> |
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
| /* The images for this example can be downloaded from http://j.mp/loadingimagesforti */ | |
| var win = Ti.UI.createWindow({ backgroundColor: '#f00'}); | |
| var loading = Ti.UI.createImageView({ | |
| images: [ | |
| 'images/loading/00.png', 'images/loading/01.png', 'images/loading/02.png', | |
| 'images/loading/03.png', 'images/loading/04.png', 'images/loading/05.png', | |
| 'images/loading/06.png', 'images/loading/08.png', 'images/loading/09.png', | |
| 'images/loading/10.png', 'images/loading/11.png' | |
| ], | |
| width: 33, height: 33 |
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 tracer = {}; | |
| (function() { | |
| tracer.levels = {}; | |
| tracer.levels.DEBUG = 1; | |
| tracer.levels.INFO = 2; | |
| tracer.levels.WARN = 3; | |
| tracer.levels.ERROR = 4; | |
| tracer.levels.OFF = 5; | |
| tracer.allTracers = []; |
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
| #!/bin/bash | |
| # How to install | |
| # curl https://gist.github.com/kopiro/8859612/raw -o /usr/local/bin/ti-resize | |
| # How to use | |
| # Put all your assets @2x in your $TITANIUM_PROJECT/assets | |
| # Open Terminal | |
| # ti-resize (in your Titanium Project directory) |
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
| /* | |
| Hello, I have tested this issue in Ti SDK 3.3.0.RC. Its working good. | |
| Testing Environment: | |
| Titanium SDK: 3.3.0.RC, 3.2.3.GA | |
| Titanium CLI: 3.2.3 | |
| IOS Simulator 7.1 | |
| Appcelerator Studio, build: 3.3.0.201406271159 | |
| */ |
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
| /* | |
| Hello, I have tested this issue in Ti SDK 3.3.0.RC. Its working good. | |
| Testing Environment: | |
| Titanium SDK: 3.3.0.RC, 3.2.3.GA | |
| Titanium CLI: 3.2.3 | |
| IOS Simulator 7.1 | |
| Appcelerator Studio, build: 3.3.0.201406271159 | |
| */ |
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
| module.exports = function(grunt) { | |
| // Project configuration. | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| installr_settings: { | |
| releaseNotes: grunt.file.read("./CHANGELOG.txt") | |
| }, | |
| titanium: { | |
| build_ios: { // build for ios first |
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
| // The currentUser lib stores a model representing the logged in user, and other login state information | |
| var currentUser = require('currentUser'); | |
| // Logger is a Ti.API.info() wrapper with a bit more flexibility | |
| var logger = require('logger'); | |
| var messageQueue = []; // put this into local storage at some point to retain recent offline events before crashes | |
| var messageInTransit = null; | |
| var token = Ti.App.Properties.getString('mixpanel.token'); | |
| var systemProperties = { | |
| mobile_osname: Ti.Platform.osname, |
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
| From: | |
| Chris Barber <cbarber@appcelerator.com> | |
| To: | |
| "Jerry.Porter@gulfstream.com" <Jerry.Porter@gulfstream.com>, | |
| "titans@lists.appcelerator.org" <titans@lists.appcelerator.org>, | |
| Date: | |
| 04/09/2014 01:21 AM | |
| Subject: | |
| Re: [Appcelerator Titans] Auto increment <version> in tiapp.xml |
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
| function handleOnce(funct) { | |
| var flag = false; | |
| return function(e) { | |
| if (flag) return; | |
| flag = true; | |
| setTimeout(function() { | |
| flag = false; | |
| }, 0); | |
| funct(e); |