Git Product home page Git Product logo

stopstalk / stopstalk-deployment Goto Github PK

View Code? Open in Web Editor NEW
311.0 311.0 95.0 45.71 MB

Stop stalking and start StopStalking :wink:

Home Page: https://www.stopstalk.com

License: MIT License

Python 84.18% HTML 2.10% CSS 0.92% JavaScript 7.50% Shell 0.07% Makefile 0.01% C 0.44% XSLT 1.68% Less 0.86% SCSS 0.88% Cython 1.36%
atcoder aws codechef codeforces competitive-programming crawling hackerearth hackerrank hacktoberfest materializecss programming-contests python spoj stopstalk timus uva web2py

stopstalk-deployment's People

Contributors

akshatm147 avatar amansharma07 avatar dependabot[bot] avatar devipriyasarkar avatar earora97 avatar emilluta avatar ewenchou avatar gaushikmr avatar hitesh96db avatar iamadisri avatar iamrajiv avatar jonnoftw avatar kazoni avatar kenrick95 avatar khaledkee avatar lavishsaluja avatar manav1403 avatar ming13 avatar mipsapatel avatar pulkitsharma07 avatar raj454raj avatar skbly7 avatar vedantrathore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stopstalk-deployment's Issues

Add Github as a profile site?

Things to consider -

  • It will have to be hardcoded, since this was never the use-case and the current schema won't support it
  • Most probably Github API does not support retrieving ALL the commits till date for a specific user

.iterselect() instead of .select() 10% memory optimization as Web2Py docs say!

Python "iterators" are a type of "lazy-evaluation". They 'feed' data one step at time; traditional python loops create the entrire set of data in memory before looping.

The traditional use of select is:

for row in db(db.table.id>0).select():
    rtn = row

but for large numbers of rows, using an iterator-based alternative has dramatically lower memory use:

for row in db(db.table.id>0).iterselect():
    rtn = row

Testing shows this is around 10% faster as well, even on machines with large RAM.

Filter for non matching text

This should be added only if the query matches(example: enter some text in user name that is not valid we will get all the submissions of logged-in user)
Error -> here

Design html emails for StopStalk

We need HTML emails for the following purposes -

  • On registration before complete website launch
  • Welcoming the user when the website is up
  • On receiving a friend request
  • Acceptance of a friend request
  • Rejectance of a friend request
  • Unfriending a friend

Extend the profile sites to TopCoder!

Questions -

  • Does topcoder have api?
  • Does topcoder actually has public profile pages?
  • Say above are true, how do we retrieve only the topcoder submissions given we have last_retrieved already updated for current users?

Optimize update-trending script.

Since the submission table is growing considerably - We need to come up with an efficient script to update the trending problems. Also trending problems for friends has to be dealt separately to optimize page load time of trending page.

Whole new DB schema. Maybe a lot efficient, faster and less memory consuming.

Instead of storing the handles and sites in the auth_user table have a table having site handles and site names and then make id of this table as the foreign key for auth_user table.

  • Advantages -
    • Retrieve(update) submissions of 1 particular handle only once.
    • Lot of submissions that are duplicate can be saved
  • Disadvantages
    • Migration is dangerous
    • It will take a bit of time to change the existing code(Surely more than a bit ;) )

Also make a problem table(extend current problem_tags table) and just include problem_id in a submission.

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.