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:
| """ | |
| This script combines two datasets to generate a file with all found patterns. | |
| """ | |
| import srsly | |
| from prodigy.components.db import connect | |
| import spacy | |
| nlp = spacy.blank("en") |
| { | |
| "ModelName": "full-table-design", | |
| "ModelMetadata": { | |
| "Author": "", | |
| "DateCreated": "Jun 04, 2021, 05:33 PM", | |
| "DateLastModified": "Jun 16, 2021, 11:01 PM", | |
| "Description": "", | |
| "AWSService": "Amazon DynamoDB", | |
| "Version": "3.0" | |
| }, |
| import * as cdk from "@aws-cdk/core"; | |
| import * as wafv2 from "@aws-cdk/aws-wafv2"; | |
| // This extends the base cdk stack properties to include a tag name input. | |
| export interface StackProps extends cdk.StackProps { | |
| tag: string; | |
| applicationName?: string; | |
| } | |
| export class WAFStack extends cdk.Stack { |
I was poking around trying to figure out all the packages I have access to publish and got curious. So I write this little script to determine the download stats for all the packages I have publish access to.
Feel free to try it yourself. Just change the username passed to getUserDownloadStats.
By default, the stats are sorted by their average daily downloads (descending). That should give you an idea of the most "popular" package of a given user relative to how long that package has been around.
You can use it with npx like so:
| #!/usr/bin/awk -f | |
| # This program is a copy of guff, a plot device. https://github.com/silentbicycle/guff | |
| # My copy here is written in awk instead of C, has no compelling benefit. | |
| # Public domain. @thingskatedid | |
| # Run as awk -v x=xyz ... or env variables for stuff? | |
| # Assumptions: the data is evenly spaced along the x-axis | |
| # TODO: moving average |
Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.
Like this? Check React Native vs Flutter: https://gist.github.com/tkrotoff/93f5278a4e8df7e5f6928eff98684979
Live Table: https://diafygi.github.io/webcrypto-examples/
I couldn't find anywhere that had clear examples of WebCryptoAPI, so I wrote examples and made a live table with them. Pull requests welcome!
| import { useState } from 'react'; | |
| export function useCounter(initial = 0) { | |
| const [count, setCount] = useState(initial); | |
| return [count, () => setCount(count + 1)]; | |
| } |
React recently introduced an experimental profiler API. This page gives instructions on how to use this API in a production release of your app.
Table of Contents
React DOM automatically supports profiling in development mode for v16.5+, but since profiling adds some small additional overhead it is opt-in for production mode. This gist explains how to opt-in.