Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
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
# Copyright 2022 Google LLC. | |
# SPDX-License-Identifier: Apache-2.0 | |
# Author: Maithra Raghu <maithra@google.com> | |
def compute_distance_matrix(patch_size, num_patches, length): | |
"""Helper function to compute distance matrix.""" | |
distance_matrix = np.zeros((num_patches, num_patches)) |
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
Registered Name: https://zhile.io | |
License Key: 48891cf209c6d32bf4 |
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
PRF_DisablePlayerJumping = 46, -- Disable jumping | |
PRF_DisablePlayerVaulting = 47, -- Disable climbing / vaulting | |
PRF_AllowUpdateIfNoCollisionLoaded = 55, -- Don't freeze this ped for not having bounds loaded around it | |
PRF_DisableSecondaryAnimationTasks = 58, -- Disable upper body animtion tasks such as shove ped and open door anims | |
PRF_SearchForClosestDoor = 60, -- Will check for the closest door in proximity and store it off | |
PRF_SupressGunfireEvents = 62, -- Supresses AI generating fire events, so civilians wont be shocked or react, for use in a shooting range for example | |
PRF_InfiniteStamina = 63, -- Currently just for mounts, but could be expanded to anything with stamina | |
PRF_BlockWeaponReactionsUnlessDead = 64, -- Stops the ped from reacting to damage events (such as shots / fires, etc). The ped will still take damage while this flag is active. Note: this does not block explosion reactions. | |
PRF_ForcePlayerFiring = 65, -- Forces player to fire even if they aren't pressing fire | |
PRF_For |
*update: TBC, but this new might affect how easy it is to use this technique past August 2024: Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August
This gist, based in part on a gist by Brian Hartvigsen, allows you to export from Authy your TOTP tokens you have stored there.
Those can be "standard" 6-digits / 30 secs tokens, or Authy's own version, the 7-digits / 10 secs tokens.
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
// Can import types from other files using TypeScript's typed imports functionality | |
type BlocksDto = import("../plugins/Suppressions/setup").BlocksDto; | |
// Or you can define the types here as well in this type definition file | |
type ApiHost = "https://staging.api.com" | "https://testing.api.com" | string; | |
declare namespace Cypress { | |
interface Cypress { | |
// ...environment variables | |
} |
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
package main | |
import ( | |
"log" | |
"time" | |
"github.com/labstack/echo/v5" | |
"github.com/pocketbase/pocketbase" | |
"github.com/pocketbase/pocketbase/apis" | |
"github.com/pocketbase/pocketbase/core" |
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
using System.Net.WebSockets; | |
using System.Text; | |
Uri uri = new("wss://yabu.me/"); | |
using ClientWebSocket ws = new(); | |
await ws.ConnectAsync(uri, default); | |
var req = "[\"REQ\", \"_\", {\"kinds\": [1], \"limit\": 10}]"; | |
Console.WriteLine("< " + req); |
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
class NostrSubscription | |
{ | |
static void Main(string[] args) | |
{ | |
string url = "wss://yabu.me"; | |
using (var ws = new WebSocketSharp.WebSocket(url)) | |
{ | |
ws.OnOpen += (sender, e) => | |
{ |
NewerOlder