Skip to content

Instantly share code, notes, and snippets.

View rmhdev's full-sized avatar

Rober Martín H rmhdev

  • Donostia
  • 20:56 (UTC +02:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rmhdev on github.
  • I am rmhdev (https://keybase.io/rmhdev) on keybase.
  • I have a public key ASBvI621bSNfKjcoxtdURrOpgkoXwz-eWkGN9MfFAyxBqAo

To claim this, I am signing this object:

@rmhdev
rmhdev / Bowling score examples
Created April 10, 2011 00:55
Some examples of 10-pin bowling scores
[score = 300] XXXXXXXXXXXX
[score = 0 ] --------------------
[score = 90 ] 9-9-9-9-9-9-9-9-9-9-
[score = 150] 5/5/5/5/5/5/5/5/5/5/5
[score = 137] 729-9-9-9/9/XX8-71
[score = 135] -69/X63719-5/X7/7-
[score = 100] 1/-99-6-157-8/7-9-XX-
[score = 92 ] 9/9-8--/72-481-63-8-
[score = 112] 357-3/-333X9/8/629/6
[score = 157] 8/X71718-9-XX9/X7-
@rmhdev
rmhdev / ArraySiblingsTest.php
Created March 23, 2011 20:23
My solution to the Array Siblings problem.
<?php
interface ArraySiblingsInterface {
public static function previous($needle, $haystack, $continueAtTop = true);
public static function next($needle, $haystack, $continueAtBottom = true);
}
class ArraySiblings implements ArraySiblingsInterface {