Git Product home page Git Product logo

fletcher's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

fletcher's Issues

`nearley`'s `nearley-test` not working

Is there an existing issue for this?

  • I have searched the existing issues

Current behaviour

nearley-test crashes with a rules.map is not a function error.

Expected behaviour

No response

Steps to reproduce

No response

Additional context

It seems I'm not the only one and that it's a nearley bug.

I'm not gonna take care of it for now.

As a quick hack, it can be solved by replacing

https://github.com/kach/nearley/blob/6336c03f372fa90e4d16ce290465caf06af6df9c/bin/nearley-test.js#L27

with

var grammar = nearley.Grammar.fromCompiled(require(filename).default);

`superstruct`'s `dynamic` not working

When writing

if (index == 1) return max(Natural, main.length - 2);

I found out about ianstormtaylor/superstruct#830

Since it's already been solved in a pending PR ianstormtaylor/superstruct#966 I'll ust wait for merge.
In the meantime, I imported it as a patch here:

//=[ Monkeypatching ]===========================================================
// source: https://github.com/ianstormtaylor/superstruct/pull/966
// solves: https://github.com/ianstormtaylor/superstruct/issues/830
// TODO: remove when PR is merged
// NOTE: this is needed only by the bounded vertices count int MainItem
function dynamic<T>(
fn: (value: unknown, ctx: Context) => Struct<T, any>,
): Struct<T, null> {
return new Struct({
type: "dynamic",
schema: null,
*entries(value, ctx) {
const struct = fn(value, ctx);
yield* struct.entries(value, ctx);
},
validator(value, ctx) {
const struct = fn(value, ctx);
return struct.validator(value, ctx);
},
coercer(value, ctx) {
const struct = fn(value, ctx);
return struct.coercer(value, ctx);
},
refiner(value, ctx) {
const struct = fn(value, ctx);
return struct.refiner(value, ctx);
},
});
}

`quiver` support

  • injector
    • curve
    • offset
    • label_position
    • shorten
    • special arrow names (adjunction, corners)
  • projector
    • curve
    • offset
    • label_position
    • shorten
    • special arrow names (adjunction, corners)

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.