This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
final inputs = ['a', 'b', 'c', 'd', 'e', 'f']; | |
final map = inputs.map((e) { | |
print(e); | |
return e; | |
}); | |
final cachedIterable = inputs.mapCached((e) { | |
print(e); | |
return e; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.Dock autohide-delay -float 1000 && killall cfprefsd && killall Dock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
import { format as dateFnsFormat } from 'date-fns/format'; | |
import dynamic from 'next/dynamic'; | |
import { Skeleton } from '~/components/ui/skeleton'; | |
export const DisplayLocalDate = dynamic( | |
() => import('./DisplayLocalDate').then((res) => res.DisplayLocalDateClient), | |
{ ssr: false, loading: () => <Skeleton className="mx-1 h-4 w-20" /> } | |
); |
OlderNewer