Code Monkey home page Code Monkey logo

src's Introduction


home | doc | code | discuss | license

README

Because learning is not the filling of a pail, but the lighting of a fire.

Help

command notes
./burn FILE run FILE.awk
./burn ed FILE edit FILE
./burn okay run all tests
./burn zap delete generated files (forces recompile)
./burn pull get from git
./burn push send back to git
./burn license show license
./burn help show help

As a side-effect of running ./burn, the directory "$HOME/opt/lua/burn/doc" is updated with current versions of the html generated from the *.lua files in this directory.

Note that this code cannot load any X.lua file for X in ed, okay, zap, pull, push, license, help.

Systems

Files

The system is divided into

.
./burn           # shell script with convenience functions
                 # When run, it does "cd lib", then runs there
./data/*         # example data files
./docs/*.html    # auto-generated from lib/*.lua files
./lib/*.lua      # the actual system
./tests/*ok.lua  # to test "lib/x.lua", load "tests/xOk.lua"

Globals

There is only one global.

  • Loading ./lib/burn.lua will add Burn to the global enviornment. This global holds some system stuff plus whatever global config options needed by the system.
  • Loading any other files should be var safe (i.e. only locals defined).

Hence the standard way to use these files is:

local Stuff=require("stuff")

There is only one global function. burn(), which creates Burn.

  • The first time it is called, then burn()
    • Creates Burn.sys which is a table holding some system stuff (e.g. test cases, test case cores).
    • Adds '../tests/?.lua' to package.path.
  • For all subsequent calls, burn() does not adjust the current contents of Burn.sys (which means that, e.g. we can accumulate a global count of passing/failing tests here).

src's People

Contributors

ai4se avatar timm avatar

Watchers

 avatar  avatar

src's Issues

burn baby burn

Is your feature request related to a problem? Please describe.
Lost pop culture references bother me.

Describe the solution you'd like
There needs to be a "burn baby burn" pathname in this repo.

move dist from fastdowm to row

Is your feature request related to a problem? Please describe.

want to localize all the distance calcs

Describe the solution you'd like

move dist from fastdom to row

make dist a row function. pass in list of columns to explore (as a last arg ...)

add zbins

breaks = {
      2:                         [0],
      3:                  [-0.43,    0.43],
      4:                  [-0.67, 0, 0.67],
      5:            [-0.84,-0.25, 0, 0.25, 0.84],
      6:            [-0.97,-0.43, 0, 0.43, 0.97],
      7:      [-1.07,-0.57,-0.18, 0, 0.18, 0.57, 1.07],
      8:      [-1.15,-0.67,-0.32, 0, 0.32, 0.67, 1.15],
      9:[-1.22,-0.76,-0.43,-0.14,    0.14, 0.43, 0.76, 1.22],
     10:[-1.28,-0.84,-0.52,-0.25, 0, 0.25, 0.52, 0.84, 1.28] }

strange case of the missing data...

luajit: data.lua:100: attempt to index local 'd' (a nil value)
stack traceback:
	data.lua:100: in function 'dom'
	data.lua:77: in function <data.lua:75>
	[C]: in function 'sort'
	data.lua:80: in function 'best'
	data.lua:128: in function 'main'
	data.lua:136: in main chunk
	[C]: at 0x010ef234b0

move docto docs

  1. move files to doc
  2. process INDEX outside of repo then move into docs
  3. rename repo to code
  4. fix tiny.cc links

remove docs/Makefile

doc generation should start with mkdir -p /tmp/$USER/burn/safe

mv docs/* /tmp/$USER/burn/safe

then do a full gen

so docs/makefile should be inside burn

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.