mindstormer619 / codebin Goto Github PK
View Code? Open in Web Editor NEWA modern hackable, opensourced, userfriendly Pastebin for sharing text, codes, screen shots (images) with new features.
A modern hackable, opensourced, userfriendly Pastebin for sharing text, codes, screen shots (images) with new features.
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.
So I tried pasting this code into the Codebin we have completed so far and I got this:
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:
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.
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.
I'm assigning myself to this issue. This will involve changes in app.js, views/index.hjs and routes. Please fetch changes before working on anything. Create a new branch if necessary, I shall merge.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.