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
import requests | |
from langchain.embeddings.base import Embeddings | |
class LMStudioEmbeddings(Embeddings): | |
def __init__( | |
self, | |
endpoint, | |
model, | |
): |
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
[ | |
{ | |
"id": 1767277531537744100, | |
"text": "I was so happy starting to use @zen_browser and then none of my streaming platforms work, and I found out that it doesn't support DRM content yet. 😢", | |
"time_posted": "1h ago" | |
}, | |
{ | |
"id": 1766014021033972000, | |
"text": "Streaming live, we are https://twitch.tv/108bits/", | |
"time_posted": "2h ago" |
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
{ | |
"success": true, | |
"credits_left": 100, | |
"rate_limit_left": 100, | |
"daily_rate_limit_left": 100, | |
"minute_rate_limit_left": 499, | |
"next_minute_rate_limit_reset": "2025-07-28T05:30:29.000Z", | |
"person": { | |
"publicIdentifier": "feldmane", | |
"linkedInIdentifier": "ACoAAAB1FpQBI_9O95Ft3KBFqVk7VjVpzEY3gms", |
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
import 'package:logger/logger.dart'; | |
class TimestampPrinter extends LogPrinter { | |
final LogPrinter _realPrinter; | |
TimestampPrinter(this._realPrinter); | |
@override | |
List<String> log(LogEvent event) { | |
final timestamp = DateTime.now().millisecondsSinceEpoch; |
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
extends Node | |
func log(message: String) -> void: | |
print("-> %s %s %s " % [Time.get_time_string_from_system(), str(Time.get_ticks_msec()), message]) | |
func _ready() -> void: | |
GDLogger.log("Logger services ready") | |
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.Linq; | |
using Godot; | |
using Godot.Collections; | |
public partial class SoundResource : Resource | |
{ | |
[Export] public string Id { get; set; } | |
[Export] public AudioStream AudioStream { get; set; } | |
} |
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 Godot; | |
using System; | |
public partial class GameEventsManager : Node | |
{ | |
private static GameEventsManager _instance; | |
public static GameEventsManager Instance => _instance; | |
[Signal] | |
public delegate void UpdateWorldSpeedEventHandler(float speed); |
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.Linq; | |
using Godot; | |
using Godot.Collections; | |
public partial class AudioManager : Node | |
{ | |
// ** needed sounds ** | |
// Music | |
// shoot | |
// die |
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
extends Node | |
func generate_uuid_v4() -> String: | |
var uuid = PackedByteArray() | |
for i in range(16): | |
uuid.append(randi() % 256) | |
# Set the version to 4 (randomly generated UUID) | |
uuid[6] = (uuid[6] & 0x0F) | 0x40 | |
# Set the variant to DCE 1.1, ITU-T X.667 | |
uuid[8] = (uuid[8] & 0x3F) | 0x80 |
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
// Fill out your copyright notice in the Description page of Project Settings. | |
#include "ExplosiveBarrel.h" | |
#include "PhysicsEngine/RadialForceComponent.h" | |
// Sets default values | |
AExplosiveBarrel::AExplosiveBarrel() | |
{ |
NewerOlder