start new:
tmux
start new with session name:
tmux new -s myname
| var stringify = function(obj, prop) { | |
| var placeholder = '____PLACEHOLDER____'; | |
| var fns = []; | |
| var json = JSON.stringify(obj, function(key, value) { | |
| if (typeof value === 'function') { | |
| fns.push(value); | |
| return placeholder; | |
| } | |
| return value; | |
| }, 2); |
| in vec2 v_texcoord; // texture coords | |
| in vec3 v_normal; // normal | |
| in vec3 v_binormal; // binormal (for TBN basis calc) | |
| in vec3 v_pos; // pixel view space position | |
| out vec4 color; | |
| layout(std140) uniform Transforms | |
| { | |
| mat4x4 world_matrix; // object's world position |
Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.
All files were downloaded from https://cdnjs.com and named accordingly.
Output from ls command is stripped out (irrelevant stuff)
$ ls -lhS
566K Jan 4 22:03 angular2.min.js
| <!doctype html> | |
| <html> | |
| <head> | |
| <!-- npm install mathjs [email protected] --> | |
| <script src='./node_modules/genish.js/dist/gen.lib.js'></script> | |
| <script src='./node_modules/mathjs/dist/math.js'></script> | |
| </head> | |
| <body></body> | |
| <script> | |
| if( typeof OfflineAudioContext === 'undefined' ) window.OfflineAudioContext = webkitOfflineAudioContext |
Gibber uses javascript.
| #define EPSILON 0.001 | |
| precision mediump float; | |
| uniform float time; | |
| uniform vec2 resolution; | |
| uniform vec2 mouse; | |
| uniform sampler2D backbuffer; | |
| vec2 uv2p(vec2 uv) {return ((uv*resolution) * 2. - resolution) / min(resolution.x, resolution.y);} | |
| vec2 p2uv(vec2 p) {return ((p*min(resolution.x, resolution.y))+resolution)/(2.*resolution);} |
| /** | |
| * Get the caret position in all cases | |
| * | |
| * @returns {object} left, top distance in pixels | |
| */ | |
| getCaretTopPoint () { | |
| const sel = document.getSelection() | |
| const r = sel.getRangeAt(0) | |
| let rect | |
| let r2 |