Skip to content

Instantly share code, notes, and snippets.

View martinblech's full-sized avatar

Martín Blech martinblech

View GitHub Profile
@martinblech
martinblech / .tmux.conf
Created January 4, 2024 06:15
.tmux.conf
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
# Enable xterm keys
set-window-option -g xterm-keys on
@martinblech
martinblech / keybase.md
Created April 11, 2016 18:46
keybase.md

Keybase proof

I hereby claim:

  • I am martinblech on github.
  • I am martinblech (https://keybase.io/martinblech) on keybase.
  • I have a public key whose fingerprint is F6E7 34B0 6112 8E59 AB96 9FFB 5B15 BE2D F5CC 3AEF

To claim this, I am signing this object:

@martinblech
martinblech / ArrayVsMMap.java
Created August 27, 2012 23:26
new float[] vs. MappedByteBuffer benchmark
import java.io.File;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.util.Random;
import com.google.caliper.Param;
@martinblech
martinblech / ArrayVsMMap.java
Created August 26, 2012 18:04
float[] vs. MappedByteBuffer.asFloatBuffer()
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.FloatBuffer;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.util.Random;
public class ArrayVsMMap {
private static abstract class IterationTest {