Skip to content

Instantly share code, notes, and snippets.

View atoko's full-sized avatar

atoko

View GitHub Profile
import {
type QueryObject,
cleanDoubleSlashes as __cleanDoubleSlashes__,
parseQuery,
stringifyQuery,
withBase,
withFragment,
withQuery,
withTrailingSlash,
} from "ufo";
var start = 50;
var end = 150;
$("#progress").change(function() {
var max = $(this).attr("max");
var val = $(this).val();
$("#animator").css("top", easing.easeOutBounce(val/max, val, start, end, max));
$("#animator").css("left", easing.easeOutQuad(val/max, val, start, end, max));
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Deciduous Mandelbrot Wheel</title>
<style>
body {
margin: 0;
overflow: hidden;

Short Term Epic: Set Up Cloud Composer and Migrate Vertica Data to BigQuery

  1. NetOps Setup for GCP and Provisioning
    • Goal: Establish a network setup in GCP that integrates with on-prem infrastructure and provision Cloud Composer using Terraform.
    • Key Steps:
      • Create a /18 subnet for scalability.
      • Provision Cloud Composer clusters for Test, Staging, and Production.
      • Ensure clusters are located close to BigQuery to minimize networking costs.
      • Set up local development with Minikube to mirror Cloud Composer environments.
  2. Container and Registry Setup
import { inspect } from "node:util";
import { StackReference, getStack, log } from "@pulumi/pulumi";
import { destr } from "destr";
import { serializeError } from "serialize-error";
import { VError } from "verror";
import type { z } from "zod";
import { objectEntries, objectFromEntries } from "./Object";
export const $stack$ = getStack().split(".").pop();
import { clsx } from "clsx";
import { type FC, useMemo } from "hono/jsx";
export type Users_IconProps = {
className?: string;
viewBox?: `${number} ${number} ${number} ${number}`;
width?: `w-${string}`;
height?: `h-${string}`;
fill?: `fill-${string}`;
stroke?: `stroke-${string}`;
@atoko
atoko / fa.yaml
Created September 18, 2024 12:47
openapi: "3.0.3"
info:
version: 1.53.2
title: FusionAuth API
description: "This is a FusionAuth server. Find out more at [https://fusionauth.io](https://fusionauth.io). You need to [set up an API key](https://fusionauth.io/docs/v1/tech/apis/authentication#managing-api-keys) in the FusionAuth instance you are using to test out the API calls."
license:
name: Apache2
servers:
- url: http://localhost:9011
@atoko
atoko / dnsmasq OS X.md
Created August 10, 2024 20:03 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install

import Card from "./Card";
import TableHistory from "./TableHistory";
import PlayerState from "./PlayerState";
export default class BriscasState {
deck?: number[];
tableSize?: number;
tableOwner?: string;
life?: number;
players: Record<string, PlayerState> = {};
function* forwardEventsToReducer(channel) {
while (true) {
const action = yield take(channel);
yield put(action);
}
}
function* watchLogins() {
while (true) {