Skip to content

Instantly share code, notes, and snippets.

View alexnaspo's full-sized avatar

Alex Naspo alexnaspo

  • LeapYear
  • New York, NY
View GitHub Profile
@alexnaspo
alexnaspo / gist:9e3f2bdf4e6400c4be74
Created September 23, 2014 17:48
backgrid datetimepicker cell with bootstrap 3
# create a datetimepicker cell when using backgrid and the bootstrap3-datetimepicker
# this can be modified to work with other datepicker libraries
# http://eonasdan.github.io/bootstrap-datetimepicker/
# http://backgridjs.com/
MyDatePickerCellEditor = Backgrid.InputCellEditor.extend(
events: {}
initialize: ->
Backgrid.InputCellEditor::initialize.apply this, arguments
input = this
@alexnaspo
alexnaspo / form.js
Last active December 14, 2015 09:38
for the use of my blog
var username = Ti.UI.createTextField({
width:Ti.UI.FILL,
hintText:'Email',
height:'40dp',
backgroundColor:'#fff'
});
var line = Ti.UI.createView({
width:Ti.UI.FILL,
height:'1dp',
@alexnaspo
alexnaspo / fieldContainer.js
Last active December 14, 2015 09:29
Field Container for purposes of my blog post
var fieldContainer = Ti.UI.createView({
backgroundColor:'#fff',
borderRadius:5,
width:'80%',
height:Ti.UI.SIZE,
layout:'vertical'
});
@alexnaspo
alexnaspo / login.js
Last active October 12, 2015 17:08
easy facebook app style username/password fields using Appcelerator
var fieldContainer = Ti.UI.createView({
backgroundColor:'#fff',
borderRadius:5,
width:'80%',
height:Ti.UI.SIZE,
layout:'vertical'
});
var username = Ti.UI.createTextField({
width:Ti.UI.FILL,