First task done

master
Cpt. Captain 7 years ago
commit 41a059d7f6
  1. 9
      .idea/daily.iml
  2. 6
      .idea/misc.xml
  3. 8
      .idea/modules.xml
  4. 206
      .idea/workspace.xml
  5. 13
      tally/.idea/misc.xml
  6. 8
      tally/.idea/modules.xml
  7. 9
      tally/.idea/tally.iml
  8. 267
      tally/.idea/workspace.xml
  9. 4
      tally/Cargo.lock
  10. 6
      tally/Cargo.toml
  11. 36
      tally/src/main.rs
  12. 0
      tally/target/debug/.cargo-lock
  13. 1
      tally/target/debug/.fingerprint/tally-25f63ae9f91ac05b/bin-tally-25f63ae9f91ac05b
  14. 1
      tally/target/debug/.fingerprint/tally-25f63ae9f91ac05b/bin-tally-25f63ae9f91ac05b.json
  15. BIN
      tally/target/debug/.fingerprint/tally-25f63ae9f91ac05b/dep-bin-tally-25f63ae9f91ac05b
  16. BIN
      tally/target/debug/deps/tally-25f63ae9f91ac05b
  17. 5
      tally/target/debug/deps/tally-25f63ae9f91ac05b.d
  18. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/138pesuvab4dy035.o
  19. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/13tprap6axy2fph1.o
  20. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/16u6js6g0l3k1ic6.o
  21. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/1ckp3bwk0jmrbky4.o
  22. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/1dqvxks6k2bzkxe.o
  23. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/1im38lueib99jsk0.o
  24. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/1jnlhyxj59jycbjv.o
  25. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/1mvmz58owquyropc.o
  26. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/1o6b1la7g4jnv39b.o
  27. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/1q8ffos2d96smbjs.o
  28. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/1y16o1qfye96o7m0.o
  29. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/1zwd8n7bcl3vhvvh.o
  30. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/236iz806sghm3wx.o
  31. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/23tqyymcb18u96mb.o
  32. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/2f0hry2t7c05ttdi.o
  33. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/2jqywn86b2gsqohu.o
  34. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/2lyh15q6cjwzy18c.o
  35. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/38ps4pa181wsnsy9.o
  36. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/3aejzd9vcdblhah8.o
  37. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/3ayaeypdcro9d6yk.o
  38. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/3cx7oljifvb206q7.o
  39. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/3fd7a9higr2zoyxm.o
  40. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/3kfx4ynvkmi2y9i5.o
  41. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/3ldk0i2zxftngav8.o
  42. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/3rngp6bm2u2q5z0y.o
  43. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/436dotimmrgzkwfa.o
  44. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/43v6g0y2xsxoggnt.o
  45. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/45nf4z58qqykpcpi.o
  46. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/47kb80rpg37n2ote.o
  47. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/48721dc4k5qxei0u.o
  48. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/49a7n47po4ttqjl7.o
  49. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/49lx1q7cxvpykyv0.o
  50. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/4ezmh1vbs95c5ack.o
  51. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/4xq48u46a1pwiqn7.o
  52. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/4yh8x2b62dcih00t.o
  53. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/4ypvbwho0bu5tnww.o
  54. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/51s1w397y42gpez1.o
  55. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/54zq6xwdlu4umqga.o
  56. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/5544xgl7axh7p8nz.o
  57. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/56dly8q07ws8ucdq.o
  58. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/5by9xggibmun5kn9.o
  59. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/7p53qlves2rwxx0.o
  60. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/8xzrsc1ux72v29j.o
  61. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/98g0d9x8aw3akpe.o
  62. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/9elsx31vb4it187.o
  63. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/9fcb3syd3ne5k0n.o
  64. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/c6lbtaiefvx3wya.o
  65. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/dep-graph.bin
  66. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/query-cache.bin
  67. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/sjcqfz2ncn1dupz.o
  68. BIN
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w-1b1rlv54psyua/work-products.bin
  69. 0
      tally/target/debug/incremental/tally-3sx0upxqvv135/s-f1a8k14sqj-ybna6w.lock
  70. BIN
      tally/target/debug/tally
  71. 1
      tally/target/debug/tally.d

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/daily.iml" filepath="$PROJECT_DIR$/.idea/daily.iml" />
</modules>
</component>
</project>

@ -0,0 +1,206 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="06472449-a7b3-4ca4-a0c1-561917c22b86" name="Default" comment="" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsGulpfileManager">
<detection-done>true</detection-done>
<sorting>DEFINITION_ORDER</sorting>
</component>
<component name="NodePackageJsonFileManager">
<packageJsonPaths />
</component>
<component name="ProjectFrameBounds">
<option name="x" value="3201" />
<option name="y" value="4" />
<option name="width" value="1275" />
<option name="height" value="1405" />
</component>
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="daily" type="b2602c69:ProjectViewProjectNode" />
<item name="daily" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="daily" type="b2602c69:ProjectViewProjectNode" />
<item name="daily" type="462c0819:PsiDirectoryNode" />
<item name="tally" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="PackagesPane" />
<pane id="AndroidView" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="settings.editor.selected.configurable" value="settings.github" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="RunManager">
<configuration default="true" type="Applet" factoryName="Applet">
<option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
</configuration>
<configuration default="true" type="Application" factoryName="Application">
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
</configuration>
<configuration default="true" type="JUnit" factoryName="JUnit">
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="PACKAGE_NAME" />
<option name="MAIN_CLASS_NAME" />
<option name="METHOD_NAME" />
<option name="TEST_OBJECT" value="class" />
<option name="VM_PARAMETERS" value="-ea" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="singleModule" />
</option>
<patterns />
</configuration>
<configuration default="true" type="TestNG" factoryName="TestNG">
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="SUITE_NAME" />
<option name="PACKAGE_NAME" />
<option name="MAIN_CLASS_NAME" />
<option name="METHOD_NAME" />
<option name="GROUP_NAME" />
<option name="TEST_OBJECT" value="CLASS" />
<option name="VM_PARAMETERS" value="-ea" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
<option name="OUTPUT_DIRECTORY" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="singleModule" />
</option>
<option name="USE_DEFAULT_REPORTERS" value="false" />
<option name="PROPERTIES_FILE" />
<properties />
<listeners />
</configuration>
<configuration default="true" type="Remote" factoryName="Remote">
<option name="USE_SOCKET_TRANSPORT" value="true" />
<option name="SERVER_MODE" value="false" />
<option name="SHMEM_ADDRESS" value="javadebug" />
<option name="HOST" value="localhost" />
<option name="PORT" value="5005" />
<method />
</configuration>
<configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
<module name="" />
<option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
<option name="PROGRAM_PARAMETERS" />
<predefined_log_file id="idea.log" enabled="true" />
<method />
</configuration>
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="06472449-a7b3-4ca4-a0c1-561917c22b86" name="Default" comment="" />
<created>1527023318235</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1527023318235</updated>
<workItem from="1527023319411" duration="227000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="227000" />
</component>
<component name="ToolWindowManager">
<frame x="3201" y="4" width="1275" height="1405" extended-state="0" />
<layout>
<window_info anchor="right" id="Palette" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="right" id="Cargo" />
<window_info anchor="right" id="Palette&#9;" />
<window_info id="Image Layers" />
<window_info anchor="right" id="Capture Analysis" />
<window_info anchor="bottom" id="Event Log" side_tool="true" />
<window_info anchor="right" id="Maven Projects" />
<window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
<window_info anchor="bottom" id="Run" order="2" />
<window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
<window_info anchor="bottom" id="Terminal" />
<window_info id="Capture Tool" />
<window_info id="Designer" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24979658" />
<window_info anchor="right" id="Database" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info id="UI Designer" />
<window_info anchor="right" id="Theme Preview" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
<window_info id="Favorites" side_tool="true" />
<window_info anchor="bottom" id="Find" order="1" />
<window_info anchor="right" id="Commander" order="0" weight="0.4" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
</layout>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="masterDetails">
<states>
<state key="ProjectJDKs.UI">
<settings>
<last-edited>1.8</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
</project>

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CargoProjects">
<cargoProject FILE="$PROJECT_DIR$/Cargo.toml" />
</component>
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="RustProjectSettings">
<option name="explicitPathToStdlib" value="/lib/rustlib/src/rust" />
<option name="toolchainHomeDirectory" value="/usr/bin" />
</component>
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/tally.iml" filepath="$PROJECT_DIR$/.idea/tally.iml" />
</modules>
</component>
</project>

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1,267 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="7c78f07b-55f9-466b-b38f-f8fb07dae400" name="Default" comment="" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="main.rs" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/main.rs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="450">
<caret line="30" column="32" lean-forward="true" selection-start-line="30" selection-start-column="32" selection-end-line="30" selection-end-column="32" />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$USER_HOME$" />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/src/main.rs" />
</list>
</option>
</component>
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsGulpfileManager">
<detection-done>true</detection-done>
<sorting>DEFINITION_ORDER</sorting>
</component>
<component name="NodePackageJsonFileManager">
<packageJsonPaths />
</component>
<component name="ProjectFrameBounds">
<option name="x" value="3201" />
<option name="y" value="4" />
<option name="width" value="1275" />
<option name="height" value="1405" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="PackagesPane" />
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="tally" type="b2602c69:ProjectViewProjectNode" />
<item name="tally" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="tally" type="b2602c69:ProjectViewProjectNode" />
<item name="tally" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="AndroidView" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/.." />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="org.rust.cargo.project.model.PROJECT_DISCOVERY" value="true" />
<property name="settings.editor.selected.configurable" value="settings.github" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="RunManager">
<configuration default="true" type="Applet" factoryName="Applet">
<option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
</configuration>
<configuration default="true" type="Application" factoryName="Application">
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
</configuration>
<configuration name="Run tally" type="CargoCommandRunConfiguration" factoryName="Cargo Command" temporary="true">
<option name="channel" value="DEFAULT" />
<option name="command" value="run --package tally --bin tally" />
<option name="nocapture" value="true" />
<option name="backtrace" value="SHORT" />
<option name="workingDirectory" value="file://$PROJECT_DIR$" />
<envs />
</configuration>
<configuration default="true" type="JUnit" factoryName="JUnit">
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="PACKAGE_NAME" />
<option name="MAIN_CLASS_NAME" />
<option name="METHOD_NAME" />
<option name="TEST_OBJECT" value="class" />
<option name="VM_PARAMETERS" value="-ea" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="singleModule" />
</option>
<patterns />
</configuration>
<configuration default="true" type="TestNG" factoryName="TestNG">
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="SUITE_NAME" />
<option name="PACKAGE_NAME" />
<option name="MAIN_CLASS_NAME" />
<option name="METHOD_NAME" />
<option name="GROUP_NAME" />
<option name="TEST_OBJECT" value="CLASS" />
<option name="VM_PARAMETERS" value="-ea" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
<option name="OUTPUT_DIRECTORY" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="singleModule" />
</option>
<option name="USE_DEFAULT_REPORTERS" value="false" />
<option name="PROPERTIES_FILE" />
<properties />
<listeners />
</configuration>
<configuration default="true" type="Remote" factoryName="Remote">
<option name="USE_SOCKET_TRANSPORT" value="true" />
<option name="SERVER_MODE" value="false" />
<option name="SHMEM_ADDRESS" value="javadebug" />
<option name="HOST" value="localhost" />
<option name="PORT" value="5005" />
<method />
</configuration>
<configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
<module name="" />
<option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
<option name="PROGRAM_PARAMETERS" />
<predefined_log_file id="idea.log" enabled="true" />
<method />
</configuration>
<recent_temporary>
<list>
<item itemvalue="Cargo Command.Run tally" />
</list>
</recent_temporary>
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="7c78f07b-55f9-466b-b38f-f8fb07dae400" name="Default" comment="" />
<created>1527013010362</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1527013010362</updated>
<workItem from="1527013011570" duration="5353000" />
<workItem from="1527021051624" duration="2259000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="7612000" />
</component>
<component name="ToolWindowManager">
<frame x="3201" y="4" width="1275" height="1405" extended-state="0" />
<layout>
<window_info anchor="right" id="Palette" order="3" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="right" id="Cargo" order="3" />
<window_info anchor="right" id="Palette&#9;" order="3" />
<window_info id="Image Layers" order="2" />
<window_info anchor="right" id="Capture Analysis" order="3" />
<window_info active="true" anchor="bottom" id="Event Log" order="7" sideWeight="0.50040686" side_tool="true" visible="true" weight="0.32943925" />
<window_info anchor="right" id="Maven Projects" order="3" />
<window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
<window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
<window_info anchor="bottom" id="Run" order="2" sideWeight="0.49959317" weight="0.3299532" />
<window_info anchor="bottom" id="Terminal" order="7" />
<window_info id="Capture Tool" order="2" />
<window_info id="Designer" order="2" />
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.25386494" />
<window_info anchor="right" id="Database" order="3" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info id="UI Designer" order="2" />
<window_info anchor="right" id="Theme Preview" order="3" />
<window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="right" id="Commander" order="0" weight="0.4" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Find" order="1" />
</layout>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="VcsManagerConfiguration">
<ignored-roots>
<path value="$USER_HOME$" />
<path value="$PROJECT_DIR$" />
</ignored-roots>
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/main.rs">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret column="102" selection-start-column="102" selection-end-column="102" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main.rs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="450">
<caret line="30" column="32" lean-forward="true" selection-start-line="30" selection-start-column="32" selection-end-line="30" selection-end-column="32" />
</state>
</provider>
</entry>
</component>
<component name="masterDetails">
<states>
<state key="ProjectJDKs.UI">
<settings>
<last-edited>1.8</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
</project>

4
tally/Cargo.lock generated

@ -0,0 +1,4 @@
[[package]]
name = "tally"
version = "0.1.0"

@ -0,0 +1,6 @@
[package]
name = "tally"
version = "0.1.0"
authors = ["Cpt.Captain <nilskoch94@gmail.com>"]
[dependencies]

@ -0,0 +1,36 @@
// https://www.reddit.com/r/dailyprogrammer/comments/8jcffg/20180514_challenge_361_easy_tally_program/
fn main() {
println!("Hello, world!");
let input = "EbAAdbBEaBaaBBdAccbeebaec";
let player_list = String::from(init_player_list(input.to_string()));
println!("{}", player_list);
let tally = tally(player_list, input.to_string());
print!("{:?}", tally);
}
fn init_player_list(input: String) -> String{
let mut result = String::new();
let ch = input.chars();
for cha in ch{
let lch = cha.to_lowercase().next().unwrap();
if !result.contains(lch){
result.push(lch);
}
}
return result
}
fn tally(player_list: String, tally: String) -> Vec<(char, i32)>{
let mut v: Vec<(char, i32)> = Vec::new();
for (_i, player) in player_list.chars().enumerate() {
let count = (tally.matches(player).count() as i32) - (tally.matches(player
.to_uppercase().next().unwrap()).count() as i32);
v.push((player, count));
}
v.sort_by_key(|v| v.1);
v.reverse();
return v
}

@ -0,0 +1 @@
{"rustc":580242458747052534,"features":"[]","target":6704649191077373981,"profile":17450543733640622159,"path":1036222786711178230,"deps":[],"local":[{"MtimeBased":[[1527022727,400185557],".fingerprint/tally-25f63ae9f91ac05b/dep-bin-tally-25f63ae9f91ac05b"]}],"rustflags":[],"epoch":"Epoch2015"}

Binary file not shown.

@ -0,0 +1,5 @@
/home/hans/Code/rust/daily/tally/target/debug/deps/tally-25f63ae9f91ac05b: src/main.rs
/home/hans/Code/rust/daily/tally/target/debug/deps/tally-25f63ae9f91ac05b.d: src/main.rs
src/main.rs:

Binary file not shown.

@ -0,0 +1 @@
/home/hans/Code/rust/daily/tally/target/debug/tally: /home/hans/Code/rust/daily/tally/src/main.rs
Loading…
Cancel
Save