Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
import 'package:lottie/lottie.dart'; | |
class NotiferChanges<T> { | |
final StreamController<T> _fetchDoneController = StreamController.broadcast(); | |
changeNavigate(T data) { | |
_fetchDoneController.add(data); // send an arbitrary event |
Session resources for web developers, in order of presentation from the Microsoft Build 2021 "Microsoft Edge: State of the Platform" on-demand session.
// This function converts the byte to the corresponding amount, be it kilo, mega, GB, etc. | |
const convertWeightByte = (byte) => { | |
let sizekiloByte = (byte / 1024); | |
let sizeMega = (sizekiloByte / 1024); | |
let sizeGigabyte = (sizeMega / 1024); | |
let sizeTerabyte = (sizeGigabyte / 1024); | |
let sizePetabyte = (sizeTerabyte / 1024); | |
let sizeExabyte = (sizePetabyte / 1024); | |
if(sizekiloByte > 0 && sizekiloByte <= 1024){ |
// API key | |
// https://2captcha.com/enterpage | |
const API_KEY = "XXXX"; | |
// Find site key of a website | |
const googleSiteKey = document | |
.getElementsByClassName("g-recaptcha")[0] | |
.getAttribute("data-sitekey"); | |
// Helper parsing function |
const withPWA = require('next-pwa') | |
module.exports = withPWA({ | |
pwa: { | |
dest: 'public' | |
} | |
}) |
import React, { FunctionComponent, ReactChild } from 'react' | |
const listeners = Symbol('jsx-web-comp/event-listeners') | |
const eventPattern = /^onEvent/ | |
const toKebabCase = (str: string): string => str.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase() | |
export default function jsx (type: string | FunctionComponent, props: Record<string, any>, ...children: ReactChild[]) { | |
const isCustomElement = customElements.get(type as string) | |
const newProps = { ...props } |
For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):
List All System Images Available for Download: sdkmanager --list | grep system-images
Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"