This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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; |
OlderNewer