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
import com.esotericsoftware.kryo.io.Input | |
import com.google.common.collect.ImmutableMap | |
import java.io.File | |
import java.io.FileInputStream | |
import java.io.FileNotFoundException | |
import java.io.UncheckedIOException | |
fun main(args: Array<String>) { | |
val reader = Reader( | |
/* indexFile = */ File(".../build/test-results/macosArm64Test/binary/output.bin.idx"), |
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
name: tf-2.10-coremltools-6.2-numpy-1.24.2 | |
channels: | |
- conda-forge | |
- defaults | |
dependencies: | |
- anyio=3.5.0=py310hca03da5_0 | |
- appnope=0.1.2=py310hca03da5_1001 | |
- argon2-cffi=21.3.0=pyhd3eb1b0_0 | |
- argon2-cffi-bindings=21.2.0=py310h1a28f6b_0 | |
- asttokens=2.0.5=pyhd3eb1b0_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
#!/usr/bin/env python3 | |
import json | |
import re | |
import sys | |
import tweepy | |
try: | |
with open("twitter_secrets.json") as json_file: | |
twitter_secrets = json.load(json_file) |
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
// subclass must implement injection | |
public abstract class BoundVmFragment<VM extends ViewModel, VDB extends ViewDataBinding> extends LifecycleFragment { | |
@Inject protected ViewModelProvider.Factory viewModelFactory; | |
@Inject protected NavigationController navigationController; | |
protected FragmentDataBindingComponent dataBindingComponent = new FragmentDataBindingComponent(this); | |
protected VM viewModel; | |
protected AutoClearedValue<VDB> binding; |
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
public class FirebaseStreamingLiveData<T> extends LiveData<T> { | |
private final Query query; | |
private final Class clazz; | |
public FirebaseStreamingLiveData(Query query, Class<T> clazz) { | |
this.query = query; | |
this.clazz = clazz; | |
} | |
void setSnapshot(DataSnapshot dataSnapshot) { |
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
import android.arch.lifecycle.LiveData; | |
import android.support.annotation.WorkerThread; | |
import com.google.firebase.database.DataSnapshot; | |
import com.google.firebase.database.DatabaseError; | |
import com.google.firebase.database.DatabaseReference; | |
import com.google.firebase.database.ValueEventListener; | |
public class FirebaseLiveData<T> extends LiveData<Resource<T>> { |