- https://fishshell.com/ - my default shell, i use theme bobthefish
- https://www.sublimetext.com/ - my default editor
- Material Theme
- Operator font
- Packages: Emmet, Hayaku, SidebarEnhancements, JS Snippets, GSAP Snippets
- Sublime snippet for comments
- Sublime icon
- https://code.visualstudio.com/ - trying to switch, but not yet
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
| let colors = ["#fe4a48","#2ab7ca","#fed766","#e6e6ea","#f4f4f8"] |
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
| /* | |
| * A speed-improved perlin and simplex noise algorithms for 2D. | |
| * | |
| * Based on example code by Stefan Gustavson (stegu@itn.liu.se). | |
| * Optimisations by Peter Eastman (peastman@drizzle.stanford.edu). | |
| * Better rank ordering method by Stefan Gustavson in 2012. | |
| * Converted to Javascript by Joseph Gentle. | |
| * | |
| * Version 2012-03-09 | |
| * |
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
| did:3:bafyreibmpz77bkvq7qavacrivzrq36glz57fd5g3rs4qb2acj3k3qwznnq |
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
| void main() { | |
| vec2 uv1 = vUv; | |
| float uTime = vColor*time*10.; | |
| vec2 offset = vec2( | |
| floor(mod(uTime, 5.)), | |
| 4. - mod(floor(uTime / 5.), 5.) | |
| ); | |
| uv1 = uv1 / 5.; | |
| uv1 += offset/5.; |
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
| #!/bin/bash | |
| # Script to start the Chrome Canary with V8 profiler flags | |
| # Configuration | |
| LOCATION="${1:-http://localhost:8080}" | |
| LOG_DIRECTORY="${2:-logs}" | |
| LOG_OUTPUT="${3:-logs/chrome_canary_output.log}" | |
| LOG_ERROR="${4:-logs/chrome_canary_error.log}" | |
| BASE_TEMP_PROFILE_DIR="${5:-/tmp}" |
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
| class Line{ | |
| constructor(){ | |
| this.angle = Math.random()*2*Math.PI; | |
| this.offset = Math.random(); | |
| this.start1 = 1200; | |
| this.start2 = this.start1 + 500*Math.random(); | |
| } | |
| draw(progress,context){ | |
| let pr = (1 - progress + this.offset)%1; |
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
| const canvasSketch = require("canvas-sketch"); | |
| const { fract, lerp, clamp, mapRange,clamp01,sign } = require('canvas-sketch-util/math'); | |
| const settings = { | |
| // Enable an animation loop | |
| animate: true, | |
| // Set loop duration to 3 seconds | |
| duration: 10, | |
| // Use a small size for our GIF output | |
| dimensions: [1080, 1920], |
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
| // Classic Perlin 3D Noise | |
| // by Stefan Gustavson | |
| // | |
| vec4 permute(vec4 x){return mod(((x*34.0)+1.0)*x, 289.0);} | |
| vec4 taylorInvSqrt(vec4 r){return 1.79284291400159 - 0.85373472095314 * r;} | |
| vec3 fade(vec3 t) {return t*t*t*(t*(t*6.0-15.0)+10.0);} | |
| float cnoise(vec3 P){ | |
| vec3 Pi0 = floor(P); // Integer part for indexing | |
| vec3 Pi1 = Pi0 + vec3(1.0); // Integer part + 1 |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <canvas id="my" width="640" height="640"></canvas> |