This file contains 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 an example in having a date picker popup and when set, it saves the value to a textfield | |
var win = Ti.UI.createWindow({ | |
backgroundColor : 'blue', | |
}); | |
var picker = Ti.UI.createPicker({ | |
}); |
This file contains 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 win1 = Ti.UI.createWindow({ | |
backgroundColor : '#fff', | |
exitOnClose : true, | |
navBarHidden : true, | |
//layout : 'vertical' | |
}); | |
var viewbot = Ti.UI.createView({ | |
}); |
This file contains 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
/* ACS Push Notification Sample | |
* created by: Carter Lathrop | |
* | |
* This is a small sample app on using push notifications. In order to register your device for push notifcations | |
* there are a couple steps you must take to ensure your device is connected to the cloud. First, a user must | |
* be logged in. Then push notifications must be enabled, in this app there is a switch to enable/disable it. | |
* Then a user must subscribe to a channel. A channel is pipeline for sending notifications, designed for a | |
* way to send notifications through a certain channel so that only people subscribed to the channel "racecar", | |
* for example, will recieve notifications about racecars. In this example app though, there is only support | |
* for sending push notifications from the web server, a push from the web will go to all devices that are |
This file contains 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 = Titanium.UI.createWindow(); | |
var scanner = Titanium.UI.createView({ | |
width : 260, | |
height : 200, | |
borderColor : 'red', | |
borderWidth : 5, | |
borderRadius : 15 | |
}); |
This file contains 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 Cloud = require('ti.cloud'); | |
var win = Ti.UI.createWindow({ | |
backgroundColor : 'white', | |
layout : 'vertical' | |
}); | |
var sv = Ti.UI.createScrollView({ | |
backgroundColor : '#fff', | |
contentWidth : 300, |
This file contains 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 = Titanium.UI.createWindow({ | |
backgroundColor: 'black', | |
fullscreen: false | |
}); | |
//-------Views to hold content------- | |
var winView1 = Ti.UI.createScrollView({ | |
top: 0, | |
height: '85%', |
This file contains 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
<!-- HTML --> | |
<div class="col-sm-6"> | |
<a href="#" class="thumbnail"> | |
<div class="caption"> | |
title<br/>3 x bekeken | |
</div> | |
<div class="image"> | |
<img src="" class="img img-responsive full-width" /> | |
</div> | |
</a> |
This file contains 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 | |
# This nifty script hunts for mp3 files within a specified dir | |
# (default is ~/Downloads) and moves them to the "Automatically | |
# Add to Itunes" folder in the ITUNES_HOME dir | |
itunesAuto="${ITUNES_HOME}/iTunes Media/Automatically Add to iTunes/" | |
downloadsDir="${HOME}/Downloads" | |
files=$(shopt -s nullglob dotglob; echo $downloadsDir/*.mp3) |
This file contains 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
################################################################################# | |
# Add personal setup here. | |
# give a nickname to this machine for reference purposes on cli | |
export HOSTNICK="rd35" | |
parse_git_branch() { | |
git branch 2>/dev/null | grep \* | sed -ne 's#\* ##p' | awk -F / '{print " [GIT:"$0 "]"}' | |
} |
This file contains 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
set ts=4 | |
set autoindent | |
set number | |
set showmode |
OlderNewer