Skip to content

Instantly share code, notes, and snippets.

View gwoplock's full-sized avatar
💭
Fighting angular

Garrett Battaglia gwoplock

💭
Fighting angular
  • Dialexa
  • Dallas, Texas
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gwoplock on github.
  • I am gwoplock (https://keybase.io/gwoplock) on keybase.
  • I have a public key ASCco6pGJUib3xLcsCEXxWpYzq0tBSNybFqqBR7AMIfMSwo

To claim this, I am signing this object:

@gwoplock
gwoplock / .zshrc
Created February 24, 2019 18:31
.zshrc
#.oh-my-zshloadrc
# Path to your oh-my-zsh installation.
export ZSH=/Users/garrettbattaglia/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="junkfood"
@gwoplock
gwoplock / main.c
Created August 29, 2018 01:19
structs but not
#include <iostream>
#define READ_ITEM(base, offset, type) (*(type *)((uint8_t*)(base) + (offset)))
#define GET_F_NAME(base) READ_ITEM(base, sizeof(void*) * 0, char*)
#define GET_L_NAME(base) READ_ITEM(base, sizeof(void*) * 1, char*)
#define GET_AGE(base) READ_ITEM(base,sizeof(void*) * 2, int)
#define GET_GPA(base) READ_ITEM(base, sizeof(void*) * 3, float)
#define GET_GRADE(base) READ_ITEM(base, sizeof(void*) * 4, char*)
@gwoplock
gwoplock / GDT.c
Created May 12, 2017 00:22
c++ GDT
/*
* GDT.c
*
* Created on: Sep 15, 2016
* Author: garrett
*/
#include "GDT.h"
/*
* GlobalDescriptorTable.cpp
*
* Created on: Feb 20, 2017
* Author: garrett
*/
#include "GlobalDescriptorTable.h"
GlobalDescriptorTable::GlobalDescriptorTable( ) {
#include <iostream>
#include <sstream>
#include <unistd.h>
#include <vector>
void preFillArray( );
void parse( );
#include <iostream>
#include <string>
#include <sstream>
#include <unistd.h>
#include <vector>
void preFillArray();
void parse();
/*
* main.c
*
* Created on: Jan 24, 2017
* Author: gwoplock
*/
#include <inttypes.h>
#include <stdbool.h>