Skip to content

Instantly share code, notes, and snippets.

View ducklin5's full-sized avatar
💻
In the Zone

Azeez Abass ducklin5

💻
In the Zone
View GitHub Profile
@ducklin5
ducklin5 / gdext-rust-macros.rs
Last active October 22, 2023 19:33
Godot Rust Macros
/*
* MIT License
*
* Copyright (c) 2023 Azeez Abass
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@ducklin5
ducklin5 / make_builder.h
Last active March 28, 2023 06:31
make_builder.h - a cpp11 single file library with a macro to autogenerate a builder class for any struct
/*
* MIT License
*
* Copyright (c) 2023 Azeez Abass
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
set -g default-terminal "screen-256color"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'jimeh/tmux-themepack'
run '~/.tmux/plugins/tpm/tpm'
@ducklin5
ducklin5 / .vimrc
Last active September 7, 2020 07:30
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Plugins ---------------------------------------------------------------------
call plug#begin('~/.vim/plugged')
Plug 'mhinz/vim-startify'
if [ "$TMUX" = "" ]; then
export PATH="${PATH}:/home/cmput274/.gem/ruby/2.5.0/bin:/home/cmput274/.local/bin";
exec tmux;
fi
export PYTHONPATH="/home/cmput274/.local/lib/python3.5/site-packages/"
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
@ducklin5
ducklin5 / CustomTextureProgress.gd
Created June 30, 2019 17:22
A custom textureprogress node for godot
extends Container
class_name CustomTextureProgress
tool
export(Texture) var textureUnder setget setUnderTexture
export(Texture) var textureProgress setget setProgressTexture
export(Texture) var textureOver setget setOverTexture
export(int) var stretchMarginLeft setget setStretchMarginLeft
export(int) var stretchMarginTop setget setStretchMarginTop
" Evironmental variables ------------------------------------------------------
" let $PYTHONPATH='/usr/lib/python3.6/site-packages'
set rtp+=/usr/lib/python3.6/site-packages/powerline/bindings/vim/
" Plugins ---------------------------------------------------------------------
set nocompatible " be iMproved, required
filetype off " required
" Evironmental variables ------------------------------------------------------
" let $PYTHONPATH='/usr/lib/python3.6/site-packages'
set rtp+=/usr/lib/python3.6/site-packages/powerline/bindings/vim/
" Plugins ---------------------------------------------------------------------
set nocompatible " be iMproved, required
filetype off " required
@ducklin5
ducklin5 / GodotSmearFrame2D.shader
Last active June 1, 2018 18:38
Godot 2D remake of LuggLD's and cjacobwade's SmearFrame Effect
shader_type canvas_item;
uniform float texSizeLength = 1.0 ;
uniform vec2 prev_pos = vec2(1.0,1.0) ;
uniform vec2 current_pos = vec2(1.0,1.0);
uniform float prev_rot = 0.0;
uniform float current_rot = 10.0;
uniform float _NoiseHeight = 64;
uniform float _NoiseScale = 5.0;
float rand(vec2 n) {