Execute "tishadow run" in your Titanium app directory whenever a JavaScript file changes. Edit your JS files in a text editor, save, then switch to the test device or simulator. Profit.
[sudo] npm install -g supervisor
// This is an example of use. | |
// Here we use the new Bearer Token thats make it possible to get tweets without user login | |
// More info on Bearer here: https://dev.twitter.com/docs/auth/application-only-auth | |
// Full Codebird API is here: https://github.com/mynetx/codebird-js | |
var Codebird = require("codebird"); | |
var cb = new Codebird(); | |
cb.setConsumerKey('CONSUMER_KEY', 'CONSUMER_SECRET_KEY'); | |
var bearerToken = Ti.App.Properties.getString('TwitterBearerToken', null); |
/** | |
* @method slideIn | |
* Makes the specified view appear using a "slide-in" animation, it will automatically | |
* detect where the view is offscreen and bring it into the user's vison. | |
* @param {Titanium.UI.View} view View to animate. | |
* @param {Number} duration Fade duration in milliseconds. | |
* @param {function()} [finishCallback] Callback function, invoked after the popIn completes. | |
*/ | |
exports.slideIn = function (view, duration, finishCallback) { | |
Execute "tishadow run" in your Titanium app directory whenever a JavaScript file changes. Edit your JS files in a text editor, save, then switch to the test device or simulator. Profit.
[sudo] npm install -g supervisor
After running vagrant up
and logging into the box with vagrant ssh
You'll want to edit /vagrant/gitlabhq/config/gitlab.yml
to your dedired settings for your dev environment, as well as change the default user to the vagrant
user as the default git
user does not exist:
# Uncomment and customize if you can't use the default user to run GitLab (default: 'git')
user: vagrant
exports.definition = | |
config: | |
adapter: | |
type: "rest" | |
name: "Agent" | |
extendModel: (Model) -> | |
_.extend Model::, | |
url: -> |
# Deployment server info | |
set :application, "APP NAME" | |
set :domain, "APP DOMAIN NAME" | |
set :deploy_to, "/path/on/live/server" | |
set :app_path, "app" | |
set :web_path, "web" | |
set :maintenance_basename, "maintenance" | |
# SCM info | |
set :repository, "GIT REMOTE REPO URL" |
/** | |
* | |
* this code was inspired by the work done by David Riccitelli | |
* | |
* Copyright 2011 Aaron K. Saunders, Clearly Innovative Inc | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |