You need to provide some classes and decorators yourself to maintain the same style as [email protected]
.
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}
↓
/* Layout and Text components are my own utility components. Replace them by your own. */ | |
import { memo, useEffect, useMemo, useState } from "react"; | |
import { ViewStyle } from "react-native"; | |
import { A } from "@mobily/ts-belt"; | |
import mitt from "mitt"; | |
import { v4 as uuid } from "@lukeed/uuid"; | |
import Animated, { | |
Layout as REALayout, | |
Easing, |
/* | |
* Copyright 2020 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
You need to provide some classes and decorators yourself to maintain the same style as [email protected]
.
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}
↓
// In TS, interfaces are "open" and can be extended | |
interface Date { | |
/** | |
* Give a more precise return type to the method `toISOString()`: | |
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString | |
*/ | |
toISOString(): TDateISO; | |
} | |
type TYear = `${number}${number}${number}${number}`; |
As of July 2021, installing Python Xgboost on the M1 Macs is still confusing. The Python Xgboost library relies on Scipy, which requires a Fortran compiler, which is not available because GCC is not yet available for M1 (while Scipy does not support Flang). You may succeed in installing Python xgboost library without doing what I have described below and yet encounter issue running the library. I find the easiest thing currently is to just run Terminal with Rosetta, and go from there...
Terminal
app -> Get Info -> Check Open using Rosetta
Terminal Rosetta
and only make the duplicated app run in Rosetta modeimport { Controller, Get, Res, HttpStatus, Body, Post } from '@nestjs/common'; | |
import { User } from './interfaces/user.interface'; | |
import { UserService } from './user.service'; | |
@Controller('user') | |
export class UserController { | |
constructor(private userService: UserService) {} | |
@Post('/login') | |
async loginUser( |
import React from 'react'; | |
import {StyleSheet, ScrollView, View, Text, SectionList} from 'react-native'; | |
export default class SectionListBasics extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<SectionList | |
sections={[ | |
{ |
Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
d.click()
}
interface Pipe<T> { | |
val: T; | |
into<U>(cb: (val: T) => U): Pipe<U>; | |
} | |
function pipe<T>(val: T): Pipe<T> { | |
return { val, into: cb => pipe(cb(val)) } | |
} | |
// // Example Usage |