Tiny wrapper component for React-Datepicker to stylistically fit with Chakra-UI 1.x.
<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} />
| <?php | |
| /** | |
| * @param WP_Query|null $wp_query | |
| * @param bool $echo | |
| * @param array $params | |
| * | |
| * @return string|null | |
| * | |
| * UPDATE for Bootstrap 5.0: https://gist.github.com/mtx-z/af85d3abd4c19a84a9713e69956e1507 | |
| * |
| import axios from "axios"; | |
| import { settings } from "../settings"; | |
| import { authAPI } from "."; | |
| const request = axios.create({ | |
| baseURL: settings.apiV1, | |
| }); | |
| request.interceptors.request.use( | |
| (config) => { |
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:bloc/bloc.dart'; | |
| import 'package:flutter_bloc/flutter_bloc.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { |
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Symfony\Component\HttpFoundation\ParameterBag; | |
| /** | |
| * @author https://github.com/Stunext | |
| * |
| <!--Add a html widget with this code under your section and replace the getElementById ("your ID section") with the ID of your section.--> | |
| <script> | |
| var prevScrollpos = window.pageYOffset; | |
| window.onscroll = function() { | |
| var currentScrollPos = window.pageYOffset; | |
| if (prevScrollpos > currentScrollPos) { | |
| document.getElementById("navbar").style.top = "0"; | |
| } else { | |
| document.getElementById("navbar").style.top = "-90px"; | |
| } |
| createAxiosResponseInterceptor() { | |
| const interceptor = axios.interceptors.response.use( | |
| response => response, | |
| error => { | |
| // Reject promise if usual error | |
| if (errorResponse.status !== 401) { | |
| return Promise.reject(error); | |
| } | |
| /* |
| import { ValidationArguments, ValidatorConstraintInterface } from 'class-validator'; | |
| import { Connection, EntitySchema, FindConditions, ObjectType } from 'typeorm'; | |
| interface UniqueValidationArguments<E> extends ValidationArguments { | |
| constraints: [ | |
| ObjectType<E> | EntitySchema<E> | string, | |
| ((validationArguments: ValidationArguments) => FindConditions<E>) | keyof E, | |
| ]; | |
| } |
Tiny wrapper component for React-Datepicker to stylistically fit with Chakra-UI 1.x.
<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} />
In this tutorial, we'll build the the nescessary packages for ARM via homebrew. After that we'll configure apache2 for using virtual hosts. The native php is ofcourse way faster, see the results of this benchmark below.
| TEST NAME | SECONDS | OP/SEC |
|---|
Tiny wrapper component for React-Datepicker to stylistically fit with Chakra-UI 1.x.
<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} />
Clearable version:
<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} isClearable={true} />