This file contains hidden or 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
if params[:version] == 2 | |
render :template => 'blah' | |
else | |
render :template => 'foo' | |
end |
This file contains hidden or 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
##---------------Begin: proguard configuration common for all Android apps ---------- | |
-optimizationpasses 5 | |
-dontusemixedcaseclassnames | |
-dontskipnonpubliclibraryclasses | |
-dontskipnonpubliclibraryclassmembers | |
-dontpreverify | |
-verbose | |
-dump class_files.txt | |
-printseeds seeds.txt | |
-printusage unused.txt |
This file contains hidden or 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
private static final String PERCENT_PATTERN = "((^[0]$)|(^[1-9]\\d*$))"; | |
TextWatcher mTextWatcher = new TextWatcher() { | |
@Override | |
public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) { | |
} | |
@Override | |
public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) { | |
if (!charSequence.toString().matches(PERCENT_PATTERN)) { | |
String userInput = "" + charSequence.toString().replaceAll("[^\\d]", ""); |
This file contains hidden or 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
07-22 11:55:26.972 792-792/com.ridecharge.android.taximagic E/com.ridecharge.android:ChooseFleetActivity﹕ clicking row: 3 | |
07-22 11:55:33.964 792-792/com.ridecharge.android.taximagic E/com.ridecharge.android:ActiveRidesActivity﹕ updateRideStatus() Dispatched | |
java.text.ParseException: Unparseable date: "" (at offset 0) | |
at java.text.DateFormat.parse(DateFormat.java:555) | |
at com.ridecharge.android.taximagic.view.ActiveRidesActivity.updateRideStatus(ActiveRidesActivity.java:1041) | |
at com.ridecharge.android.taximagic.view.ActiveRidesActivity.update(ActiveRidesActivity.java:789) | |
at com.ridecharge.android.taximagic.view.ActiveRidesActivity.onResume(ActiveRidesActivity.java:548) | |
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1215) | |
at android.app.Activity.performResume(Activity.java:5327) | |
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2811) |
This file contains hidden or 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
Aaron-Huttner-MBP:~ ahuttner$ brew install geos | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/geos-3.4.2.ma | |
######################################################################## 100.0% | |
==> Pouring geos-3.4.2.mavericks.bottle.tar.gz | |
🍺 /usr/local/Cellar/geos/3.4.2: 385 files, 8.4M | |
Aaron-Huttner-MBP:~ ahuttner$ cd GitHub/rc | |
Aaron-Huttner-MBP:rc ahuttner$ bundle install | |
Fetching source index from http://gems.github.com/ | |
Fetching source index from http://rubygems.org/ | |
Resolving dependencies........ |
This file contains hidden or 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
Aaron-Huttner-MBP:rc ahuttner$ rake db:migrate --trace | |
WARNING: Sinatra 1.2.x has reached its EOL. Please upgrade. | |
rake aborted! | |
undefined method `[]' for nil:NilClass | |
/Users/ahuttner/GitHub/rc/config/application.rb:86:in `<module:Globals>' | |
/Users/ahuttner/GitHub/rc/config/application.rb:72:in `<top (required)>' | |
/Users/ahuttner/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
/Users/ahuttner/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
/Users/ahuttner/GitHub/rc/Rakefile:4:in `<top (required)>' | |
/Users/ahuttner/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load' |
This file contains hidden or 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
Single Purpose | |
- to return/forward the selected fleet object to the book ride activity | |
Api Calls | |
- Fleets | |
- FavoriteFleets | |
- DeleteFavoriteFleet | |
Fragment |
This file contains hidden or 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
if rides.empty? | |
recently_completed_rides = user.rides.taxi_magicy.complete_or_canceled.not_rider_finished.pick_up_time_between(2.hours.ago, 24.hours.from_now) | |
rides.push(*recently_completed_rides) | |
end | |
rides = Ride | |
.where(user_id:user.id) | |
.where(booking_channel_id:[BookingChannel.id_iphone_taxi_magic, BookingChannel.id_android_taxi_magic]) |
This file contains hidden or 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
{ | |
"deal": { | |
"id": 1334224, | |
"short_title": "Mexican Dinner for Two", | |
"long_title": "Mexican Dinner for Two in Adams Morgan", | |
"title": "Mexican Dinner for Two", | |
"merchant_name": "Johnny Pistola's", | |
"price": { | |
"value": 45, | |
"currency": { |
This file contains hidden or 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
package com.rockthevote.grommet.ui.misc; | |
import android.content.Context; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.support.design.widget.TabLayout; | |
import android.support.v4.view.ViewPager; | |
import android.util.AttributeSet; | |
import com.rockthevote.grommet.ui.views.StepperTabView; |