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.util.Log; | |
import android.view.ViewTreeObserver; | |
import com.google.android.gms.maps.GoogleMap; | |
import com.google.android.gms.maps.MapView; | |
import com.google.android.gms.maps.OnMapReadyCallback; | |
import rx.Observable; | |
import rx.Subscriber; | |
import rx.functions.Func2; |
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
// Add a PREFIX to all file names in a directory | |
ls | xargs -I {} mv {} PREFIX_{} |
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
class RootComponent(...) { | |
val locationSelection = LocationSelectionComponent(...) | |
fun launchLocationSelection() { | |
// Create the component | |
locationSelection = LocationSelectionComponent(...) | |
// Register callbacks | |
locationSelection.callbacks = object: LocationSelectionComponent.Callbacks() { | |
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
class OrderCancellationComponent(private val context: Context, | |
private val api: Api, | |
private val orderNumber: String) { | |
interface Callbacks { | |
fun onOrderCancelledSuccessfully() | |
fun onOrderCancellationFailed() | |
} | |
var callbacks: Callbacks? = null // Callbacks for communication with the parent component |
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
class OrderCancellationComponent(private val context: Context, | |
private val api: Api, | |
private val orderNumber: String) { | |
interface Callbacks { | |
fun onOrderCancelledSuccessfully() | |
fun onOrderCancellationFailed() | |
} | |
var callbacks: Callbacks? = null // Callbacks for communication with the parent component |
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
Home Screen* | |
Empty | |
query changed -> Searching | |
Showing Results | |
query changed -> Searching | |
Searching | |
network error -> Network Error | |
server error -> Server Error |
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
const summaryState = { | |
type: 'parallel', | |
initial: 'loadOrder', | |
states: { | |
loadOrder: { | |
initial: 'loadingOrder', | |
states: { | |
idle: {}, | |
loadingOrder: { | |
on: { |
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 'package:flutter/material.dart'; | |
import 'dart:math'; | |
import 'dart:ui' show lerpDouble; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} |
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
FROM openjdk:8-alpine | |
USER root | |
ARG FVM_VERSION="2.0.4" | |
# Required to build flutter apps on apline | |
ARG GLIBC_VERSION="2.28-r0" | |
ENV LCOV_VERSION="1.15" |
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
#!/bin/bash | |
red=`tput setaf 1` | |
green=`tput setaf 2` | |
reset=`tput sgr0` | |
fileList=$(git diff --diff-filter=d --cached --name-only | grep -E '\.(dart)$') | |
if [ ${#fileList} -lt 1 ]; then | |
# No changes to dart files continue with git commit. | |
exit | |
fi |
OlderNewer