Researched by Robert Quattlebaum [email protected].
Last updated 2020-02-03.
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
"use client"; | |
import type { ColumnDef } from "@tanstack/react-table"; | |
import type { ColumnSchema } from "./schema"; | |
import { format } from "date-fns"; | |
export const columns: ColumnDef<ColumnSchema>[] = [ | |
{ | |
accessorKey: "date", | |
header: "Date", |
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 path from 'path' | |
import { fileURLToPath } from 'url' | |
import { type CollectionConfig } from 'payload' | |
import { videoCoverImage } from './hooks/videoCoverImage' | |
/* eslint-enable */ | |
const __filename = fileURLToPath(import.meta.url) | |
const __dirname = path.dirname(__filename) | |
// eslint-disable-next-line @typescript-eslint/ban-ts-comment |
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 JobStopsListenerFieldEffect from "@/modules/transport/components/JobStopsListenerField/JobStopsListenerFieldEffect"; | |
import type { UIFieldServerComponent } from "payload"; | |
const JobStopsListenerField: UIFieldServerComponent = async ({ payload }) => { | |
const warehouse = | |
( | |
await payload.find({ | |
collection: "addresses", | |
where: { | |
type: { |
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 nc from "next-connect"; | |
const { setQueues, BullAdapter, router } = require("bull-board"); | |
import emailQueue from 'queues/emailQueue'; // or wherever your queues lie | |
setQueues([ | |
new BullAdapter(emailQueue), | |
]); | |
const handler = nc().use( |
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
codesign --sign - --force --deep /Applications/VSCodium.app | |
xattr -d com.apple.quarantine /Applications/VSCodium.app |
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
adb shell | |
//电源键 | |
adb shell input keyevent 26 | |
//菜单键 | |
adb shell input keyevent 82 | |
//home键 | |
adb shell input keyevent 3 | |
//返回键 | |
adb shell input keyevent 4 |
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
/* | |
This function will help you to convert your object from struct to map[string]interface{} based on your JSON tag in your structs. | |
Example how to use posted in sample_test.go file. | |
*/ | |
func structToMap(item interface{}) map[string]interface{} { | |
res := map[string]interface{}{} | |
if item == nil { | |
return res | |
} |
Largely based on the Tensorflow 1.6 gist, and Tensorflow 1.7 gist for xcode and Tensorflow 1.7 gist for eGPU, this should hopefully simplify things a bit.
- NVIDIA Web-Drivers 387.10.10.10.30.106 for 10.13.4 (17E199) (w/o Security Update)
- CUDA-Drivers 387.128
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 'dart:async'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( |
NewerOlder