This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACTION=="change", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/USER/.Xauthority", RUN+="/usr/local/bin/udev-monitor-hook %E{DEVNAME} %p %E{ACTION} %k" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <iostream> | |
#include <algorithm> | |
float | |
calculate(std::string exp) | |
{ | |
char operators[] = {'+', '-', '*', '/'}; | |
std::string buffer; | |
char op = -1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SDL2/SDL.h> | |
#define SCREEN_WIDTH 1280 | |
#define SCREEN_HEIGHT 720 | |
int | |
main(void) { | |
SDL_Window *window = SDL_CreateWindow( | |
"Window Title", | |
SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function list_names {Get-ChildItem -Name} | |
Set-Alias -Name ls -Value list_names -Option AllScope | |
function prompt { | |
$( | |
if ( -join (Get-Location).Path -eq ($HOME)) { | |
$promptString = "[~]" | |
} | |
else { | |
if ((Get-Location).Path.Split("\").length -ge 3) { |