Skip to content

Instantly share code, notes, and snippets.

View steelx's full-sized avatar
🎮
GameDev by night

Ajinkya Borade steelx

🎮
GameDev by night
View GitHub Profile
@steelx
steelx / Draw_textbox.gml
Last active November 13, 2024 08:40
GameMaker Scripts
/// @function draw_textbox(x, y, max_width, text, sprite, bg_color, border_color)
/// It uses Scribble's get_box method to calculate the text dimensions, which includes padding,
/// The background and border are now drawn based on the dimensions returned by get_box.
/// @param {Real} _x The x coordinate of the bottom-left corner of the textbox
/// @param {Real} _y The y coordinate of the bottom-left corner of the textbox
/// @param {Real} _max_width The maximum width of the textbox
/// @param {String} _text The text to display in the textbox
/// @param {String} _bg_color The background color in hex format
/// @param {String} _border_color The border color in hex format
function draw_textbox(_x, _y, _max_width, _text, _bg_color, _border_color) {
@steelx
steelx / .ideavimrc
Created May 13, 2022 05:02 — forked from AlexPl292/.ideavimrc
My `~/.ideavimrc` file
let mapleader=" "
""" Plugins --------------------------------
set surround
set multiple-cursors
set commentary
set argtextobj
set easymotion
set textobj-entire
set ReplaceWithRegister
@steelx
steelx / install.md
Created April 29, 2022 05:35
Install ZSH on Windows via Git bash + Terminal
@steelx
steelx / typedi-demo.spec.ts
Created February 14, 2022 10:36
Type-di demo
import 'reflect-metadata';
import {Container, Inject, Service} from "typedi";
describe('typedi demo', () => {
it('should work', async () => {
const query = () => 'hello from query';
@Service()
class Repository {
@steelx
steelx / ajinkya.omp.json
Last active April 21, 2022 15:42
windows terminal oh-my-posh
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": false,
"osc99": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
@steelx
steelx / .gitconfig
Created July 5, 2021 05:34
Use Webstorm as diff and merge tool in Vscode
[user]
name = Ajinkya
email = [email protected]
[core]
autocrlf = input
[url "[email protected]:"]
insteadOf = https://github.com/
[diff]
tool = webstorm
[difftool "webstorm"]
@steelx
steelx / main.cpp
Created April 21, 2021 10:14
CS:GO C++ ESP
// GDI+ ESP
#include "pch.h"
#include "Offsets.h"
#include <iostream>
#include <Windows.h>
#include <TlHelp32.h>
/* SexOffenderSally helped code a lot/most of this with me, a long time friend! Give him a <3 on discord
Make sure character set is 'Multi-Byte' in project settings! And game must be windowed fullscreen.
Updated offsets: https://github.com/frk1/hazedumper/blob/master/csgo.cs */
@steelx
steelx / remove env file from git
Created January 29, 2021 05:41 — forked from gjerokrsteski/remove env file from git forever
remove env file from git history
echo '.env' >> .gitignore
git rm -r --cached .env
git add .gitignore
git commit -m 'untracking .env'
git push origin master
@steelx
steelx / esp32_ota_stm32.ino
Created November 6, 2020 12:56 — forked from rounakdatta/esp32_ota_stm32.ino
Flash STM32 firmware from ESP32
#include <SPIFFS.h>
/*
*
* Copyright (C) 2017 CS.NOL https://github.com/csnol/1CHIP-Programmers
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License,
* and You have to keep below webserver code
@steelx
steelx / api-deploy.yml
Created September 25, 2020 05:11
Rust :: Build and Deploy to GCP
name: Build and Deploy to Google
on:
workflow_dispatch:
# Environment variables available to all jobs and steps in this workflow
env:
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
GITHUB_SHA: ${{ github.sha }}
RUN_REGION: asia-southeast1