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
| 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 | |
| furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in | |
| all copies or substantial portions of the Software. |
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
| #ifndef APPLICATION_H | |
| #define APPLICATION_H | |
| #include <stdio.h> | |
| #include <SDL2/SDL.h> | |
| typedef struct Application { | |
| SDL_Window* window; | |
| char* title; |
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
| #ifndef QUEUE_H | |
| #define QUEUE_H | |
| #define NULL_ITEM 65536 | |
| typedef struct Queue { | |
| unsigned int front, rear, size; | |
| unsigned int capacity; | |
| unsigned int* array; | |
| } Queue; |
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 <windows.h> | |
| #include <stdbool.h> | |
| enum { | |
| KEY_UNKNOWN, | |
| KEY_MOUSE_LEFT, | |
| KEY_MOUSE_RIGHT, | |
| KEY_MOUSE_MIDDLE, |
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
| package Gridtools; | |
| import java.awt.*; | |
| import javax.swing.JPanel; | |
| import javax.swing.JFrame; | |
| import javax.swing.WindowConstants; | |
| public class Grid extends JPanel { | |
| protected static final long serialVersionUID = 0L; | |
| protected static final int MARGIN_SIZE = 5; |
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
| #!/usr/bin/env bash | |
| # Export DISPLAY to VcXsrv Windows X Server | |
| export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0 | |
| echo "Updated Display: ${DISPLAY}" | |
| exit 0 | |
| #SHELL |
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
| #!/usr/bin/env bash | |
| # Determine if it's a network storage or external hard drive | |
| read -p "(N)etwork or (D)rive? " -n1 external | |
| echo "" | |
| # Blank input check | |
| if [ -z "$external" ]; then | |
| echo 'Inputs cannot be blank!' | |
| exit 0 |