All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login

All New Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
jackz's Avatar

jackz / launch_stand.bat

0 likes
0 forks
1 files
Last active 10 months ago
1 :: Launch
2 @echo off
3 title Launch GTA with Stand
4
5
6 :: If you want to auto launch as admin, uncomment this: (Relaunches batch as admin)
7 ::if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
8
9 :: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10 :: !!! These variables may need to be changed !!!
jackz's Avatar

jackz / play_audio_v01.rs

0 likes
0 forks
1 files
Last active 10 months ago
1 use mlua::prelude::*;
2 use std::fs::File;
3 use std::io::BufReader;
4 use rodio::{Decoder, OutputStream, Sink};
5 use std::time::Duration;
6 use futures_timer::Delay;
7
8 async fn play_local_file(lua: &Lua, (filepath, volume, duration): (String, f32, u64)) -> LuaResult<()> {
9 let (_stream, stream_handle) = OutputStream::try_default().unwrap();
10 let sink = Sink::try_new(&stream_handle).unwrap();
jackz's Avatar

jackz / get_point_test.lua

0 likes
0 forks
1 files
Last active 10 months ago
1 local function GetEndCoord(deg, start, range)
2 local rad_x = deg['x'] * 0.0174532924
3 local rad_z = deg['z'] * 0.0174532924
4
5 return {
6 x = range * (-math.sin(rad_z) * math.cos(rad_x)) + start.x,
7 y = range * (math.cos(rad_z) * math.cos(rad_x)) + start.y,
8 z = range * math.sin(rad_x) + start.z
9 }
10 end
jackz's Avatar

jackz / hideandseek.cfg

0 likes
0 forks
1 files
Last active 10 months ago
1 "EntityConfig"
2 {
3 "c8m3_sewers"
4 {
5 "ents"
6 {
7 "A"
8 {
9 "origin" "13265.965820 8547.057617 -250.7"
10 "type" "env_physics_blocker"
jackz's Avatar

jackz / gist:1116ec986f464fa5a53e27a4bfd331c4

0 likes
0 forks
1 files
Last active 10 months ago
1 const header = [
2 `import SectionNode from '@/components/sections/SectionNode.vue'`
3 ]
4 const exported = {
5 name: "SectionNode",
6 props: {
7 node: Object
8 },
9 methods: {
10 gotoHeader() {
jackz's Avatar

jackz / gist:c8bb5aba2778482b9b861c9b01506c7d

0 likes
0 forks
1 files
Last active 10 months ago
1 #pragma semicolon 1
2 #pragma newdecls required
3
4 #include <sourcemod>
5 #include <sdktools>
6
7 // #include <l4d2_behavior>
8 #include <actions>
9
10 Handle g_hWitchAttack;
jackz's Avatar

jackz / jackz_vehicle_builder_spec.json5

0 likes
0 forks
1 files
Last active 10 months ago
1 {
2 // The format version. Script only checks the last piece (the 1.3.1)
3 "version": "Jackz Custom Vehicle 1.3.1",
4 "created": 1661726534, // Unix timestamp when the vehicle was created. Optional
5 "name": "MyVehicle", // A name for the vehicle, used for when importing into the editor. Optional
6 "author": null, // An author name credited for making vehicle. Optional
7 "blipIcon": 252, // The blip id to show. See https://docs.fivem.net/docs/game-references/blips/
8 "spawnLocation": { x = 0, y = 0, z = 0 }, // The spawn location of the vehicle. Optional, null will disable
9 "allowPlayerSpawning": false // Default is false, allows other players to use 'spawnbuild name' command
10
jackz's Avatar

jackz / debug.cs

0 likes
0 forks
1 files
Last active 10 months ago
1 public static void DrawBoundingBoxFromCenter(Vector3 center, Vector3 size, Color color)
2 {
3 Vector3 cornerA = new Vector3(center.X - size.X, center.Y - size.Y, center.Z + size.Z);
4 Vector3 cornerB = new Vector3(center.X + size.X, center.Y - size.Y, center.Z + size.Z);
5 Vector3 cornerC = new Vector3(center.X + size.X, center.Y + size.Y, center.Z + size.Z);
6 Vector3 cornerD = new Vector3(center.X - size.X, center.Y + size.Y, center.Z + size.Z);
7 DrawLine(cornerA, cornerB, color);
8 DrawLine(cornerB, cornerC, color);
9 DrawLine(cornerC, cornerD, color);
10 DrawLine(cornerD, cornerA, color);
jackz's Avatar

jackz / tokio_timer.rs

0 likes
0 forks
1 files
Last active 10 months ago
1 #[macro_export]
2 /// Runs your code after Duration has passed
3 /// # Examples
4
5 /// ```
6 /// timeout!(Duration::from_seconds(15), {
7 /// println!("Shutting down now...")
8 /// });
9 /// ```
10 ///
jackz's Avatar

jackz / BufferReader.ts

0 likes
0 forks
1 files
Last active 10 months ago
1 export default class BufferReader {
2 #buffer: Buffer
3 #offset: number
4 #length = 0
5
6 /// Yields BufferReaders, splitting when it hits newline
7 static *getPackets(data: Buffer) {
8 let reader = new BufferReader(data)
9 yield reader
10 // while(reader.nextBuffer != null) {
Newer Older

Powered by Opengist ⋅ Load: 545ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文