Skip to content

Instantly share code, notes, and snippets.

@mpolyak
mpolyak / Go Test File.sublime-build
Last active November 18, 2022 16:26
Sublime Text build system files for running Go tests
{
"shell_cmd": "go test -v -run \\$(cat $file_name | sed -n 's/func \\(Test.*\\)(.*/\\1/p' | xargs | sed 's/ /|/g')",
"file_regex": "^\\s*(.+\\.go):([0-9]+)",
"file_patterns": ["*_test.go"],
}
@mpolyak
mpolyak / CodeCombat_CrissCross_HighSea.js
Created September 18, 2014 12:28
1st place in the CodeCombat Criss-Cross tournament on the Ogres side http://blog.codecombat.com/a-good-new-fashioned-programming-throwdown
/*
Copyright (c) 2014 Michael Polyak. All Rights Reserved.
[email protected]
CodeCombat Criss-Cross, HighSea "Ogres"
*/
var GOLD = 128;
var SIZE = 6;
/*
Copyright (c) 2014 Michael Polyak. All Rights Reserved.
[email protected]
HighSea v2.7.6
*/
if (this.queue === undefined)
{