Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import sys
import subprocess
import os
import json
import argparse
from datetime import datetime
import anthropic
def get_blame_info(file_path, line_number):
import type {
WatchQueryOptions as QueryOptionsBase,
SubscriptionOptions as SubscriptionOptionsBase,
MutationOptions as MutationOptionsBase,
} from '@apollo/client';
import type { DocumentNode } from 'graphql';
import { parse } from 'graphql';
import type { ReadableQuery, ReadableResult } from 'svelte-apollo';
import * as sa from 'svelte-apollo';
import type { QueryTypes } from '~/src/lib/graphql/types.generated';
package term
import (
"fmt"
"strings"
"github.com/deref/exo/internal/util/mathutil"
)
// Zero value is ready to use. Operations on panel affect Stdout.

StableVer

This document describes the "StableVer" versioning scheme. Like SemVer and related schemes, major version numbers convey semantic information about breaking changes. Unlike SemVer, StableVer discourages breaking changes by adding semantics regarding feature stability, deprecation, and migrations.

Version numbers have the short form:

.

#!/bin/bash
set -ex
repos='
animate
cascader
checkbox
collapse
dialog
@brandonbloom
brandonbloom / dev
Created August 27, 2020 18:32
Go: build & run command script
#!/bin/bash
set -e
if [ "$#" == "0" ]; then
echo "Usage: $0 <cmd> <args...>" > /dev/stderr
exit 1
fi
cmd=$1
let mutex = Promise.resolve();
let counter = 0;
const read = async () => counter;
const write = async (value) => {
counter = value;
}
(ns hr)
(defprotocol Employee
(fire [this]))
(ns war)
(defprotocol Missile
(fire [this]))
class Rectangle
include Model
attr_accessor :left, :right, :top, :bottom, :width
def computed_width
return unless left and right
right - left
end
module Model
def initialize(attributes)
self.attributes = attributes
end
def attributes=(hash)
hash.each do |k, v|
send :"#{k}=", v
end
end