Tiny wrapper component for React-Datepicker to stylistically fit with Chakra-UI 1.x.
<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} />
import {WorkerHost} from '@nestjs/bullmq'; | |
import {Job} from 'bullmq'; | |
export class BatchWorkerHost extends WorkerHost { | |
private jobBatchCreationTime: Date; | |
private jobBatch: Job[]; | |
private jobBatchProcessPromise: Promise<void>; | |
private running: boolean = false; | |
private resolveJobBatchProcessPromise: () => void; |
import * as path from 'path'; | |
import * as cdk from '@aws-cdk/core'; | |
import * as ddb from '@aws-cdk/aws-dynamodb'; | |
import * as apiGatewayV2 from '@aws-cdk/aws-apigatewayv2'; | |
import { LambdaProxyIntegration } from '@aws-cdk/aws-apigatewayv2-integrations'; | |
import { NodejsFunction, NodejsFunctionProps } from '@aws-cdk/aws-lambda-nodejs'; | |
import { HttpIntegration, HttpIntegrationType } from '@aws-cdk/aws-apigatewayv2'; | |
import { dirname } from 'path'; | |
const project_root_dir = path.join(dirname(__filename), '../') |
Tiny wrapper component for React-Datepicker to stylistically fit with Chakra-UI 1.x.
<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} />
<?php | |
/* | |
* Add FCM Class | |
*/ | |
class Google_Service_Fcm extends Google_Service | |
{ | |
/** Set URL for Google Cloud Platform services. */ | |
const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; | |
const FCM = "https://www.googleapis.com/auth/firebase.messaging"; |
a4b.amazonaws.com | |
access-analyzer.amazonaws.com | |
account.amazonaws.com | |
acm-pca.amazonaws.com | |
acm.amazonaws.com | |
airflow-env.amazonaws.com | |
airflow.amazonaws.com | |
alexa-appkit.amazon.com | |
alexa-connectedhome.amazon.com | |
amazonmq.amazonaws.com |
# Created by .ignore support plugin (hsz.mobi) | |
### Python template | |
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so |
import Foundation | |
import AVFoundation | |
extension AVPlayer { | |
var isPlaying: Bool { | |
if (self.rate != 0 && self.error == nil) { | |
return true | |
} else { | |
return false |
# REF: http://www.quora.com/How-do-I-create-and-update-embedded-documents-with-MongoEngine | |
class Comment(EmbeddedDocument): | |
content = StringField() | |
name = StringField(max_length=120) | |
class Post(Document): | |
title = StringField(max_length=120, required=True) | |
author = StringField(required=True) |