Pinned Loading
-
-
-
sort a object array with string attr...
sort a object array with string attributes: descend +<->, ascend -<+> 1const arr = [{attr:'x', value: 2}, {attr:'y', value: 2}, {attr:'z', value: 1}];
23// descend +<->
4arr.sort((a,b,x='attr')=>+(a[x]<b[x])-(a[x]>b[x]));
5console.log(arr.slice(0));
-
Fill a geometry with points in THREE.js
Fill a geometry with points in THREE.js 1// generate points inside a geometry, with THREE.js
2// Mindon<[email protected]> https://mindon.dev, 2024.08.01
3// Example code:
4// const inside = Inside(THREE);
5// const material = new THREE.PointsMaterial({color: 0xffffff, size: 0.25});
-
How to make QCompleter supports sear...
How to make QCompleter supports search/filter multiple keywords? 1// Make a QCompleter to match all keywords seperated by space
23// MyCompleter is a customize splitPath QCompleter
4class MyCompleter : public QCompleter {
5public:
-
Chinese Tai-Chi Diagram Pure CSS Style
Chinese Tai-Chi Diagram Pure CSS Style 1.yinyang {
2--size: 360px;
3--dot: 60px;
4--yin: #222;
5--yang: #c30;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.