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
class Array | |
def group p | |
arr = self | |
res = [] | |
start = 0 | |
last = 0 | |
while start + p <= arr.length | |
last = start + p -1 | |
res.push(arr[start..last]) | |
start = last + 1 |
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
i=0 | |
result = [] | |
while nil != buf = gets | |
arr = [] | |
arr = buf.split(" ").collect do |s| s.to_i end | |
result.push arr | |
end | |
print result |
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
#!/Users/hrl7/.rbenv/shims/ruby | |
def solve | |
puts "Solver Start" | |
board = [ | |
[1, 0, 0, 0, 0, 0, 0, 0], | |
[1, 0, 0, 0, 0, 0, 0, 0], | |
[1, 0, 0, 0, 0, 0, 0, 0], | |
[1, 0, 0, 0, 0, 0, 0, 0], | |
[1, 0, 0, 0, 0, 0, 0, 0], |
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
patch-package | |
--- a/node_modules/react-native-maps/index.js | |
+++ b/node_modules/react-native-maps/index.js | |
@@ -1,4 +1,4 @@ | |
-import MapView from './lib/components/MapView'; | |
+import MapView from './lib/components/MapView'; | |
export { default as Marker } from './lib/components/MapMarker.js'; | |
export { default as Polyline } from './lib/components/MapPolyline.js'; | |
@@ -9,7 +9,9 @@ export { default as LocalTile } from './lib/components/MapLocalTile.js'; |
I hereby claim:
- I am zigen on github.
- I am zigen (https://keybase.io/zigen) on keybase.
- I have a public key ASBIfT0-iHH059k1q6RjK9qX0XKE-g_snyTbAVHoGsMOzQo
To claim this, I am signing this object:
OlderNewer