{"id":17034705,"url":"https://github.com/caub/misc","last_synced_at":"2025-03-22T22:18:25.195Z","repository":{"id":25291181,"uuid":"28717249","full_name":"caub/misc","owner":"caub","description":":bookmark: List of projects \u0026 scripts","archived":false,"fork":false,"pushed_at":"2025-03-17T14:37:00.000Z","size":1351,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T15:49:00.493Z","etag":null,"topics":["const","data-stars"],"latest_commit_sha":null,"homepage":"https://caub.github.io/misc","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-01-02T15:33:09.000Z","updated_at":"2025-03-17T14:37:06.000Z","dependencies_parsed_at":"2024-08-12T10:06:46.026Z","dependency_job_id":null,"html_url":"https://github.com/caub/misc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fmisc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fmisc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fmisc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caub%2Fmisc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caub","download_url":"https://codeload.github.com/caub/misc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245026055,"owners_count":20549074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["const","data-stars"],"created_at":"2024-10-14T08:44:24.405Z","updated_at":"2025-03-22T22:18:25.169Z","avatar_url":"https://github.com/caub.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cstyle id=\"customStyle\"\u003e\nbody {\n\tbackground: #fafafa;\n}\nspan[data-t]::after {\n\tcontent: attr(data-t);\n}\nspan[data-s]::before {\n\tcontent: attr(data-s);\n}\n\nspan[data-t] {\n\tpadding: 2px;\n\tfont-size: 80%;\n\tcolor: white;\n\tfont-weight: 600;\n}\n\nspan[data-stars] {\n\tpadding: 6px;\n\tfont-size: 80%;\n}\nspan[data-stars]::after {\n\tcontent: attr(data-stars) \"★\";\n}\n\u003c/style\u003e\n\n\n### Some projects:\n- [As-buffer - convert anything to a nodejs buffer](https://github.com/caub/as-buffer) \u003cspan data-t=\"node\"\u003e\u003c/span\u003e\n- [Base-conversion](https://github.com/caub/base-conv)\n- [Color wheel](https://github.com/caub/color-wheel) \u003cspan data-t=\"react\"\u003e\u003c/span\u003e \u003cspan data-t=\"canvas\"\u003e\u003c/span\u003e\n- [Color transform](https://github.com/caub/color-tf) \u003cspan data-t=\"color-model\"\u003e\u003c/span\u003e\n- [CSS minifiers benchmark](https://caub.github.io/css-min-bench)\n- [DOM tagged template](https://github.com/caub/dom-tagged-template)\n- [Emoji-time](https://github.com/caub/emoji-time)\n- [Fetchu - a simple http(s).request/fetch wrapper](https://github.com/caub/fetchu)\n- [Github clean useless forks](//caub.github.io/github-clean-forks) \u003cspan data-t=\"GH\"\u003e\u003c/span\u003e \u003cspan data-t=\"graphql\"\u003e\u003c/span\u003e\n- [Ktree - tree search](https://github.com/caub/ktree)\n- [Material-ui-multi-select - a Gitlab-issues-filter-like component](https://github.com/caub/mui-multi-select) \u003cspan data-t=\"react\"\u003e\u003c/span\u003e\n- [Mongo-lazy-connect - simplify mongo connection](https://github.com/caub/mongo-lazy-connect) \u003cspan data-t=\"node\"\u003e\u003c/span\u003e\n- [Pg-tsquery - useful text-search parser](https://github.com/caub/pg-tsquery)\n- [Roman-number](https://github.com/caub/roman-number)\n- [Svgz - ongoing effort to enhance svgo](https://github.com/caub/svgz) \u003cspan data-t=\"svg\"\u003e\u003c/span\u003e\n- [Todo list](https://github.com/caub/todo-list) \u003cspan data-t=\"react\"\u003e\u003c/span\u003e \u003cspan data-s=\"service-\" data-t=\"worker\"\u003e\u003c/span\u003e\n\n\n### Some scripts:\n\n- [Maze](//caub.github.io/misc/maze) \u003cspan data-t=\"AI\"\u003e\u003c/span\u003e\n- [Ruzzle](//caub.github.io/misc/ruzzle) \u003cspan data-t=\"AI\"\u003e\u003c/span\u003e\n- [2048 solver](//caub.github.io/misc/2048) \u003cspan data-t=\"AI\"\u003e\u003c/span\u003e\n- [Calculator](//caub.github.io/misc/calculator) \u003cspan data-t=\"parser\"\u003e\u003c/span\u003e\n- [Chrome vs Firefox versions](//caub.github.io/misc/chrome-firefox-versions) \u003cspan data-t=\"c3js\"\u003e\u003c/span\u003e \u003cspan data-t=\"chartjs\"\u003e\u003c/span\u003e\n- [Men vs Women athletic performances](//caub.github.io/misc/men-women-athletics-ratio) \u003cspan data-t=\"chartjs\"\u003e\u003c/span\u003e\n- [Connect-four](//caub.github.io/misc/connect-four) \u003cspan data-t=\"AI\"\u003e\u003c/span\u003e\n- [Github self starring ratio](//caub.github.io/misc/gh-self-star) \u003cspan data-t=\"GH\"\u003e\u003c/span\u003e \u003cspan data-t=\"graphql\"\u003e\u003c/span\u003e\n- [Infinite clock](//caub.github.io/misc/infinite-clock)\n- [Minimax](//caub.github.io/misc/minimax) \u003cspan data-t=\"AI\"\u003e\u003c/span\u003e\n- [Optimize jpeg/png in browser](//caub.github.io/misc/optim) \u003cspan data-t=\"emscripten\"\u003e\u003c/span\u003e \u003cspan data-t=\"worker\"\u003e\u003c/span\u003e\n- [Population density map in France](//caub.github.io/misc/population-density) \u003cspan data-t=\"d3js\"\u003e\u003c/span\u003e\n- [Shape-outside](//caub.github.io/misc/shape-outside) \u003cspan data-t=\"css\"\u003e\u003c/span\u003e\n- [Spreadsheet](//caub.github.io/misc/sheet) \u003cspan data-t=\"css-grid\"\u003e\u003c/span\u003e\n- [Streams with fetch](//caub.github.io/misc/stream)\n- [Storeganise logo](//caub.github.io/misc/sg-logo) \u003cspan data-t=\"svg\"\u003e\u003c/span\u003e\n- [Some logo](//caub.github.io/misc/logo) \u003cspan data-t=\"svg\"\u003e\u003c/span\u003e\n\n### Some other miscellaneous scripts:\n- [Gists](https://gist.github.com/caub/public?direction=desc\u0026sort=updated)\n- [Leetcode](https://leetcode.com/caub/) ([median-of-sorted-arrays](https://leetcode.com/problems/median-of-two-sorted-arrays/discuss/2504/Median-of-2-sorted-arrays-in-JS), [super-pow](https://leetcode.com/problems/super-pow/discuss/154516/JS-solution-(without-and-with-BigInt)))\n- [Repl.it](https://repl.it/@caub)\n- [Runkit](https://runkit.com/caub)\n- [Blog](http://cauburtin.blogspot.fr)\n\n\n\u003cscript\u003e\nconst Y1 = 32, D1 = Y1 / 370, D2 = (1296-Y1)/(1296-370);\nconst f = x =\u003e x \u003e= 370 ? Y1+D2*(x-370) : D1*x;\nconst hue = w =\u003e Math.floor(360 * w.match(/..?/g).map(s =\u003e parseInt(s, 36)).reduce((t,v,i) =\u003e t + f(v)*1296**-(i+1), 0));\n\nconst tags = [...new Set(Array.from(document.querySelectorAll('span[data-t]'), el =\u003e el.dataset.t))];\ncustomStyle.textContent += tags.map(tag =\u003e `span[data-t=\"${tag}\"] {\n\tbackground-color: hsla(${hue(tag)},100%,45%,.85);\n}`).join('\\n');\n\ndocument.querySelector('h1 \u003e a').href = '//github.com/caub/misc';\n\ndocument.querySelectorAll('#some-projects + ul li').forEach(async li =\u003e {\n\tconst a = li.querySelector('a'), url = new URL(a.href);\n\tconst p = url.pathname.slice(1).split('/');\n\tconst r = await fetch(`https://api.github.com/repos/${p[p.length-2]||url.hostname.split('.',1)[0]}/${p[p.length-1]}`).then(r =\u003e r.json());\n\tif (r.stargazers_count) {\n\t\tconst span = document.createElement('span');\n\t\tspan.dataset.stars = r.stargazers_count;\n\t\tli.append(span);\n\t}\n});\n\u003c/script\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaub%2Fmisc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaub%2Fmisc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaub%2Fmisc/lists"}