I hereby claim:
- I am danielres on github.
- I am danielres (https://keybase.io/danielres) on keybase.
- I have a public key ASA7WN7ywCsV8R3AKSdH014O0nX8-sWUv4VlO2YxGMWZMwo
To claim this, I am signing this object:
export type Signal<T> = ReturnType<typeof createSignal<T>> | |
export function createSignal<Value>(initialValue: Value): { | |
subscribe: (listener: (v: Value) => void) => () => void | |
val: Value | |
} { | |
let value = initialValue | |
const listeners: ((v: Value) => void)[] = [] | |
function subscribe(listener: (v: Value) => void) { |
<!-- | |
@component | |
Allows to create responsive containers with a fixed aspect ratio. | |
Uses container queries to determine the size of the container. | |
The contained element will be as large as possible while maintaining the aspect ratio. | |
@example | |
```tsx | |
<div class="outer h-[100svh] grid grid-rows-[auto_1fr_auto]"> |
node_modules | |
dist | |
coverage | |
.eslintrc.js |
import { ApolloServer, gql } from "apollo-server-micro" | |
import cookieSession from "cookie-session" | |
const ONE_HOUR = 60 * 60 * 1000 | |
const typeDefs = gql` | |
type Query { | |
hello: String! | |
} | |
` |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Finds a process by regexp then terminates | |
# it, including all subprocesses | |
# usage: ./terminate <PROCESS_NAME_OR_PATTERN> | |
kill -TERM -- -$(pgrep -f "$1") | |
// Adapted from: https://github.com/microsoft/TypeScript/issues/27425 | |
// This workaround should become deprecated by: https://github.com/microsoft/TypeScript/pull/29818 | |
import * as React from "react"; | |
Person.defaultProps = { telephone: "222-333-4444" }; | |
function Person({ name, telephone }: { name: string; telephone: string }) { | |
return ( | |
<div> |
sleep 10 | |
curl --retry 8 --retry-connrefused -v localhost:1234 |
#include <Servo.h> | |
Servo myservo; | |
// servo & lasers | |
float pos = 0; | |
#define LA1 10 | |
#define LA2 11 | |
float minDeg = 80; |
fallocate -l 1G /swapfile && \ | |
chmod 600 /swapfile && \ | |
mkswap /swapfile && \ | |
sudo swapon /swapfile && \ | |
swapon --show |