List of incompetent jackasses who can't check a source if their lives depended on it:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| /** | |
| * Created by Milan Karunarathne | |
| * Email: mhkarunarathne@gmail.com | |
| * May be freely distributed under the MIT license | |
| */ | |
| import EventEmitter from 'events'; | |
| class Single extends EventEmitter { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Rx} from "@cycle/core"; | |
| import {h} from '@cycle/dom'; | |
| import Validator from "../form-validator"; | |
| import cuid from "cuid"; | |
| let formValidator = new Validator({ | |
| name: /^\S+/, | |
| lastname:/^\S+/, | |
| email:/^\S+@\S+\.\S+/ | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (!JSON.isJSON) JSON.isJSON = (function (RegExp) { | |
| /*! (C) Andrea Giammarchi - MIT Style License */ | |
| var | |
| reStart = '^', | |
| reEnd = '$', | |
| valArrayEnd = '(,|\\])', | |
| valObjectEnd = '(,|\\})', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //-- | |
| //-- FUNCTORS in ES6 | |
| //-- | |
| //-- BOILER PLATE | |
| let fmap = (f) => (functor) => functor.map(f); | |
| let c2 = (f2, f1) => (x) => f2(f1(x)); | |
| let c3 = (f3, f2, f1) => (x) => f3(f2(f1(x))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <body> | |
| <!-- load combined svg file (with symbols) into body--> | |
| <script> | |
| (function (doc) { | |
| var scripts = doc.getElementsByTagName('script') | |
| var script = scripts[scripts.length - 1] | |
| var xhr = new XMLHttpRequest() | |
| xhr.onload = function () { |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //************************************************ | |
| // | |
| // Catmull-Rom Spline to Bezier Spline Converter | |
| // | |
| // | |
| // This is an experimental extension of the SVG 'path' element syntax to | |
| // allow Catmull-Rom splines, which differs from Bézier curves in that all | |
| // defined points on a Catmull-Rom spline are on the path itself. | |
| // | |
| // This is intended to serve as a proof-of-concept toward inclusion of a |