This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "overrides": [ | |
| { | |
| "files": "*.sol", | |
| "options": { | |
| "printWidth": 80, | |
| "tabWidth": 2, | |
| "useTabs": false, | |
| "singleQuote": false, | |
| "bracketSpacing": false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://javascript.plainenglish.io/15-helpful-javascript-one-liners-946e1d1a1653 | |
| /** | |
| * Generating a random number within a range | |
| * | |
| * @param {*} min | |
| * @param {*} max | |
| */ | |
| const randomNumberInRange = (min, max) => | |
| Math.floor(Math.random() * (max - min + 1)) + min; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Make metaball | |
| // https://www.clicktorelease.com/blog/vertex-displacement-noise-3d-webgl-glsl-three-js/ | |
| // use below pnoise 3d | |
| // https://github.com/ashima/webgl-noise/blob/master/src/classicnoise3D.glsl | |
| float turbulence( vec3 p ) { | |
| float w = 100.0; | |
| float t = -.5; | |
| for (float f = 1.0 ; f <= 10.0 ; f++ ){ | |
| float power = pow( 2.0, f ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "tsserver.enableJavascript": true, | |
| "eslint.filetypes": ["javascript", "typescript", "typescriptreact", "javascriptreact", "typescript.tsx"], | |
| "prettier.eslintIntegration": true | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"lastUpload":"2020-01-18T06:37:07.372Z","extensionVersion":"v3.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * valueがとる値、start1 ~ stop1をstart2 ~ stop2に変更する | |
| * | |
| * @param {*} value | |
| * @param {*} start1 | |
| * @param {*} stop1 | |
| * @param {*} start2 | |
| * @param {*} stop2 | |
| * @param {boolean} trimming 返される値をstart2, stop2のレンジでカット | |
| * @return |