Skip to content

Instantly share code, notes, and snippets.

View joshkalpin's full-sized avatar

Josh Kalpin joshkalpin

View GitHub Profile
@joshkalpin
joshkalpin / gist:d5691a40d6bb69611eb6
Created November 22, 2014 19:21
Generic Makefile
CXX = g++
# variables and initialization
CXXFLAGS = -g -Wall -MMD `pkg-config gtkmm-2.4 --cflags --libs`
# builds dependency lists in .d files
OBJECTS = Views/StraightsWindow.o Views/DeckUI.o main.o Views/PlayerFrame.o Views/MessageDialogBox.o Views/ConfigurationDialogBox.o Model/GameMaster.o Model/Player.o Controller/StraightsController.o Common/Card.o Model/Deck.o Model/Table.o Model/Subject.o Model/HumanPlayer.o Model/SmartComputerPlayer.o Model/ComputerPlayer.o
DEPENDS = ${OBJECTS:.o=.d}
# substitute ".o" with ".d"
EXEC = straights
${EXEC} : ${OBJECTS}
${CXX} ${OBJECTS} ${CXXFLAGS} -o ${EXEC}
//Fucking huge hack, OMFG
setTimeout(function() {
getElementByXpath('/html/body/div[5]').remove();
}, 0);
setTimeout(function() {
nextElement = getElementByXpath('/html/body/div[5]');
if (nextElement !== null) {
getElementByXpath('/html/body/div[5]').remove();
}
}, 0);