Git Product home page Git Product logo

codebin's People

Contributors

kumarrishav avatar mindstormer619 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

codebin's Issues

Bug with Ace Editor: Character overlay occurring here

So I tried pasting this code into the Codebin we have completed so far and I got this:

See line 18

If you see line 18 on the above, you will see that the 'w' intersects with the '}'. I am not able to find a way to fix this. Can anyone find / reproduce this fix? The steps I followed were:

  1. Go to the code and copy-paste it to a new paste on the codebin.
  2. Go to line 18.
  3. Press backspace key once.

Voila, you should be having the exact same result. Please confirm or inform otherwise.

On hitting View source in Chrome and scrolling to the offending line, I see this:

def signUp(Type):       # Sign Up user
    userData = input(": ")
    instruction = {"user name" : "Enter alphabets, numbers or underscores only.", "password" : "Enter alphabets, numbers and the following symbols only: !,@,#,$,%,^,&,*"}
    while not valid(userData, Type):
        print("Invalid %s" % Type)

Everything seems to be in order. What is the problem? @kumarrishav Tell me if you find a fix.

Remove absolute filepath addressing (low priority)

Take for example this line. Here, the database object being saved contains the absolute address of the filepath. Recently, I moved my repo from one folder to another. This made the program to try and access a file that did not exist. Later we can switch this to a relative addressing system. This is not really 100% necessary though. On implementation stage, we won't be moving around the server files.

Add compressed image uploading

To add the ability for the user to upload images, like screenshots associated with a particular paste. Up to 5 or 6 screenshots can be uploaded. Use streams for receiving data from the user and compress and format it automatically on the server side as required. I found this module, Imagemin which could prove useful.

The user should see the image thumbnails in the sidebar which are associated with the particular paste. Clicking on the thumbnail can open it in a new tab. The URL of the image can be of the type domainname/pasteId/img[1-6]. Store the image files in public/images folder on the server.

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.