List all installed apps
adb shell pm list packages -f -3
You might also use grep altogether
adb shell pm list packages -f -3 | grep "anybooks"
import dynamic from 'next/dynamic' | |
import React from 'react' | |
const NoSsr = props => ( | |
<React.Fragment>{props.children}</React.Fragment> | |
) | |
export default dynamic(() => Promise.resolve(NoSsr), { | |
ssr: false | |
}) |
import React, { useState, useEffect, useRef } from 'react'; | |
interface VisibilityObserverProps { | |
children: (props: { elementRef: React.RefObject<HTMLDivElement>, isVisible: boolean }) => JSX.Element; | |
} | |
const VisibilityObserver: React.FC<VisibilityObserverProps> = ({ children }) => { | |
const [isVisible, setIsVisible] = useState(false); | |
const elementRef = useRef<HTMLDivElement>(null); |
import 'dart:convert'; | |
dynamic parseJson(String jsonString, String path) { | |
var json = jsonDecode(jsonString); | |
List<String> parts = path.split('.'); | |
dynamic element = json; | |
for (var part in parts) { | |
if (part.contains('[') && part.contains(']')) { |
// v0.0.1 | |
import { Page, BrowserType, BrowserContext, chromium, firefox } from "playwright"; | |
class Constants { | |
static SHOULD_CRASH_AFTER_URL_RETRY = true | |
static dbPath = "./data/database.json" | |
static defaultChromeTimeout = 1000 * 60 * 5 | |
static defaultMaxWaitMs = 1000 * 10 |
[ | |
{ | |
"title": "Vscode", | |
"url": "https://code.visualstudio.com/sha/download?build=stable&os=win32-x64-user" | |
} | |
] |
// import { User } from '@interfaces/user.interface'; | |
import { User } from '@interfaces/user.interface'; | |
import { createParamDecorator, ExecutionContext } from '@nestjs/common'; | |
export const GetUser = createParamDecorator( | |
(data, ctx: ExecutionContext): User => { | |
const req = ctx.switchToHttp().getRequest(); | |
return req.user; | |
}, | |
); |
// @ts-ignore | |
const readline = require("readline") | |
export class Question { | |
static ask(questionTexts: string, callback?: (answer: string) => void): Promise<string> { | |
return new Promise((resolve) => { | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout, | |
}) |
Moved to https://www.npmjs.com/package/fayfetch | |
Thanks to everyone for using it |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const StartingPoint()); | |
} | |
class StartingPoint extends StatelessWidget { | |
const StartingPoint({Key? key}) : super(key: key); | |
@override |