Skip to content

Instantly share code, notes, and snippets.

View canoypa's full-sized avatar
:copilot:
May the Copilot be with you.

Cano canoypa

:copilot:
May the Copilot be with you.
View GitHub Profile
// Copyright 2019 the Dart project authors. 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(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
last 3 versions
last 2 major versions
not opera > 0
last 3 ie versions
not ie > 0
not samsung > 0
not op_mini > 0
not op_mob > 0
not and_uc > 0
not android > 0
@canoypa
canoypa / browserslist
Created December 11, 2023 23:46
Browserslist
last 3 versions
last 2 major versions
not samsung > 0
not op_mini > 0
not op_mob > 0
not and_uc > 0
not ie > 0
not opera > 0
not android > 0
not and_qq > 0
@canoypa
canoypa / get_moon_age.js
Last active November 27, 2022 12:21
for gas
/*
:new_moon: ๐ŸŒ‘
:waxing_crescent_moon: ๐ŸŒ’
:first_quarter_moon: ๐ŸŒ“
:moon: ๐ŸŒ”
:full_moon: ๐ŸŒ•
:waning_gibbous_moon: ๐ŸŒ–
:last_quarter_moon: ๐ŸŒ—
:waning_crescent_moon: ๐ŸŒ˜
*/
@canoypa
canoypa / material-icon-types.ts
Last active March 8, 2021 07:13
Type, resolutely.
export type MaterialIconActionNames =
| "3d_rotation"
| "accessibility"
| "accessibility_new"
| "accessible"
| "accessible_forward"
| "account_balance"
| "account_balance_wallet"
| "account_box"
| "account_circle"
@canoypa
canoypa / pwsh-profile.ps1
Last active March 28, 2022 10:29
ใƒ—ใƒญใƒณใƒ—ใƒˆใฎใƒ‘ใ‚นๅ ๆœ‰็އใŒ้ซ˜ใ™ใŽใ‚‹
function prompt() {
# ใƒ‘ใ‚น
Write-Host "$(Get-Location)>"
# ใƒ—ใƒญใƒณใƒ—ใƒˆๆœฌไฝ“
Write-Host "$("$" * ($nestedPromptLevel + 1))" -ForegroundColor "DarkGreen" -NoNewLine
return " "
}
@canoypa
canoypa / combined-providers.ts
Last active August 2, 2021 09:14
ใƒ—ใƒญใƒใ‚คใƒ€ใงใƒใ‚นใƒˆใ•ใ‚Œใพใใ‚‹ใฎใ‚’ใฉใ†ใซใ‹ใ™ใ‚‹ (ใƒ•ใ‚กใ‚คใƒซๅˆ†ใ‘ใŸใ‚‰ใ„ใ„ใ‚“ใ˜ใ‚ƒใชใ„ใ‹ใช)
/*
usage
<Combined components={[<StrictMode />, <Provider />, <Router />]}>
{children}
</Combined>
*/
type Props = {
components: ReactElement[];
const isNonNullable = <T>(_target: T): _target is NonNullable<T> =>
_target !== undefined || _target !== null;
const nonNullable = <T>(target: T) => {
if (!isNonNullable(target)) throw new Error();
return target;
};

Standard easing

cubic-bezier(0.4, 0.0, 0.2, 1);

Emphasized easing

N/A
@canoypa
canoypa / aperture-science.md
Last active August 2, 2021 09:24
ใ‚จใƒณใƒ‡ใ‚ฃใƒณใ‚ฐใฎใ‚„ใค
               .,-:;//;:=,
           . :H@@@MM@M#H/.,+%;,
       ,\\X+ + M@@M@MM%=,-%HMMM@X/,
     -+@MM; $M@@MH+-,;XMMMM@MMMM@+-
    ;@M@@M- XM@X;. -+XXXXXHHH@M@M#@/.
  ,%MM@@MH ,@%=             .---=-=:=,.
  =@#@@@MX .,               -%HX$$%%%+;
 =-./@M@M$                   .;@MMMM@MM:
 X@/ -$MM/ .+MM@@@M$