Skip to content

Instantly share code, notes, and snippets.

View krschultz's full-sized avatar

Kevin Schultz krschultz

View GitHub Profile
create table dw_temp.com_gilt_mobile_tapstream_v3_PushTokenRegisteredSystemEvent929 distribute by hash (uuid)
as
select *
from rtd_query
( on (select file_key
from rtd_browser (
on(select 1)
filter_S3_files('raw/com.gilt.mobile.tapstream.v3.PushTokenRegisteredSystemEvent/2015/09/29')
)
)
@krschultz
krschultz / gist:c455fe58527ea5c60675
Created April 21, 2015 23:16
Jake Wharton ActivityRule -> Support Lib ActivityTestRule
import android.app.Activity;
import android.content.Intent;
import android.support.test.InstrumentationRegistry;
import android.support.test.rule.ActivityTestRule;
/**
* Matches the intent returned by Jake Wharton's ActivityRule but is layered on top of new support lib rules
*
* @see {https://gist.github.com/JakeWharton/1c2f2cadab2ddd97f9fb}
* @see {https://code.google.com/p/android-test-kit/wiki/JUnit4RulesInATSL}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
### Keybase proof
I hereby claim:
* I am krschultz on github.
* I am kevinrschultz (https://keybase.io/kevinrschultz) on keybase.
* I have a public key whose fingerprint is B627 1DF4 2D1E E742 1E28 4ACD CE89 D999 A2B9 027F
To claim this, I am signing this object:
export ANDROID_HOME=/Applications/Android\ Studio.app/sdk
export ANDROID_BUILD_VERSION=19.1.0
export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/$ANDROID_BUILD_VERSION:$PATH
//android.content.res.TypedArray
/**
* Retrieve the integer value for the attribute at <var>index</var>.
*
* @param index Index of attribute to retrieve.
* @param defValue Value to return if the attribute is not defined or
* not a resource.
*
* @return Attribute integer value, or defValue if not defined.
desc "Deploy website via AWS command lien tools with CloudFront cache invalidation"
task :s3 do
puts "## Deploying website via AWS cli tools"
ok_failed system("aws s3 sync --acl public-read --storage-class REDUCED_REDUNDANCY public/ s3://#{s3_bucket}/")
end
java.lang.NoSuchMethodError: android.widget.TextView.setBackground
at com.getlua.lua.people.selector.AutoCompleteChipView.buildChipDrawable(AutoCompleteChipView.java:295)
at com.getlua.lua.people.selector.AutoCompleteChipView.setNewChip(AutoCompleteChipView.java:245)
at com.getlua.lua.people.selector.AutoCompleteChipView.addChip(AutoCompleteChipView.java:578)
at com.getlua.lua.people.selector.RecipientsFragment.handleListMemberClick(RecipientsFragment.java:190)
at com.getlua.lua.people.selector.RecipientsFragment.onItemClick(RecipientsFragment.java:127)
at android.widget.AdapterView.performItemClick(AdapterView.java:284)
at android.widget.ListView.performItemClick(ListView.java:3569)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:1831)
at android.os.Handler.handleCallback(Handler.java:587)
Could not dispatch event: class com.getlua.lua.events.ApiEvent to subscribing class class com.getlua.lua.dialogs.NewConvoDialogFragment
java.lang.NullPointerException
at com.getlua.lua.dialogs.NewConvoDialogFragment.onEventMainThread(NewConvoDialogFragment.java:81)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at de.greenrobot.event.EventBus.invokeSubscriber(EventBus.java:477)
at de.greenrobot.event.EventBus.postToSubscription(EventBus.java:420)
at de.greenrobot.event.EventBus.postSingleEvent(EventBus.java:400)
at de.greenrobot.event.EventBus.post(EventBus.java:326)
at com.getlua.lua.service.LuaTaskContextResponseHandler$SuccessTask.onPreExecute(LuaTaskContextResponseHandler.java:80)