- Fixing bug when
ListenableEditingState
is providedinitialState
with a valid composing range,android.view.inputmethod.BaseInputConnection.setComposingRegion(int, int)
has NPE flutter/engine#30916 - Fix
FollowerLayer
(CompositedTransformFollower
) has null pointer error when using with some kinds ofLayer
s flutter/flutter#100672 - Create
ImageFilter.dilate
/ImageFilter.erode
flutter/engine#32334
This file contains hidden or 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
<?php | |
function addResponseHeaders($request, $response, $ext, $modifiedTimestamp, $downloadFileName = null) | |
{ | |
$mime = ExtToMIME::convert($ext); | |
$headers = &$response->headers; | |
$headers->set('Content-Type', $mime, true); | |
$headers->set('Cache-Control', 'public', true); // TODO max-age=xxx | |
$headers->set('Last-Modified', gmdate("D, d M Y H:i:s", $modifiedTimestamp) . " GMT", true); | |
if ($downloadFileName != null) { |
This file contains hidden or 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
render() { | |
if (!this.state.rendered) return null; | |
const { children, dismissable } = this.props; | |
return ( | |
<Animated.View | |
accessibilityViewIsModal | |
accessibilityLiveRegion="polite" | |
style={[{ opacity: this.state.opacity }, styles.wrapper]} | |
> |
This file contains hidden or 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
"""MobileNet v3 models for Keras. | |
# Reference | |
[Searching for MobileNetV3](https://arxiv.org/abs/1905.02244?context=cs) | |
""" | |
from keras.layers import Conv2D, DepthwiseConv2D, Dense, GlobalAveragePooling2D | |
from keras.layers import Activation, BatchNormalization, Add, Lambda, Reshape, Layer, InputSpec, Multiply | |
from keras.utils import conv_utils | |
from keras.backend.common import normalize_data_format |
This file contains hidden or 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
cmake_minimum_required(VERSION 3.4.1) | |
# TODO please change me! | |
set(OPENCV_BASE_DIR "TODO PLEASE PUT YOUR DIR HERE!!!") | |
set(OPENCV_INCLUDE_DIR "${OPENCV_BASE_DIR}/sdk/native/jni/include/") | |
set(OPENCV_STATIC_LIB_DIR "${OPENCV_BASE_DIR}/sdk/native/staticlibs/${ANDROID_ABI}") | |
set(OPENCV_3RDPARTY_STATIC_LIB_DIR "${OPENCV_BASE_DIR}/sdk/native/3rdparty/libs/${ANDROID_ABI}") | |
include_directories(${OPENCV_INCLUDE_DIR}) |
This file contains hidden or 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
cmake_minimum_required(VERSION 3.4.1) # for example | |
# TODO please change me! | |
set(OPENCV_BASE_DIR "TODO PLEASE PUT YOUR DIR HERE!!!") | |
set(OPENCV_INCLUDE_DIR "${OPENCV_BASE_DIR}/sdk/native/jni/include/") | |
set(OPENCV_STATIC_LIB_DIR "${OPENCV_BASE_DIR}/sdk/native/staticlibs/${ANDROID_ABI}") | |
set(OPENCV_3RDPARTY_STATIC_LIB_DIR "${OPENCV_BASE_DIR}/sdk/native/3rdparty/libs/${ANDROID_ABI}") | |
include_directories(${OPENCV_INCLUDE_DIR}) |
This file contains hidden or 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 | |
# | |
# Script for running `go test` a bunch of times, in parallel, storing the test | |
# output as you go, and showing a nice status output telling you how you're | |
# doing. | |
# | |
# Normally, you should be able to execute this script with | |
# | |
# ./go-test-many.sh | |
# |
This file contains hidden or 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 ast | |
import re | |
from typing import Dict, Callable, Any | |
from urllib.parse import urlparse, parse_qsl, urlencode, quote | |
import dash | |
from dash.dependencies import Input, Output, ALL | |
_COMPONENT_ID_TYPE = 'url_helper' |
This file contains hidden or 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
#include "palette_bmp.hpp" | |
#include "pch.hpp" | |
#include "utils.hpp" | |
using namespace std; | |
using namespace cv; | |
// NOTE good articles | |
// 1. https://blog.csdn.net/u012877472/article/details/50272771 | |
// 2. https://www.cnblogs.com/Matrix_Yao/archive/2009/12/02/1615295.html |
This file contains hidden or 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
let HIGHLIGHT_CODE = 'vision_utils'; | |
let style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = ` | |
.tom-blue-bg { background: #03a9f410; } | |
.tom-green { background: #4caf5050; } | |
.tom-orange { background: #ff980050; } | |
`; | |
style.id = "tom-inject-css"; |
OlderNewer