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
#include <iostream> | |
struct Nix {}; | |
template<int val, typename left, typename right> | |
struct Was | |
{ | |
using left_type = left; | |
using right_type = right; |
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
using System; | |
public static class Program | |
{ | |
public struct Bug | |
{ | |
public int a; | |
public long c; | |
public int b; | |
public long d; |
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
#!/usr/bin/env ruby -wKU | |
$stickieIndex = 0 | |
def uniq_index | |
i = $stickieIndex | |
$stickieIndex += 1 | |
i | |
end | |
class Stickie |
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
def randomchar | |
$rand.rand((0..255)).chr | |
end | |
def wreck!(data,iterations) | |
randrange = Range.new(400,data.length) | |
iterations.times do |i| | |
data[$rand.rand(randrange)] = randomchar | |
end | |
end | |
def valforbyte(data,byteindex) |