Y
Y
Yura Storchak2019-12-27 02:45:44
Mathematics
Yura Storchak, 2019-12-27 02:45:44

Are there sites with ready-made snippets and plugins for web development?

I am looking for a database of ready-made elements or scripts for performing certain effects on the site, for example, as on the site:
https://pcvector.net/
Please tell me similar valuable resources from which you can decide on the name of different effects, with their execution in demo mode and the code of these effects or modules.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
longclaps, 2019-02-26
@kolomiec_artiom

nxt = [((0, 0, 0),)]
while nxt:
    cur, nxt = nxt, []
    for path in cur:
        x, y, z = path[-1]
        targets = [(a, b, c) for a, b, c in ((x + 3, y, z + 2),
                                             (x, y + 3, z + 1),
                                             (x + 1, y + 2, z))
                   if a * a + b * b + c * c < 125]
        if targets:
            for abc in targets:
                nxt.append(path + (abc,))
        else:
            print(*[(u - a, v - b, w - c) for (a, b, c), (u, v, w)
                    in zip(path, path[1:])])

X
xmoonlight, 2019-12-27
@yrchi_k

jsfiddle, codepen

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question