See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
// import cats._ | |
import cats.effect._ | |
import cats.effect.concurrent.{Ref, Semaphore} | |
import cats.effect.implicits._ | |
import cats.implicits._ | |
import scala.concurrent.duration._ | |
import scala.collection.immutable.Map | |
import io.chrisdavenport.mapref.MapRef | |
// import io.chrisdavenport.mapref.implicits._ |
/ip firewall address-list | |
add address=3.33.221.48/32 list=Meta | |
add address=3.33.252.61/32 list=Meta | |
add address=15.197.206.217/32 list=Meta | |
add address=15.197.210.208/32 list=Meta |
"use client"; | |
import { useState } from "react"; | |
export default function Page() { | |
const [noCount, setNoCount] = useState(0); | |
const [yesPressed, setYesPressed] = useState(false); | |
const yesButtonSize = noCount * 20 + 16; | |
const handleNoClick = () => { | |
setNoCount(noCount + 1); |
import 'package:flutter/material.dart'; | |
import 'dart:math' as math; | |
import 'dart:async'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { |
/* ======================================================================== | |
$File: tools/ctime/ctime.c $ | |
$Date: 2016/05/08 04:16:55PM $ | |
$Revision: 7 $ | |
$Creator: Casey Muratori $ | |
$Notice: | |
The author of this software MAKES NO WARRANTY as to the RELIABILITY, | |
SUITABILITY, or USABILITY of this software. USE IT AT YOUR OWN RISK. |
import numpy as np | |
from matplotlib import pyplot as plt | |
# Arbitrary vector field example. | |
shape = 11, 11 | |
dims = len(shape) | |
domain = -2, 2 | |
x, y = np.meshgrid(*(np.linspace(*domain, num=d) for d in shape)) | |
field = np.stack((-2 * x * y, x ** 2 + 2 * y - 4)) |
$ kubectl get pods -o json
$ kubectl get pods -o jsonpath='{@}'
$ kubectl get pods -o jsonpath='{.items[0]}'
$ kubectl get pods -o jsonpath='{.items[0].metadata.name}'
$ kubectl get pods -o jsonpath="{.items[*]['metadata.name', 'status.capacity']}"
$ kubectl get pods -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.startTime}{"\n"}{end}'
$ kubectl get pods -o jsonpath='{.items[*].status.podIP}'
"use client" | |
import * as React from "react" | |
import { buttonVariants } from "@/components/ui/button" | |
import { ScrollArea } from "@/components/ui/scroll-area" | |
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select" | |
import { cn } from "@/lib/utils" | |
import { ChevronLeft, ChevronRight } from "lucide-react" | |
import { DayPicker, DropdownProps } from "react-day-picker" |