libicu-dev (PyICU dependency)
brew reinstall pkg-config icu4c| [ | |
| { | |
| "code": "aa", | |
| "name_en": "Afar", | |
| "name": "Afaraf", | |
| "flag": "🇪🇷" | |
| }, | |
| { | |
| "code": "ab", | |
| "name_en": "Abkhazian", |
brew reinstall pkg-config icu4c| # Trim a single "input.png" image and save to "output.png" | |
| magick input.png -trim +repage output.png | |
| # Trim a single "image.png" image and overwrite the original file (based on @enijar comment) | |
| mogrify -trim +repage image.png | |
| # Trim and overwrite all png images from the working directory (based on @enijar comment) | |
| mogrify -trim +repage *.png |
| syntax enable | |
| set number | |
| set tabstop=4 | |
| set softtabstop=4 | |
| set shiftwidth=4 | |
| set expandtab | |
| set showcmd |
| 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( |
| /* | |
| * 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 |
| private val HEX_CHARS = "0123456789ABCDEF".toCharArray() | |
| fun ByteArray.toHex() : String{ | |
| val result = StringBuffer() | |
| forEach { | |
| val octet = it.toInt() | |
| val firstIndex = (octet and 0xF0).ushr(4) | |
| val secondIndex = octet and 0x0F | |
| result.append(HEX_CHARS[firstIndex]) |
These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.
| <?xml version="1.0" encoding="utf-8"?><!-- | |
| ~ Copyright (C) 2015 The Android Open Source Project | |
| ~ | |
| ~ 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 |