41
eval
6y

this.onSleep = function() {
for(let i = 0; i < hair.length; i++) {
hair[i].orientation = Math.random();
}
Object.freeze(hair);
}

😐
Whoever thought it was a good idea to put this there, fuck you.

Comments
  • 2
    Wow, theres a function for “get out of bed and freeze” hair.
  • 2
    Relatable, except the freeze part idk about that
  • 5
    @ceee it makes the object immutable. Cause the hair stays shit no matter how often you try to comb it ;)
  • 2
    @eval oh! It makes sense now.
  • 5
    @theKarlisK i think the easiest solution would be using css:
    hair.hairspray{
    display: block;
    position: fixed;
    transition: 1 day ease-out;
    }
  • 1
    @theKarlisK oh yes that can happen so fast if you're not careful. Feels like
    npm install *
  • 1
    @eval I heard about npm install *, but does that really work/exist? I mean like: some packages can't even exist in the same node_modules folder because of conflicting dependenciea.
  • 1
    @gitreflog it doesn't do anything.... So no, wildcard installing doesnt work. Why do you mean it wouldnt work, because of needing to have the same dependency in different versions? Which is an interesting question, because runkit.com has all NPM packages installed... Though its possible that they made their own require() version which always loads the correct version of each dependency. Basically they could make a node_modules/request@0.5.5, and then whenever some package requires "request", decide according to the package.json which version to resolve to...
  • 0
    @eval I'm almost certain. There must be some package which requires for example request <4.0.0 and one which requires request >=5.0.0 or something. I'm pretty sure I had a problem like this and had to drop one dependency.
  • 1
    @gitreflog yeah then they probably have their own package resolve.... But now that i think about it, it might be useful to other people, too. Havent found anything on their github though
  • 1
    @eval Shouldn't be that hard to implement. I know a Python library that allows you to import stackoverflpw snippets..
  • 1
    @gitreflog oh yes i heard about that one :D that's hilarious
  • 1
    @eval You only upvoted this because it abuses you, right?
  • 1
    @gitreflog ah no i use it for production code. Nothing more satisfying than a fucked up prod environment cause some new answer gets posted on stackoverflow hehe.
    ;)
  • 0
    *os freezes as it cycles through all the hair*

    Also shouldnt orientation be a vector (or even bettet a 3d bezier curve)?
Add Comment