A collection of all of the various options and styles available to you if you'd like to format data into string on iOS 15.
See every option in detail at fuckingformatstyle.com or goshdarnformatstyle.com.
A collection of all of the various options and styles available to you if you'd like to format data into string on iOS 15.
See every option in detail at fuckingformatstyle.com or goshdarnformatstyle.com.
# https://github.com/dependabot/dependabot-core/issues/1736 | |
name: Dependabot | |
on: pull_request_target | |
permissions: read-all | |
jobs: | |
update-lockfile: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
permissions: | |
pull-requests: write |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.import {_ as e, L as t} from "./index-4deec983.js"; | |
import {a as n, C as i} from "./Controller-26bd1e9e.js"; | |
import {S as s} from "./ScrollObserver-d0732a2c.js"; | |
import {F as o} from "./index-bee741e4.js"; | |
class r { | |
constructor(e, t, n, i=!1) { | |
const s = this | |
, o = -1 !== document.location.search.toLowerCase().indexOf("debug=webgl"); | |
s.canvas = e, | |
s.gl = s.canvas.getContext("webgl", { |
import SwiftUI | |
/// View model protocol | |
protocol ViewModel: ObservableObject { | |
var count: Int { get } | |
func increase() | |
} | |
/// Concrete implementation | |
class MyViewModel: ViewModel { |
if (figma.currentPage.selection.length !== 1) { | |
figma.notify("🚫 Select a component"); | |
return; | |
} | |
const [componentNode] = figma.currentPage.selection; | |
if (componentNode.type !== "COMPONENT") { | |
figma.notify("🚫 Select a component"); | |
return; | |
} |
// Create a list of all component nodes in the Figma file. | |
const componentNodes = figma.root.children.flatMap(pageNode => { | |
return pageNode.findAll(node => node.type === 'COMPONENT'); | |
}) as readonly ComponentNode[]; | |
// Create a list of component nodes that have more than one child node. | |
const unflattenedComponentNodes = componentNodes.filter(componentNode => { | |
const childrenNodes = componentNode.findAll(() => true); | |
return childrenNodes.length > 1; | |
}); |
// Get the list of color styles in the current Figma file. | |
const colorStyles = figma.getLocalPaintStyles(); | |
const updatedColorStyles = colorStyles.filter(style => { | |
const { paints } = style; | |
if (paints.length !== 1) { | |
// Skip styles containing multiple colors. | |
return false; | |
} | |
const [paint] = paints; |
import React from "react"; | |
import { NextPageContext } from "next"; | |
const blogPostsRssXml = (blogPosts: IBlogPost[]) => { | |
let latestPostDate: string = ""; | |
let rssItemsXml = ""; | |
blogPosts.forEach(post => { | |
const postDate = Date.parse(post.createdAt); | |
if (!latestPostDate || postDate > Date.parse(latestPostDate)) { | |
latestPostDate = post.createdAt; |
JavaScript has pretty normal control-flow statements that use blocks delineated by curly braces. There is an exception to this: the switch ... case
statement. The strange thing about switch ... case
is that you must include the keyword break at the end of each case to prevent control from falling through to the next case. Fall through is a trick that allows you to let more than one case be executed. Control will fall through automatically to the next case unless you explicitly tell it not to with break. However, like the optional semicolons and curly braces, it's possible to forget break when you really should have used it. When that happens, the bug is difficult to find because the code looks correct. For that reason, the break statement should never be left off of a case, even by design.
With that said, JavaScript has an elegant object-literal syntax and first-class functions, which makes it simple to create a keyed method lookup. The object you create for your method lookup is call