WWDC 2001 2002 2003 2007 2008 2009 2010 2011 2012 2013 2014<
Discover gists
This file contains 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
// 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._ |
This file contains 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
/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 |
This file contains 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 { 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); |
This file contains 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
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) { |
This file contains 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
/* ======================================================================== | |
$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. |
This file contains 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
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}'
NewerOlder