Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| /** | |
| * Returns the scroll target position for scrolling to the top of an element. | |
| * | |
| * Pass the result to a scrollTo method: | |
| * | |
| * - $scrollContainer.scrollTop( result ) for instant scrolling | |
| * - $scrollContainer.scrollTo( result ) for animated scrolling with jQuery.scrollable | |
| * | |
| * @param {jQuery} $target the target element | |
| * @param {jQuery} $scrollContainer either $(window), or a scrollable HTML element |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
ℹ️ There is a newer alternative project that does similar things and more, check it out at https://github.com/stevenilsen123/mac-keyboard-behavior-in-windows
Make Windows PC's shortcut act like macOS (Mac OS X) (using AutoHotkey (ahk) script)
With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.
| /** | |
| * Encrypts plaintext using AES-GCM with supplied password, for decryption with aesGcmDecrypt(). | |
| * (c) Chris Veness MIT Licence | |
| * | |
| * @param {String} plaintext - Plaintext to be encrypted. | |
| * @param {String} password - Password to use to encrypt plaintext. | |
| * @returns {String} Encrypted ciphertext. | |
| * | |
| * @example | |
| * const ciphertext = await aesGcmEncrypt('my secret text', 'pw'); |
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 | ![GitH |
| //---------------------------------------------------------------------- CURL | |
| vec4 permute(vec4 x){return mod(x*x*34.+x,289.);} | |
| float snoise(vec3 v){ | |
| const vec2 C = 1./vec2(6,3); | |
| const vec4 D = vec4(0,.5,1,2); | |
| vec3 i = floor(v + dot(v, C.yyy)); | |
| vec3 x0 = v - i + dot(i, C.xxx); |
| vec2 rotateUV(vec2 uv, float rotation) | |
| { | |
| float mid = 0.5; | |
| return vec2( | |
| cos(rotation) * (uv.x - mid) + sin(rotation) * (uv.y - mid) + mid, | |
| cos(rotation) * (uv.y - mid) - sin(rotation) * (uv.x - mid) + mid | |
| ); | |
| } | |
| vec2 rotateUV(vec2 uv, float rotation, vec2 mid) |
| # ... | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # Launch Zsh | |
| if [ -t 1 ]; then | |
| exec zsh | |
| fi | |
| # If not running interactively, don't do anything |
A minimalistic method for rendering a triangle in WebGL 2 that covers the screen with no buffer inputs.
Usable for post effects or something similar to https://shadertoy.com
All vertex and texture coordinate information are generated in vertex shader from the built-in gl_VertexID variable
These libraries can be used to quickly create a GUI for configureable parameters using sliders, checkboxes, colors pickers etc