This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Simple docker-compose file for Gitlab CE and a Jenkins master. | |
# This is for testing and builds are done on the jenkins master. | |
# | |
version: "2" | |
services: | |
gitlab: | |
image: "gitlab/gitlab-ce:8.15.2-ce.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This is a simple makefile to assist with quickly building the Exercises of MP2. | |
# | |
# To build and execute a particular exercise: | |
# - For a single exercise, type 'make runA' to run exercise A. | |
# - For all exercises, 'make'. | |
# | |
# | |
HADOOP_CLASSPATH := ${JAVA_HOME}/lib/tools.jar | |
export HADOOP_CLASSPATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
from bs4 import BeautifulSoup, NavigableString | |
def modify_node(soup, node): | |
parent = node.parent | |
tokens = str(node.string).splitlines() | |
str_index = parent.index(node) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Simple program to demonstrate how to register an event with a button. | |
// | |
// There are two inputs, a result field, and a button. When the button is pushed, | |
// an event is fired which finds the root of the sum of the squares. | |
// | |
import java.awt.event.*; | |
import javax.swing.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Lucas Burson | |
# 26 June 2012 | |
# | |
# This attempts to crash ODT (or docx) readers via a fuzzed input file. | |
# Since ODT is zipped, we need to extract the files and then write random bytes (keep valid CRC). | |
# | |
# TODO: Maybe we "shouldn't" destroy XML tags or attribute names... XSD/marshall would catch those | |
# |