Skip to content

Instantly share code, notes, and snippets.

@huttneab
huttneab / privacy_policy.txt
Created March 27, 2017 22:19
Pictoreal Sandbox Privacy Policy
Pictoreal Terms of Service and Privacy Policy
1. Terms
By accessing the website at http://www.pictoreal.io, you are agreeing to be bound by these terms of service, all applicable laws and regulations, and agree that you are responsible for compliance with any applicable local laws. If you do not agree with any of these terms, you are prohibited from using or accessing this site. The materials contained in this website are protected by applicable copyright and trademark law.
2. Use License
Permission is granted to temporarily download one copy of the materials (information or software) on Pictoreal's website for personal, non-commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may not:
modify or copy the materials;
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;
{
"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": {
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])
Single Purpose
- to return/forward the selected fleet object to the book ride activity
Api Calls
- Fleets
- FavoriteFleets
- DeleteFavoriteFleet
Fragment
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'
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........
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)
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]", "");
##---------------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