Skip to content

Instantly share code, notes, and snippets.

View mepcotterell's full-sized avatar
💭
I may be slow to respond.

Michael Cotterell mepcotterell

💭
I may be slow to respond.
View GitHub Profile

readelf.c

#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <elf.h>

int main(int argc, char * argv []) {
  if (argc == 2) {

intrusive.h

#ifndef INTRUSIVE_H
#define INTRUSIVE_H

struct list_node {
  struct list_node * next;
};

struct data_item {

offsetof.h

#ifndef OFFSETOF_H
#define OFFSETOF_H

#include <stdio.h>

#define STR_EXPAND(tok) #tok
#define STR(tok) STR_EXPAND(tok)
Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile ubuntu-1804.appx -UseBasicParsing
Rename-Item .\ubuntu-1804.appx .\ubuntu-1804.zip
Expand-Archive .\ubuntu-1804.zip
.\ubuntu-1804\ubuntu1804.exe
id GNP.deflator GNP Unemployed Armed.Forces Population Year Employed
1947 83 234.289 235.6 159 107.608 1947 60.323
1948 88.5 259.426 232.5 145.6 108.632 1948 61.122
1949 88.2 258.054 368.2 161.6 109.773 1949 60.171
1950 89.5 284.599 335.1 165 110.929 1950 61.187
1951 96.2 328.975 209.9 309.9 112.075 1951 63.221
1952 98.1 346.999 193.2 359.4 113.27 1952 63.639
1953 99 365.385 187 354.7 115.094 1953 64.989
1954 100 363.112 357.8 335 116.219 1954 63.761
1955 101.2 397.469 290.4 304.8 117.388 1955 66.019

CSCI 1302 - Reversi-Alpha

  • UML DUE THU 2016-02-18 (Feburary 18th) @ 11:59
  • Full Project DUE THU 2016-03-03 (March 3rd) @ 11:59 PM

This document contains the description for the Reversi Alpha project assigned to the students in the Spring 2016 CSCI 1302 classes at the University of Georgia.

;; add line numbers
(global-linum-mode 1)
;; configure backups
(setq backup-directory-alist `(("." . "~/.saves")))
;; display line numbers and column numbers
(setq line-number-mode t)
(setq column-number-mode t)
@mepcotterell
mepcotterell / NikeGitHub.md
Last active January 2, 2016 03:39
Nike and GitHub Handout

Everyone in the class needs to complete the following steps, individually. You can skip sections that you have already completed. You need to have a GitHub and Nike account in order to complete these steps.

Gather Information

Throughout the tutorial, I will make use of variables. Please gather the following information:

  • ${actualName}: Your full name, capitalized correctly.
  • ${gitHubEmail}: The email address you used to register your GitHub account.
  • ${gitHubPassword}: The password for your GitHub account.
@mepcotterell
mepcotterell / LICENSE
Last active August 19, 2023 16:44
Simple Python Plugin Manager
The MIT License (MIT)
Copyright (c) 2013 Michael E. Cotterell
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:
/* Copyright (c) 2013 Michael E. Cotterell
*
* 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