Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
eval6766y@theKarlisK i think the easiest solution would be using css:
hair.hairspray{
display: block;
position: fixed;
transition: 1 day ease-out;
} -
eval6766y@theKarlisK oh yes that can happen so fast if you're not careful. Feels like
npm install * -
@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.
-
eval6766y@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...
-
@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.
-
eval6766y@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
-
@eval Shouldn't be that hard to implement. I know a Python library that allows you to import stackoverflpw snippets..
-
eval6766y@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.
;) -
*os freezes as it cycles through all the hair*
Also shouldnt orientation be a vector (or even bettet a 3d bezier curve)?
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.
rant
javascript
morning
hair