Skip to content

Instantly share code, notes, and snippets.

View EllisBarnes00's full-sized avatar
:shipit:
Finally going to college to get my CS degree.

Ellis Barnes EllisBarnes00

:shipit:
Finally going to college to get my CS degree.
  • Florida
View GitHub Profile
@EllisBarnes00
EllisBarnes00 / makefile
Created January 17, 2022 15:08
SDL2 perfect makefile
CC := gcc
OBJS := main.c
COMPILER_FLAGS := -Wall -Wextra -pedantic -std=c11
LINKER_FLAGS := -lSDL2 -lSDL2main -lSDL2_image
OBJ_NAME := "Game Name"
all: $(OBJS)
$(CC) $(OBJS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(OBJ_NAME)
clean: $(OBJ_NAME)
#!/bin/sh
sleep 5 && echo "Adding the repository for graphics drivers"
sudo apt-add-repository ppa:graphics-drivers/ppa -y
sudo apt-get update
sleep 5 && echo "Getting you Google Chrome!"
sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
@EllisBarnes00
EllisBarnes00 / premake4.lua
Created February 23, 2017 06:40
SDL2 and OpenGL premake4 file
solution "Fractals"
configurations { "Debug", "Release" }
project "Julia"
kind "ConsoleApp"
language "C++"
-- Files of the program
files {
"julia.cpp"
@EllisBarnes00
EllisBarnes00 / premake4.lua
Created February 11, 2017 05:19
GLFW premake4.lua
solution "LearnOpenGL"
configurations {"Debug", "Release"}
project "002"
kind "ConsoleApp"
language "C++"
-- The main files to the program
files {
"main.cpp"
@EllisBarnes00
EllisBarnes00 / ItemShop.cpp
Created October 17, 2016 03:10
An Item Shop that will use arrays to work.
#include <iostream>
#include <string>
using namespace std;
//Constant globals are okay, though you should avoid globals when possible
const int numItems = 6;
const string shopItemNames[numItems] = {
"Boots",
"Swords",
import java.util.Random;
import java.util.Scanner;
public class Apply {
public static void main(String[] args) {
Random rand = new Random();
int numberToGuess = rand.nextInt(100);
int numberOfTries = 0;
// ================== Rates ===================
rate "128000"
cl_cmdrate "128"
cl_updaterate "128"
cl_interp "0"
cl_interp_ratio "1"
// ============== Video settings ==============
mat_monitorgamma "2"
fps_max "300"