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
@mixin assetBackground($file) { | |
background: url('/assets/icons/file-extensions/' + $file + '.png') no-repeat; | |
text-indent: 40px; | |
display: block; | |
height: 42px; | |
line-height: 42px; | |
} | |
.asset { | |
.PDF {@include assetBackground(pdf);} |
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
@fields = { | |
email: Ti.UI.createTextField(_.defaults({hintText: L("login.textFields.email"), returnKeyType: Ti.UI.RETURNKEY_NEXT, keyboardType: Ti.UI.KEYBOARD_EMAIL}, d.textField)), | |
password: Ti.UI.createTextField(_.defaults({hintText: L("login.textFields.password"), passwordMask: true, returnKeyType: Ti.UI.RETURNKEY_GO}, d.textField)) | |
} | |
@view.add(f) for f in _.values(@fields) |
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
controller = 'reports' | |
str = %{ | |
map.reports '/reports', :action => 'index' | |
map.reports_by_month '/reports/by_month', :action => 'by_month' | |
map.report_for_client '/reports/client/:id', :action => 'client' | |
} | |
scans=str.scan(/[a-z]+\.(\S+)\s+(\'.*\'),\s+:action\s+=>\s+'(.*)'/) | |
matches = scans.collect {|scan| "match #{scan[1]} => '#{controller}##{scan[2]}', :as => '#{scan[0]}'"}; nil | |
matches.each {|m| puts m }; nil |
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 url = "http://maps.google.com/maps/ms?ie=UTF&msa=0&msid=217110902183005084784.00049d962454fabcabdc2&output=kml"; | |
//Add routes from a remote KML file to one map | |
goog.maps.kml.addRoutesToMap(mySingleMap, url); | |
//Multiple Maps | |
goog.maps.kml.addRoutesToMap([myGoogleMap1, myGoogleMap2], url); |
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
E/TiDrawableReference( 4561): (AsyncTask #1) [1283,30714] Problem opening stream with url http://10.0.1.4:3000/system/assets/38/original/video_view_bree.jpg?1298468488: Permission denied | |
E/TiDrawableReference( 4561): java.io.IOException: Permission denied | |
E/TiDrawableReference( 4561): at java.io.File.createNewFileImpl(Native Method) | |
E/TiDrawableReference( 4561): at java.io.File.createNewFile(File.java:1160) | |
E/TiDrawableReference( 4561): at org.appcelerator.titanium.util.TiResponseCache.put(TiResponseCache.java:241) | |
E/TiDrawableReference( 4561): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.putToCache(HttpURLConnectionImpl.java:973) | |
E/TiDrawableReference( 4561): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.readServerResponse(HttpURLConnectionImpl.java:1365) | |
E/TiDrawableReference( 4561): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.sendRequest(HttpURLConnectionImpl.java:1339) | |
E/TiDrawableReference( 4561 |
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
function urlencode (str) { | |
str = (str+'').toString(); | |
return encodeURIComponent(str).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+'); | |
}; | |
function http_build_query(formdata, numeric_prefix, arg_separator){ | |
var value, key, tmp = [], that = this; | |
var _http_build_query_helper = function (key, val, arg_separator) { | |
var k, tmp = []; |
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
Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2) | |
from /usr/lib/rubyee/1.8/net/smtp.rb:551:in `initialize' | |
from /usr/lib/rubyee/1.8/net/smtp.rb:551:in `open' | |
from /usr/lib/rubyee/1.8/net/smtp.rb:551:in `do_start' | |
from /usr/lib/rubyee/1.8/timeout.rb:62:in `timeout' | |
from /usr/lib/rubyee/1.8/timeout.rb:93:in `timeout' | |
from /usr/lib/rubyee/1.8/net/smtp.rb:551:in `do_start' | |
from /usr/lib/rubyee/1.8/net/smtp.rb:525:in `start' | |
from /data/winealign3/releases/20101015172220/vendor/rails/actionmailer/lib/action_mailer/base.rb:681:in `perform_delivery_smtp' | |
from /data/winealign3/releases/20101015172220/vendor/rails/actionmailer/lib/action_mailer/base.rb:523:in `__send__' |
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 monthYearPicker = Titanium.UI.createPicker({selectionIndicator: true}); | |
var monthsColumn = Ti.UI.createPickerColumn(); | |
var yearsColumn = Ti.UI.createPickerColumn(); | |
var months = "January,February,March,April,May,June,July,August,September,October,November,December".split(','); | |
months.each(function(m){ | |
monthsColumn.addRow( Ti.UI.createPickerRow({title: m}) ); | |
}); |
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
Wibblz-MBP:android nate$ /Applications/Titanium\ Developer.app/Contents/MacOS/Titanium\ Developer --debug | |
Resolved: (runtime 1.0.0) /Library/Application Support/Titanium/runtime/osx/1.0.0 | |
Resolved: (api 1.0.0) /Library/Application Support/Titanium/modules/osx/api/1.0.0 | |
Resolved: (javascript 1.0.0) /Library/Application Support/Titanium/modules/osx/javascript/1.0.0 | |
Resolved: (tianalytics 1.0.0) /Library/Application Support/Titanium/modules/osx/tianalytics/1.0.0 | |
Resolved: (tiapp 1.0.0) /Library/Application Support/Titanium/modules/osx/tiapp/1.0.0 | |
Resolved: (tifilesystem 1.0.0) /Library/Application Support/Titanium/modules/osx/tifilesystem/1.0.0 | |
Resolved: (tiplatform 1.0.0) /Library/Application Support/Titanium/modules/osx/tiplatform/1.0.0 | |
Resolved: (tiui 1.0.0) /Library/Application Support/Titanium/modules/osx/tiui/1.0.0 | |
Resolved: (python 1.0.0) /Library/Application Support/Titanium/modules/osx/python/1.0.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
[INFO] Launching Android emulator...one moment | |
[DEBUG] From: /opt/android-sdk/tools/emulator | |
[DEBUG] SDCard: /Users/nate/.titanium/android2.sdcard | |
[DEBUG] AVD ID: 1 | |
[DEBUG] AVD Skin: loading... | |
[DEBUG] SDK: /opt/android-sdk | |
[INFO] Creating new Android Virtual Device (1 loading...) | |
[TRACE] Error: 'loading...' is not a valid skin name or size (NNNxMMM) | |
[TRACE] Traceback (most recent call last): | |
[TRACE] File "/Library/Application Support/Titanium/mobilesdk/osx/1.4.0/android/builder.py", line 991, in <module> |