Giter Site home page Giter Site logo

scicast_position_finder's Introduction

Instructions

  1. Log in to SciCast.
  2. Visit the following link: https://scicast.org/trades/?user_id=UID&include_current_probs=False replacing the letters UID with your user ID.
  3. Copy the text located at this link into a file name 'trades.txt' and save it in the same directory as the trade analyzer.
  4. Type "ruby trade_analyzer.rb" into the console. You'll need a recent version of Ruby (1.9.0 or later), which you can download here: https://www.ruby-lang.org/en/downloads/

This will create two files: position.tsv shows your net position for each question you've edited, and edits.tsv shows each of your trades.

Please let me know of any bugs, issues, or requests at [email protected]

Feel free to make any adjustments to this code, but please share with the SciCast community. Google group here: https://groups.google.com/forum/#!forum/scicasters

Thanks to Jay Kominek for sharing the link above and to SciCast for being awesome.

scicast_position_finder's People

Contributors

bengolden avatar

Stargazers

 avatar Ted Sanders avatar Jay Kominek avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

sflicht jic9893

scicast_position_finder's Issues

script won't run

My trades.txt is large (46MB). I'll try this tonight on an up-to-date ubuntu installation with the latest ruby, but here's the output from my work machine.

ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
ruby trade_analyzer.rb
trade_analyzer.rb:34: odd number list for Hash
args = {q_id: edit["question"]["id"],
^
trade_analyzer.rb:34: syntax error, unexpected ':', expecting '}'
args = {q_id: edit["question"]["id"],
^
trade_analyzer.rb:35: syntax error, unexpected ':', expecting '='
q_name: edit["question"]["name"].gsub(/[\n\t\r]/,""),
^
trade_analyzer.rb:35: syntax error, unexpected ',', expecting kEND
q_name: edit["question"]["name"].gsub(/[\n\t\r]/,""),
^
trade_analyzer.rb:36: syntax error, unexpected ',', expecting kEND
trade_analyzer.rb:37: syntax error, unexpected ',', expecting kEND
trade_analyzer.rb:38: syntax error, unexpected ',', expecting kEND
trade_analyzer.rb:39: syntax error, unexpected ',', expecting kEND
trade_analyzer.rb:40: syntax error, unexpected '}', expecting kEND
cat trades.txt | wc
0 4700131 48547178

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.