A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
Name | Stars | Last Commit | Description |
---|---|---|---|
three.js | ![GitHub |
A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
Name | Stars | Last Commit | Description |
---|---|---|---|
three.js | ![GitHub |
const listeners = (function listAllEventListeners() { | |
let elements = []; | |
const allElements = document.querySelectorAll('*'); | |
const types = []; | |
for (let ev in window) { | |
if (/^on/.test(ev)) types[types.length] = ev; | |
} | |
for (let i = 0; i < allElements.length; i++) { | |
const currentElement = allElements[i]; |
A non-exhaustive list of tools for JavaScript development as it has become "complicated".
Name: language | Stars | Last Commit | Owner/Sponsorship |
---|---|---|---|
tsc: JavaScript | Microsoft | ||
[babel] |
// http://amanvirk.me/singleton-classes-in-es6/ | |
let instance = null; | |
class SingletonModuleScopedInstance { | |
constructor() { | |
if (!instance) { | |
instance = this; | |
} | |
this._type = 'SingletonModuleScopedInstance'; |
class SingletonDefaultExportInstance { | |
constructor() { | |
this._type = 'SingletonDefaultExportInstance'; | |
} | |
singletonMethod() { | |
return 'singletonMethod'; | |
} | |
static staticMethod() { |
// Author: Abhishek Dutta, 12 June 2020 | |
// License: CC0 (https://creativecommons.org/choose/zero/) | |
export default function uuid() { | |
var temp_url = URL.createObjectURL(new Blob()); | |
var uuid = temp_url.toString(); | |
URL.revokeObjectURL(temp_url); | |
return uuid.substr(uuid.lastIndexOf('/') + 1); // remove prefix (e.g. blob:null/, blob:www.test.com/, ...) | |
} |
console.log("foo"); |
I am attesting that this GitHub handle dmnsgn is linked to the Tezos account tz2AmQarWLeMoQVt2h9a4QYywTUtg8bH5t5B for tzprofiles | |
sig:spsig1enZE4k2VP8aj8J6kJLQLLXrRVUXmT8R2CTDdKqYqKUdNH4rNxu1DwTcpdvdToMEnYnr5PgZuVohjZFnJiCCcLDz9Jkqnz |
{ | |
// http://eslint.org/docs/rules/ | |
"env": { | |
"browser": true, // browser global variables. | |
"node": false, // Node.js global variables and Node.js-specific rules. | |
"worker": false, // web workers global variables. | |
"amd": false, // defines require() and define() as global variables as per the amd spec. | |
"mocha": false, // adds all of the Mocha testing global variables. | |
"jasmine": false, // adds all of the Jasmine testing global variables for version 1.3 and 2.0. |
// http://stackoverflow.com/a/26227662/1527470 | |
const singleton = Symbol(); | |
const singletonEnforcer = Symbol(); | |
class SingletonEnforcer { | |
constructor(enforcer) { | |
if (enforcer !== singletonEnforcer) { | |
throw new Error('Cannot construct singleton'); | |
} |