Skip to content

Instantly share code, notes, and snippets.

View mgalgs's full-sized avatar
🍔
pizza

Mitchel Humpherys mgalgs

🍔
pizza
View GitHub Profile
@mgalgs
mgalgs / neercs-patch-patch.patch
Created June 25, 2011 00:02
neercs PKGBUILD tiny patch
diff -c /home/mgalgs/abs/neercs-git/PKGBUILD.orig /home/mgalgs/abs/neercs-git/PKGBUILD
*** /home/mgalgs/abs/neercs-git/PKGBUILD.orig 2011-06-24 17:01:37.858847642 -0700
--- /home/mgalgs/abs/neercs-git/PKGBUILD 2011-06-24 16:59:40.155520196 -0700
***************
*** 35,40 ****
--- 35,41 ----
rm -rf "$_gitname"-build
git clone "$_gitname" "$_gitname"-build
cd "$_gitname"-build
+ git apply "${startdir}/0001-bogus-tab-key-and-copyright.patch"
@mgalgs
mgalgs / haf.cpp
Created June 23, 2011 17:23
hand and foot program
// -*- mode: c++; compile-command: "g++ -g -o haf haf.cpp"; -*-
// hand and foot scoring program by Joseph Mickelson
#include <iostream>
#include <stdio.h> //for printf
#include <vector>
#include <numeric> //for accumulate
#ifdef __linux__
#include <stdlib.h>
#endif
@mgalgs
mgalgs / zIndexTest.html
Created January 22, 2011 18:54
The zIndex option for the circle object in the Google Maps API doesn't seem to be working correctly... This is a minimal example showing the behavior.
<html>
<head>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?libraries=geometry&sensor=false"></script>
<script type="text/javascript">
function initialize() {
var cntr = new google.maps.LatLng(-34.397, 150.644);
var myOptions = {
zoom: 14,