Skip to content

Instantly share code, notes, and snippets.

Stephen Mouring marlhammer

Block or report user

Report or block marlhammer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@marlhammer
marlhammer / gol.go
Last active Jan 29, 2016
The Game Of Life implemented in Google Go
View gol.go
package main
import (
"fmt"
)
func main() {
board_size := 30
board := make([][]int, board_size)
View wow_profiler_downloader.py
import httplib2
import json
# Parameters:
#
character_name = "Marlhammer"
server = "Khadgar"
# Script:
@marlhammer
marlhammer / AwsExampleGlacierMultipart.java
Created Jun 25, 2014
AWS Example (Glacier Multipart)
View AwsExampleGlacierMultipart.java
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;
import com.amazonaws.auth.ClasspathPropertiesFileCredentialsProvider;
import com.amazonaws.regions.Region;
import com.amazonaws.regions.Regions;
View AwsExampleGlacier.java
import java.io.File;
import com.amazonaws.auth.ClasspathPropertiesFileCredentialsProvider;
import com.amazonaws.regions.Region;
import com.amazonaws.regions.Regions;
import com.amazonaws.services.glacier.AmazonGlacierClient;
import com.amazonaws.services.glacier.transfer.ArchiveTransferManager;
import com.amazonaws.services.glacier.transfer.UploadResult;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3Client;
View AwsExampleS3.java
import java.io.File;
import com.amazonaws.auth.ClasspathPropertiesFileCredentialsProvider;
import com.amazonaws.regions.Region;
import com.amazonaws.regions.Regions;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3Client;
import com.amazonaws.services.s3.model.Bucket;
import com.amazonaws.services.s3.model.PutObjectRequest;
View TextSet.java
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
import org.apache.commons.lang.StringUtils;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.Writable;
View HdfsSyncingLocalFileOutputCommitter.java
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.mapreduce.JobContext;
import org.apache.hadoop.mapreduce.JobStatus.State;
import org.apache.hadoop.mapreduce.TaskAttemptContext;
View HdfsSyncingLocalFileOutputFormat.java
import java.io.File;
import java.io.IOException;
import org.apache.hadoop.mapreduce.OutputCommitter;
import org.apache.hadoop.mapreduce.RecordWriter;
import org.apache.hadoop.mapreduce.TaskAttemptContext;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
public class HdfsSyncingLocalFileOutputFormat<K, V> extends FileOutputFormat<K, V> {
public static final String PARAMETER_LOCAL_SCRATCH_PATH = "param.localScratchPath";
View monitor.py
#!/usr/bin/python
import subprocess
import re
import sys
import time
import datetime
import gspread
# Google Account
View JTextFieldHintUI.java
import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import javax.swing.plaf.basic.BasicTextFieldUI;
import javax.swing.text.JTextComponent;
public class JTextFieldHintUI extends BasicTextFieldUI implements FocusListener {
You can’t perform that action at this time.