Skip to content

Instantly share code, notes, and snippets.

View shouse's full-sized avatar

Steven shouse

  • SIVCI
  • Kansas City, MO
View GitHub Profile
@curiousstranger
curiousstranger / gist:309035
Created February 19, 2010 18:51
Unlock osx keychain from the command line. Must approve access via 'Keychain Access' before using
security unlock-keychain; security find-generic-password -ga /Users/mruser/.ssh/id_dsa 2>&1 > /dev/null
@dawsontoth
dawsontoth / RecordingVideo.js
Created February 17, 2011 19:43
How to record video, then share or save it. Using Appcelerator Titanium!
/**
* This sample lets you record and share video with Appcelerator Titanium on Android.
* REQUIRES THE 1.6.0 RC OF TITANIUM MOBILE SDK
* http://developer.appcelerator.com/blog/2011/02/release-candidate-for-titanium-mobile-1-6-0.html
*/
/**
* First, create our UI. We'll have two buttons: record, and share.
*/
var win = Titanium.UI.createWindow({
@lamberta
lamberta / ti-tools.sh
Created April 14, 2011 06:48
Command line interface for creating and building Titanium Mobile Android projects.
#!/usr/bin/env bash
## Command line interface for creating and building Titanium Mobile Android projects.
TI_SRC="$HOME/local/src/titanium_mobile"
TI_SDK="$TI_SRC/dist/mobilesdk/linux/1.7.0"
TI_VERSION_TAG="1_7_0_preview"
ANDROID_HOME=${ANDROID_HOME:-"$HOME/local/lib/android-sdk"}
JAVA_HOME=${JAVA_HOME:-"/usr/lib/jvm/java-6-sun"} #sun-java6-sdk
PROJECT_HOME="$HOME/projects/ti"
var win = Ti.UI.createWindow({backgroundColor:'#ccc'});
var isRunning = false;
var btn = Ti.UI.createButton({
title:'start',
bottom:10,
height:50,
left:10,
right:10
});
var slider = Ti.UI.createSlider({
@gcoop
gcoop / app.js
Created May 19, 2011 13:40
Basic example of using the accelerometer in Appcelerator's Titanium Mobile.
// Create tab group
var tabGroup = Titanium.UI.createTabGroup({
barColor: "black"
});
// Create home tab.
var win = Ti.UI.createWindow({
title: "Record"
});
// Tab for the recording pane.
@jeffbonnes
jeffbonnes / tracer.js
Created September 12, 2011 01:10
A tracer object to Titanium Mobile to show elapsed time and memory usage
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 = [];
@spicycode
spicycode / tmux.conf
Created September 20, 2011 16:43
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@Jaybles
Jaybles / UIDeviceHardware.h
Created October 28, 2011 19:33
UIDeviceHardware - Determine iOS device being used
//
// UIDeviceHardware.h
//
// Used to determine EXACT version of device software is running on.
#import <Foundation/Foundation.h>
@interface UIDeviceHardware : NSObject
- (NSString *) platform;
@minhnc
minhnc / app.js
Created February 28, 2012 02:23
Music Player
var win = Ti.UI.createWindow({backgroundColor: 'white'});
var player = null;
var info = Ti.UI.createLabel({
text:'',
height:'auto',
width:'auto',
top:200
@v-yarotsky
v-yarotsky / .tmux.conf
Created March 22, 2012 11:57
Mac OS X tmux config
### INSTALLATION NOTES ###
# 1. Install Homebrew (https://github.com/mxcl/homebrew)
# 2. brew install zsh
# 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh)
# 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace
# 5. Install iTerm2
# 6. In iTerm2 preferences for your profile set:
# Character Encoding: Unicode (UTF-8)
# Report Terminal Type: xterm-256color
# 7. Put itunesartist and itunestrack into PATH