Skip to content

Instantly share code, notes, and snippets.

@Eathan3
Eathan3 / instalaciones-openai-react.md
Created May 4, 2024 17:37 — forked from Klerith/instalaciones-openai-react.md
Instalaciones recomendadas para el curso de OpenAI con React y Nest

OpenAI Logo

Instalaciones recomendadas

Curso de OpenAI con React y NestJS

Necesarias

VIDEOS MIGHT OUTDATED BUT TEXT IS NOT

this guide is not meant to help with leaking or any stupid things you might do to ruin experience for other people

Downloading

  • Get latest version from Github Actions not releases from here , if you dont have account you can use site like nightly.link to download it , Latest build
  • Extract zip file somewhere
chrome_bBlpF4CYiz.webm.mov

@ciiqr
ciiqr / zod-optional-null.ts
Last active May 4, 2024 17:36
zod optional/nullable/nullish differences
// zod schema
z.object({
// valid if string or:
optional: z.string().optional(), // field not provided, or explicitly `undefined`
nullable: z.string().nullable(), // field explicitly `null`
nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined`
});
// type
{
@jershell
jershell / baseLayout.kt
Created November 6, 2020 22:52
jetpack compose desktop base layout
package io.resound.ui.components
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
@Matt54
Matt54 / BlobView.Swift
Last active May 4, 2024 17:33
A fluid-like animating SwiftUI View
import SwiftUI
struct BlobView: View {
@State private var mainPosition: CGPoint = .zero
@State private var positions: [CGPoint] = []
private let blurRadius = 20.0
private let alphaThreshold = 0.875
private let ballCount = 20
@tf4482
tf4482 / columns_cheat_sheet.md
Created May 4, 2024 17:32 — forked from JemCdo/columns_cheat_sheet.md
Laravel Migration Cheat Sheet

Columns

Available Column Types

The schema builder contains a variety of column types that you may specify when building your tables:

The schema builder contains a variety of column types that you may specify when building your tables:

Command` Description
$table->bigIncrements('id'); Auto-incrementing UNSIGNED BIGINT (primary key) equivalent column.
$table->bigInteger('votes'); BIGINT equivalent column.
@JemCdo
JemCdo / columns_cheat_sheet.md
Created September 25, 2019 16:10 — forked from alphaolomi/columns_cheat_sheet.md
Laravel Migration Cheat Sheet

Columns

Available Column Types

The schema builder contains a variety of column types that you may specify when building your tables:

The schema builder contains a variety of column types that you may specify when building your tables:

Command` Description
$table->bigIncrements('id'); Auto-incrementing UNSIGNED BIGINT (primary key) equivalent column.
$table->bigInteger('votes'); BIGINT equivalent column.
@GAS85
GAS85 / aria2c_webUI.md
Last active May 4, 2024 17:32
Aria2 + Ubuntu 18.04 + Apache2 + Web UI
OS: Ubuntu 18.04 Apache/2.4.18 1.0.2g-1ubuntu4.10
Aim: to install Aria2 with WebUI and secure Token.
IP Addr of your Aria2 server is 192.168.0.111
Your local IP network is 192.168.0.0/24

Aria 2

1. Installation

Install aria2 package:

// BENCH
const NEW_TEMPLATE_INPUT: &str = r#"{"e":"depthUpdate","E":1571889248277,"T":1571889248276,"s":"BTCUSDT","U":390497796,"u":390497878,"pu":390497794,"b":[["7403.89","0.002"],["7403.90","3.906"],["7404.00","1.428"],["7404.85","5.239"],["7405.43","2.562"]],"a":[["7405.96","3.340"],["7406.63","4.525"],["7407.08","2.475"],["7407.15","4.800"],["7407.20","0.175"]]}"#;
fn criterion_benchmark(c: &mut Criterion) {
c.bench_function("Deserialize using serde", |b| {
b.iter(|| {
let _: BBO =
serde_json::from_str(NEW_TEMPLATE_INPUT).expect("Failed to deserialize JSON");
})
@SingingBush
SingingBush / godot-fedora.md
Created April 1, 2018 01:25
setting up Godot on Fedora Linux

Godot 3.0.2 (Mono Version)

Get the latest Mono

Godot requires Mono 5.4.x but the Fedora repo is still stuck on an older version. Install the latest directly from the Mono Project (currently 5.10.x).

http://www.mono-project.com/download/stable/#download-lin

rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"