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
#!/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
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
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
"""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
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
<?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) { |
NewerOlder