Skip to content

Instantly share code, notes, and snippets.

@rockhymas
rockhymas / gist:bcbd83c88a490fc45e9be6726a634d66
Created August 24, 2017 21:15
Verifying that "rockhymas.id" is my Blockstack ID. https://onename.com/rockhymas
Verifying that "rockhymas.id" is my Blockstack ID. https://onename.com/rockhymas
@rockhymas
rockhymas / minecraftseeds.txt
Last active May 5, 2020 02:47
Minecraft seeds that generate all biomes within 5000 blocks
Over the last year or so, I've been using MineAtlas to compile a nice long list of seeds that have all biomes within 5000 blocks.
Specifically, I looked to make sure each seed has ice spikes, jungle, mega taiga, mushroom island, and mesa biomes within 5000
blocks of 0, 0. I do this so that when I want to start a new world, I can pick one of these, trusting that it
will be a good world to explore, but without having just seen a map. That way I don't know where everything is, just that it's all
close enough to make it worth it.
243091048059118
-828131664763204
-761676406782751
-376708943228782
@rockhymas
rockhymas / gist:2978368
Created June 23, 2012 13:57
WeightColumns
public void WeightColumns(List<int> weights, List<int> fixedWidths)
{
if (TableStyles.Count <= 0) return;
var tableStyle = TableStyles[0];
if (tableStyle.GridColumnStyles.Count < 1) return;
if (fixedWidths == null)
fixedWidths = Enumerable.Repeat(0, tableStyle.GridColumnStyles.Count).ToList();
if (weights == null)
weights = Enumerable.Repeat(1, tableStyle.GridColumnStyles.Count).ToList();
@rockhymas
rockhymas / gist:2978366
Created June 23, 2012 13:56
ResizeGridColumns alt2
var usableWidth = dataGrid.ClientSize.Width - verticalScrollBarWidth - LAST_COL_MARGIN;
var columnWidth = usableWidth / tableStyle.GridColumnStyles.Count;
for (var index = 0; index < tableStyle.GridColumnStyles.Count; index++)
tableStyle.GridColumnStyles[index].Width = columnWidth;
@rockhymas
rockhymas / gist:2978364
Created June 23, 2012 13:55
ResizeGridColumns alt1
tableStyle.GridColumnStyles[0].Width = dataGrid.ClientSize.Width / 2;
tableStyle.GridColumnStyles[1].Width = dataGrid.ClientSize.Width - tableStyle.GridColumnStyles[0].Width - verticalScrollBarWidth - 6;
@rockhymas
rockhymas / gist:2978331
Created June 23, 2012 13:39
ResizeGridColumns
private const int LAST_COL_MARGIN = 12;
private void ResizeGridColumns()
{
var verticalScrollBar = dataGrid.GetDataGridVerticalScrollBar();
var verticalScrollBarWidth = verticalScrollBar != null ? verticalScrollBar.Width : 0;
var horizontalScrollbar = dataGrid.GetDataGridHorizontalScrollBar();
if (horizontalScrollbar != null)
horizontalScrollbar.Visible = false;
pulling from git://github.com/rails/rails.git
importing Hg objects into Git
Counting objects: 120804, done.
Compressing objects: 100% (26226/26226), done.
Total 120804 (delta 93276), reused 120579 (delta 93128)
importing Git objects into Hg
at: 0/12760
at: 100/12760
at: 200/12760
at: 300/12760