Coder Social home page Coder Social logo

app-mojopaste's People

Contributors

grinnz avatar sklukin 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

app-mojopaste's Issues

Support uploading files

It would be really cool if it would not only be possible to paste the data from clipboard, but also upload it from a file.

If you don't want to add another button, perhaps support drag-n-drop (or both!).

Thanks for the project by the way!

Tests fail with Mojolicious 6.37

The t/unicode.t test fails with the newest Mojolicious:

#   Failed test 'exact match for selector "pre"'
#   at t/unicode.t line 22.
Wide character in print at /usr/perl5.14.4/lib/site_perl/5.14.4/Test/Builder.pm line 1826.
#          got: 'BLACK DOWN-POINTING TRIANGLE :3'
#     expected: 'BLACK DOWN-POINTING TRIANGLE Σ'

#   Failed test 'exact match for content'
#   at t/unicode.t line 23.
Wide character in print at /usr/perl5.14.4/lib/site_perl/5.14.4/Test/Builder.pm line 1826.
#          got: 'BLACK DOWN-POINTING TRIANGLE :3'
#     expected: 'BLACK DOWN-POINTING TRIANGLE Σ'
# Looks like you failed 2 tests of 6.
t/unicode.t ...... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/6 subtests

Statistical analysis (negative theta is bad):

****************************************************************
Regression 'mod:Mojolicious'
****************************************************************
Name                   Theta          StdErr     T-stat
[0='const']           1.0000          0.0000    116746645577737856.00
[1='eq_5.32']         0.0000          0.0000       4.58
[2='eq_5.79']         0.0000          0.0000       1.32
[3='eq_6.08']         0.0000          0.0000       5.73
[4='eq_6.09']         0.0000          0.0000       5.61
[5='eq_6.10']         0.0000          0.0000       6.32
[6='eq_6.11']         0.0000          0.0000       7.94
[7='eq_6.17']         0.0000          0.0000      11.22
[8='eq_6.19']         0.0000          0.0000       4.58
[9='eq_6.27']         0.0000          0.0000       5.29
[10='eq_6.31']        0.0000          0.0000       9.17
[11='eq_6.32']        0.0000          0.0000       9.17
[12='eq_6.33']        0.0000          0.0000       9.17
[13='eq_6.34']        0.0000          0.0000       9.17
[14='eq_6.36']        0.0000          0.0000       9.17
[15='eq_6.37']       -1.0000          0.0000    -101105560876939136.00

R^2= 1.000, N= 44, K= 16
****************************************************************

Test suite started to fail (with Mojolicious 8?)

See subject. Beginning of the test log:

#   Failed test '302 Found'
#   at t/charts.t line 30.
#          got: '500'
#     expected: '302'
Use of uninitialized value in pattern match (m//) at t/charts.t line 31.

#   Failed test '200 OK'
#   at t/charts.t line 33.
#          got: '500'
#     expected: '200'

#   Failed test 'exact match for selector "title"'
#   at t/charts.t line 33.
#          got: 'Server error (development mode)'
#     expected: 'Some cool header - Mojopaste graph'

#   Failed test 'content is similar'
#   at t/charts.t line 33.
#                   '<!DOCTYPE html>
# <!-- Request ID: ece28a0c -->
...

Statistical analysis suggests that this happens with the newest Mojolicious:

****************************************************************
Regression 'mod:Mojolicious'
****************************************************************
Name           	       Theta	      StdErr	 T-stat
[0='const']    	      1.0000	      0.0000	35067594683460248.00
[1='eq_7.70']  	      0.0000	      0.0000	   0.00
[2='eq_7.71']  	      0.0000	      0.0000	   1.03
[3='eq_7.72']  	      0.0000	      0.0000	   0.00
[4='eq_7.74']  	      0.0000	      0.0000	   0.00
[5='eq_7.75']  	      0.0000	      0.0000	   0.00
[6='eq_7.81']  	      0.0000	      0.0000	   0.00
[7='eq_7.82']  	      0.0000	      0.0000	   0.00
[8='eq_7.83']  	      0.0000	      0.0000	   3.37
[9='eq_7.84']  	      0.0000	      0.0000	   3.18
[10='eq_7.85'] 	      0.0000	      0.0000	   0.00
[11='eq_8.0']  	     -1.0000	      0.0000	-31365410207850940.00

R^2= 1.000, N= 95, K= 12
****************************************************************

Add information page

I'm considering adding an information page, which gives a bit information about what this app is all about, how to use it and alternative pastebin services.

t/mojopaste.t fails (with newest Mojolicious?)

The test suite started to fail:

#   Failed test 'exact match for content'
#   at t/mojopaste.t line 26.
#          got: '<!DOCTYPE html>
# <!-- Request ID: Hf2e2kqWLrnX -->
# <html>
#   <head>
#     <title>Page Not Found (development mode)</title>
#     <meta http-equiv="Pragma" content="no-cache">
...
#     </footer>
#   </body>
# </html>
# '
#     expected: '// somefile.js
# var foo = 123; // cool!
# var toooooooo_long_for_title = 1234567890;
# '
# Looks like you failed 1 test of 37.
t/mojopaste.t .... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/37 subtests 

Statistical analysis suggests that it fails with newer Mojolicious versions:

****************************************************************
Regression 'mod:Mojolicious'
****************************************************************
Name           	       Theta	      StdErr	 T-stat
[0='const']    	      1.0000	      0.0000	10430435211036800.00
[1='eq_8.09']  	      0.0000	      0.0000	   0.82
[2='eq_8.11']  	      0.0000	      0.0000	   1.64
[3='eq_8.12']  	      0.0000	      0.0000	   1.42
[4='eq_8.15']  	      0.0000	      0.0000	   2.46
[5='eq_8.16']  	      0.0000	      0.0000	   2.07
[6='eq_8.17']  	      0.0000	      0.0000	   2.05
[7='eq_8.18']  	      0.0000	      0.0000	   2.81
[8='eq_8.21']  	      0.0000	      0.0000	   2.36
[9='eq_8.22']  	      0.0000	      0.0000	   4.58
[10='eq_8.23'] 	     -0.0000	      0.0000	  -3.11
[11='eq_8.36'] 	      0.0000	      0.0000	   2.46
[12='eq_8.50'] 	      0.0000	      0.0000	   4.09
[13='eq_9.0']  	     -0.0000	      0.0000	  -1.64
[14='eq_9.02'] 	     -0.0000	      0.0000	  -2.46
[15='eq_9.03'] 	     -0.0000	      0.0000	  -3.28
[16='eq_9.11'] 	     -1.0000	      0.0000	-9329264866714258.00
[17='eq_9.12'] 	     -1.0000	      0.0000	-8516414687399709.00
[18='eq_9.13'] 	     -1.0000	      0.0000	-10271182573518808.00

R^2= 1.000, N= 119, K= 19
****************************************************************

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.