These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.
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 CustomView extends View { | |
private final Bus bus; | |
public CustomView(Bus bus, ....) { | |
super(....); | |
this.bus = bus; | |
} | |
@Override protected void onAttachedToWindow() { |
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 androidx.annotation.StringRes | |
import androidx.test.espresso.Espresso.onView | |
import androidx.test.espresso.ViewInteraction | |
import androidx.test.espresso.matcher.ViewMatchers | |
import org.hamcrest.CoreMatchers | |
import org.hamcrest.CoreMatchers.allOf | |
fun onSnackbar(@StringRes withText: Int): ViewInteraction { | |
return onView( | |
CoreMatchers.allOf( |
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
@mixin placeholder-color($color) { | |
&::-webkit-input-placeholder { /* WebKit browsers */ | |
color: $color; | |
} | |
&:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ | |
color: $color; | |
} | |
&::-moz-placeholder { /* Mozilla Firefox 19+ */ | |
color: $color; | |
} |
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
altscreen on | |
term screen-256color | |
hardstatus off | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
startup_message off | |
termcapinfo xterm* ti@:te@ |
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
package com.example.util.shadow; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Rect; | |
import android.graphics.drawable.GradientDrawable; | |
import android.view.View; | |
import static android.graphics.drawable.GradientDrawable.Orientation.LEFT_RIGHT; | |
import static android.graphics.drawable.GradientDrawable.Orientation.TOP_BOTTOM; |
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
set encoding=utf-8 | |
set mouse= | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set number | |
syntax on | |
set et |
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
/** | |
* Copyright 2013 Omar Miatello - omar.miatello@justonetouch.it | |
* Based on http://stackoverflow.com/a/18000094/1228545 | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.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
/* | |
* Copyright 2017 Google Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file | |
* except in compliance with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software distributed under the | |
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
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
convert input.png -trim +repage output.png |
OlderNewer