This file contains hidden or 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
type Split<S extends string, D extends string> = S extends `${infer T}${D}${infer U}` ? [T, ...Split<U, D>] : [S]; | |
type Cast<S extends string> = S extends 'string' ? string : S extends 'number' ? number : never; | |
type Urlify<S extends string> = S extends `{${infer TKey}:${infer TType}}` ? [TKey, Cast<TType>] : S extends `{${infer TKey}}` ? [TKey, string | number] : S | |
type UrlifyEach<V, L extends string[] = []> = | |
V extends [] | |
? L | |
: V extends [string] | |
? [...L, Urlify<V[0]>] | |
: V extends [string, ...infer R] |
- Datadog webhook variables: https://docs.datadoghq.com/integrations/webhooks/
- (note the description field supports markdown)
- Basic webhook setup: https://www.digitalocean.com/community/tutorials/how-to-use-discord-webhooks-to-get-notifications-for-your-website-status-on-ubuntu-18-04
- Settings > Integrations > Post messages > pick a channel and copy URL into DD for the next step
- Inspecting payloads (for public data): https://webhook.site/
- embeds: https://anidiots.guide/first-bot/using-embeds-in-messages
- embed payload builder: https://leovoel.github.io/embed-visualizer/
This file contains hidden or 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
[{ | |
"name": "Luke Skywalker", | |
"height": "172", | |
"gender": "male" | |
}, { | |
"name": "C-3PO", | |
"height": "167", | |
"gender": "n/a" | |
}, { | |
"name": "R2-D2", |
This file contains hidden or 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
<template> | |
<div class="content-placeholder gap-1 animate-pulse"> | |
<div v-for="template of templates" :key="template" class="bg-gray-300" :style="{gridArea: template}" /> | |
</div> | |
</template> | |
<script lang="ts" setup> | |
const props = defineProps<{ | |
template: Array<Array<string>> | |
rows: string |
This file contains hidden or 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
git log --pretty=format: --name-only -- "*.ts" --since="10 day ago" | sort | uniq -c | sort -rg | head -n 20 | |
5170 |
One should "depend upon abstractions, [not] concretions.
The most basic example is the following, imagine the following implementation, while LINQ
does not exist:
/**
* Filter out all 0 items
*/
public IEnumerable<int> Filter(IEnumerable<int> array)
This file contains hidden or 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
# OpenSSL Root CA configuration file | |
# Copy to /root/ca/openssl_root.cnf | |
[ ca ] | |
default_ca = CA_default | |
[ CA_default ] | |
# Directory and file locations. | |
dir = /root/ca | |
certs = $dir/certs |
This file contains hidden or 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
Verifying my Blockstack ID is secured with the address 1CTEvvs45CBcgVGLkkmqmvAsu3ZaNZftke https://explorer.blockstack.org/address/1CTEvvs45CBcgVGLkkmqmvAsu3ZaNZftke |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Syntra.AddressCard | |
{ | |
class Program | |
{ |
NewerOlder