Skip to content

Instantly share code, notes, and snippets.

View quentin7b's full-sized avatar
🌴
Aloha

Quentin Klein quentin7b

🌴
Aloha
View GitHub Profile
@quentin7b
quentin7b / index.html
Last active October 16, 2019 11:52
CAF_Receiver
<!doctype html>
<html>
<head>
<title>Estimate It</title>
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<style>
body {
background: white;
color: black;
@quentin7b
quentin7b / MainActivity.kt
Last active October 17, 2019 11:33
CAF_Sender_Activity
package com.github.quentin7b.estimateit
import android.os.Bundle
import android.util.Log
import android.view.Menu
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.MenuItemCompat
import androidx.mediarouter.app.MediaRouteActionProvider
import androidx.mediarouter.media.MediaControlIntent
import androidx.mediarouter.media.MediaRouteSelector
@quentin7b
quentin7b / click_on_button.java
Last active May 21, 2021 11:16
Espresso recycler view item button click
onView(withId(R.id.recycler_view_id))
.perform(
RecyclerViewActions.actionOnItemAtPosition(
itemPosition,
new ViewAction() {
@Override
public Matcher<View> getConstraints() {
return null;
}
@quentin7b
quentin7b / custom_autocomplete.widget.dart
Last active October 4, 2023 12:30
A custom AutoComplete Widget in flutter that makes it more easy to customize the render of the items
import 'package:flutter/material.dart';
class CustomAutoComplete<T extends Object> extends StatelessWidget {
final Iterable<T> options;
final Function(T) onSelected;
final String Function(T)? displayStringForOption;
final Widget Function(BuildContext, T)? optionsItemBuilder;
final Iterable<T> Function(TextEditingValue)? optionsFilter;
const CustomAutoComplete({