-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating table with locations for day 8
- Loading branch information
1 parent
36923ea
commit 12f5158
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
............ | ||
........0... | ||
.....0...... | ||
.......0.... | ||
....0....... | ||
......A..... | ||
............ | ||
............ | ||
........A... | ||
.........A.. | ||
............ | ||
............ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name: Dec08 | ||
namespace: local | ||
version: 0.0.1 | ||
prefer-local-libraries: 'true' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from Standard.Base import all | ||
from Standard.Table import all | ||
from Standard.Database import all | ||
from Standard.AWS import all | ||
from Standard.Google_Api import all | ||
from Standard.Snowflake import all | ||
import Standard.Examples | ||
import Standard.Visualization | ||
from Standard.Base.Meta import Enso_Project | ||
|
||
main = | ||
file1 = Data.read Examples.welcome | ||
any1 = Enso_Project.enso_project.data/"input.txt" | ||
any2 = Data.read any1 | ||
any3 = any2.split ['\n', '\r\n', '\r'] | ||
vector1 = any3.filter ..Not_Empty | ||
node1 = vector1.map .characters | ||
vector3 = node1.map_with_index (y-> r-> r.map_with_index (x-> v-> [v, x, y])) | ||
vector2 = vector3.flatten | ||
any4 = vector2.to_table | ||
|
||
|
||
|
||
#### METADATA #### | ||
[[{"index":{"value":314},"size":{"value":26}},"fcf199e6-d2b1-44b7-be92-a47545d6a593"],[{"index":{"value":352},"size":{"value":25}},"fa66aae3-08b0-4712-8e29-44a84d6ef59c"],[{"index":{"value":352},"size":{"value":42}},"c00140f6-fe23-4b85-b179-c1795a9784f6"],[{"index":{"value":406},"size":{"value":9}},"0b9aa8f6-33c5-400f-8500-f02ab8d4bf5a"],[{"index":{"value":406},"size":{"value":14}},"6ac011a0-6df9-43f2-ae02-c1be913223e4"],[{"index":{"value":432},"size":{"value":10}},"f476ccfe-f454-4295-9f14-97e42d47014a"],[{"index":{"value":432},"size":{"value":31}},"222dc8d8-6af0-47bd-adfa-4b9b55835fbc"],[{"index":{"value":478},"size":{"value":11}},"913127ef-85b1-456b-a7ee-52f63a51e0ad"],[{"index":{"value":478},"size":{"value":23}},"d13e6d2c-3573-4b0b-b351-bb6f7550fd0e"],[{"index":{"value":514},"size":{"value":23}},"6958b03e-df97-49b0-bd91-072eef5522cb"],[{"index":{"value":552},"size":{"value":20}},"052280e1-f351-4011-bda8-a2c61ce5def4"],[{"index":{"value":552},"size":{"value":67}},"ebaf5316-265b-47a6-92d2-194d8dcd3663"],[{"index":{"value":634},"size":{"value":15}},"ec41ca78-e90d-4b93-9002-b19315b97ff9"],[{"index":{"value":661},"size":{"value":16}},"271da897-ef83-474b-bd4b-2b71b8c83365"]] | ||
{"ide":{"node":{"fcf199e6-d2b1-44b7-be92-a47545d6a593":{"position":{"vector":[-388,282]},"visualization":{"show":true,"width":1027.671875,"height":193}},"c00140f6-fe23-4b85-b179-c1795a9784f6":{"position":{"vector":[-1275,258]}},"fa66aae3-08b0-4712-8e29-44a84d6ef59c":{"position":{"vector":[-1275,258]}},"6ac011a0-6df9-43f2-ae02-c1be913223e4":{"position":{"vector":[-1314,133]},"visualization":{"show":false,"width":349.5,"height":325}},"0b9aa8f6-33c5-400f-8500-f02ab8d4bf5a":{"position":{"vector":[-1314,133]}},"222dc8d8-6af0-47bd-adfa-4b9b55835fbc":{"position":{"vector":[-1252,42]},"visualization":{"show":false,"width":658.9375,"height":211}},"f476ccfe-f454-4295-9f14-97e42d47014a":{"position":{"vector":[-1252,42]}},"d13e6d2c-3573-4b0b-b351-bb6f7550fd0e":{"position":{"vector":[-1217,-30]},"visualization":{"show":false,"width":504,"height":293}},"913127ef-85b1-456b-a7ee-52f63a51e0ad":{"position":{"vector":[-1217,-30]}},"6958b03e-df97-49b0-bd91-072eef5522cb":{"position":{"vector":[-1134,-119]},"visualization":{"show":false,"width":973.4375,"height":335}},"ebaf5316-265b-47a6-92d2-194d8dcd3663":{"position":{"vector":[-1134,-191]}},"052280e1-f351-4011-bda8-a2c61ce5def4":{"position":{"vector":[-1082,-607]}},"ec41ca78-e90d-4b93-9002-b19315b97ff9":{"position":{"vector":[-1062,-281]},"visualization":{"show":false,"width":461,"height":348}},"271da897-ef83-474b-bd4b-2b71b8c83365":{"position":{"vector":[-1084,-712]},"visualization":{"show":false,"width":560,"height":309}}},"widget":{},"snapshot":"eJx9ksFqAjEQhu/7FIOXraBT1F4VLJWeWgqW9qCyjLuzNW02CdlRd/v0JVtXtFIPIQn/l+9nILm3BcyFTEY+w3sqGVThrBcgraP8LH2ltb4SP5DQ+qpg+j7/P3y09kNzMnXqf2Zu7D7X9HXWcTgeoVlFhdNcXgRvqtySVt8kypo/5jA5PrFQa56Z0iYv3n5yKlFUkDIwjgAAcqV5AGMI46JnyqAtxD3r1BbcYGTqQJ1qkMPFHS4ZCd12lHFbQamk074anrmDpk1GMG4ALJ1WAot4aeIexEvf7vGqQXecivWDX3qEudLCHhCfrSSzwkndUMZmzRwHGgtygOmGPKXCvjwxhd6GDkyyV7JJlMm4gpu6PwEf1kVS9Sew609gsetB1YN61e2eGIfH3hHmmkTYtEPeHaMhik0k/LnoB6Iv4+s="}} |