Giter Site home page Giter Site logo

cryptomanxxx / javascript_without_html Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 111 KB

A JavaScript command execution web editor where you can run your own user defined JavaScript functions from.

Home Page: https://cryptomanxxx.github.io/JavaScript_without_HTML/

HTML 4.19% JavaScript 95.81%
javascipt code-editor high-level-programming command-execution

javascript_without_html's Introduction

JavaScript_without_HTML

A basic JavaScript command execution web editor where you can run your own user defined JavaScript functions from. The editor currently has 34 user defined functions on top of the functions required to get the web editor to work:

  1. Function help() gives you command help
  2. Function example() gives you a worksheet with all working functions. This function will clear everything previously entered
  3. Function rand(n1,n2,e) returns an array with dimensions n1 and n2 and with random numbers and expected value e
  4. Function round(x,z) rounds a number, 1D array or a 2D array x to z decimal points
  5. Function array(z) returns a javascript array from the function's parameters z
  6. Function rw(n) returns a 1D array with length n with a pure random walk
  7. Function seq(a,b) gives you a 1D array with data from a to b
  8. Function count(a,b) counts the number of elements b in array a. If parameter b is not specified then the count of a is return
  9. Function ticker() gives you the ticker symbols for the 100 crypto currencies with the largest market cap
  10. Function time(w) converts a unix timestamp w to a date string
  11. Function crypto(t) gives you historial crypto currency price data for a specified ticker symbol string t
  12. Function plot(z) gives you a plot of a 1D array z.
  13. Function clear() gives you a clean workspace
  14. Function save(x) where x is a file name that ends with .html in enclosed in a string will save a copy of the current workspace locally
  15. Function load() loads a html workspace file from a previous session
  16. Function matrix(z) creates and displays a html table from a 1D or 2D dimensional array z and returns z
  17. Function matrixMult(a,b) multiplies two matrices a and b
  18. Function matrixInv(m) calculates the inverse of matrix m with gaussian elimination
  19. Function matrixId(n) returns an identity matrix with n number of rows and columns
  20. Function max(a) returns the maximum value of an array a
  21. Function min(a) returns the minimum value of an array a
  22. Function range(a) calculates the range (max - min) of an array a
  23. Function median(a) calculates the median of an array a
  24. Function sum(a) calculates the sum of a given array a
  25. Function ev(a) calculates the expected value (arithmetic mean) of an array a
  26. Function sse(array) calculates the sum of squared errors (sse) of an array
  27. Function variance(array, flag) calculates the variance of an array. If flag = 0 then population. If flag = 1 then sample
  28. Function stdev(array, flag) calculates the standard deviation of an array. If flag = 0 then population. If flag = 1 then sample
  29. Function covariance(array1, array2) calculates the covariance of two arrays
  30. Function coeffvar(array) calculates the coefficient of variation for an array
  31. Function correlation(array1, array2) calculates the pearson's correlation coefficient for two arrays
  32. Function getColumn(a,c) gives you a specific column c from a 2D array a
  33. Function getRow(a,r) gives you a specific row r from a 2D array a
  34. Function transpose(a) gives you the transpose of a 1D row array, a 1D column array or a 2D array a
  35. Function LS(a,b) solves the least square equation for a 2D array a and a 1D column array b with matrix algebra
  36. Function SHA256(s) returns the hash of a string s using the SHA-256 cryptographic hash algorithm
  37. Function nRows(a) returns the number of rows in a 2D array a
  38. Function nColumns(a) returns the number of columns in a 2D array a

Please note that an input that ends with : hiddes output from view. Please note that an input that starts with # is defined as text.

You can fork or clone the code and write and add your own user defined JavaScript functions that you want to run in the web editor. github

javascript_without_html's People

Contributors

cryptomanxxx avatar ericman314 avatar

Watchers

 avatar

Forkers

ericman314

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.