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
package blackhawk; | |
import java.util.*; | |
import static robocode.util.Utils.normalRelativeAngleDegrees; | |
public class BH2 extends robocode.Robot { | |
private class Point { | |
private double x; |
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 node | |
var Pathfinding = Object.create(null); | |
Pathfinding.Node = function(value) { | |
this.value = value; | |
this.neighbors = []; | |
}; | |
Pathfinding.Node.prototype.reset = function() { |
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 fish | |
set max_width 320 | |
set input_folder ~/Videos | |
set output_folder ~/compressed | |
function downsample | |
set file $argv[1] | |
set input $input_folder/$file |
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
gem 'table_print' |
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
Lazy = _.chain; | |
Lazy.range = function() { | |
return _.chain(_.range.apply(_, arguments)); | |
}; | |
_.prototype.toArray = function() { | |
return this.value(); | |
}; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Alignment</title> | |
<meta name="author" content="Michel Pavan Macedo"> | |
<!-- http://t.co/dKP3o1e --> | |
<meta name="HandheldFriendly" content="True"> | |
<meta name="MobileOptimized" content="320"> |
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 | |
require 'awesome_print' | |
r = %r{ \A | |
(?:(?<protocol>http)://)? | |
(?<domain>(?:[a-z\d-]+\.)+[a-z\d]{2,}) | |
(?: | |
/ | |
(?<path>(?:[a-z\d._\-+,%&()!'~&=:]+\/)*[a-z\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
public interface Func<TReturn, TArg0> { | |
public TReturn call(TArg0 arg0); | |
} |
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
// ==UserScript== | |
// @name Google Translate Keyboard Everywhere | |
// @description 25 keyboard shortcuts (with on-screen help) to use GT at rapid pace. | |
// @icon http://translate.google.com/favicon.ico | |
// @version 1.0-20130224 | |
// @namespace http://jakub-g.github.com | |
// @author http://jakub-g.github.com | |
// @license Apache 2.0 | |
// @downloadURL https://raw.github.com/jakub-g/greasemonkey-userscripts/master/googleTranslate/keyboardEverywhere.js | |
// @userscriptsOrg http://userscripts.org/scripts/show/... |
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 fish | |
for tool in ack rename perl | |
if not which $tool >/dev/null | |
echo You need $tool to run this tool >&2 | |
exit 1 | |
end | |
end | |
if [ (count $argv) != 3 ] |
NewerOlder