Skip to content

Instantly share code, notes, and snippets.

View abhatem's full-sized avatar
💭
🎶🧑‍💻

abhatem abhatem

💭
🎶🧑‍💻
View GitHub Profile
@abhatem
abhatem / config.fish
Created April 15, 2024 22:37
add this to ~/.config/fish/config.fish to use fish inside M-x term in emacs
# for emacs M-x term
function fish_title
true
end
@abhatem
abhatem / Microsoft.PowerShell_profile.ps1
Created August 1, 2023 14:21
My initial powershell profile
Set-Alias lvim 'C:\Users\USER\.local\bin\lvim.ps1'
Import-Module PSReadLine
Enable-PowerType
Set-PSReadLineOption -PredictionSource HistoryAndPlugin -PredictionViewStyle ListView
oh-my-posh --init --shell pwsh --config 'C:\OhMyPoshThemes\dlg.omp.json' | Invoke-Expression
Import-Module -Name Terminal-Icons
Import-Module PSFzf
Set-PsFzfOption -PSReadLineChordProvider ‘Ctrl+f’ -PSReadLineChordReverseHistory ‘Ctrl+r’
@abhatem
abhatem / state_engine.py
Created September 7, 2016 23:49 — forked from iminurnamez/state_engine.py
Simple state engine example
import sys
import pygame as pg
class Game(object):
"""
A single instance of this class is responsible for
managing which individual game state is active
and keeping it updated. It also handles many of
pygame's nuts and bolts (managing the event
@abhatem
abhatem / .emacs
Created June 21, 2016 20:28
my emacs init file
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.org/packages/")
("melpa_stable" . "http://stable.melpa.org/packages/")))
@abhatem
abhatem / libsndfile_test.cxx
Created January 13, 2016 00:09 — forked from take-cheeze/libsndfile_test.cxx
libsndfile and OpenAL test
/*
TO compile:
ccache g++ -Wall -Wextra -pipe -lsndfile -lopenal -lboost_chrono -lboost_system -lboost_thread libsndfile_test.cxx
TO run:
./a.out $AUDIO_FILE
*/
#include <sndfile.h>