git clone git@github.com:juliendargelos/project.gitgit clone git@github.com:juliendargelos/project.git
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
| // Usage: | |
| // | |
| // Get a Lorem Ipsum with 100 words (default): | |
| // new LoremIpsum().string | |
| // LoremIpsum.string | |
| // | |
| // Get a Lorem Ipsum with 200 words and without starting with "Lorem ipsum dolor sit amet...": | |
| // new LoremIpsum({length: 200, classic: false}).string | |
| // LoremIpsum.generate({length: 200, classic: 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
| var load = () => { | |
| var loader = document.createElement('div') | |
| loader.style.backgroundColor = 'white' | |
| loader.style.width = '100vw' | |
| loader.style.height = '100vh' | |
| loader.style.position = 'fixed' | |
| loader.style.zIndex = 1000 | |
| loader.style.display = 'flex' | |
| loader.style.alignItems = 'center' | |
| loader.style.justifyContent = 'center' |
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
| (() => { | |
| if(!navigator.mediaDevices) { | |
| navigator.mediaDevices = {} | |
| } | |
| if (!navigator.mediaDevices.getUserMedia) { | |
| navigator.mediaDevices.getUserMedia = ( | |
| navigator.mediaDevices.webkitGetUserMedia || | |
| navigator.mediaDevices.mozGetUserMedia || | |
| navigator.mediaDevices.msGetUserMedia || |
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
| /* | |
| Draws an image into a canvas with anti-aliasing | |
| void ctx.drawImage(context, image, dx, dy); | |
| void ctx.drawImage(context, image, dx, dy, dWidth, dHeight); | |
| void ctx.drawImage(context, image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight); | |
| See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage for documentation, | |
| and just add an extra "context" parameter (the context to draw with) at the beggining. | |
| */ |
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
| # Trim a single "input.png" image and save to "output.png" | |
| magick input.png -trim +repage output.png | |
| # Trim a single "image.png" image and overwrite the original file (based on @enijar comment) | |
| mogrify -trim +repage image.png | |
| # Trim and overwrite all png images from the working directory (based on @enijar comment) | |
| mogrify -trim +repage *.png |
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
| @function text-stroke-shadow-layer($offset, $color) | |
| $text-shadow: () | |
| $text-shadow: append($text-shadow, #{$offset}px 0 0 $color, comma) | |
| $text-shadow: append($text-shadow, #{$offset}px #{$offset}px 0 $color, comma) | |
| $text-shadow: append($text-shadow, 0 #{$offset}px 0 $color, comma) | |
| $text-shadow: append($text-shadow, #{-$offset}px #{$offset}px 0 $color, comma) | |
| $text-shadow: append($text-shadow, #{-$offset}px 0 0 $color, comma) | |
| $text-shadow: append($text-shadow, #{-$offset}px #{-$offset}px 0 $color, comma) | |
| $text-shadow: append($text-shadow, 0 #{-$offset}px 0 $color, comma) | |
| $text-shadow: append($text-shadow, #{$offset}px #{-$offset}px 0 $color, comma) |
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
| $tablet: 800px | |
| $desktop: 1000px | |
| =media-min-height($height) | |
| @media screen and (min-height: $height) | |
| @content | |
| =media-min-width($width) | |
| @media screen and (min-width: $width) | |
| @content |
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
Show hidden characters
| [ | |
| { | |
| "caption": "Terminus: Open Default Shell in Split View", | |
| "command": "terminus_open", | |
| "args": { | |
| "config_name": "Default", | |
| "pre_window_hooks": [ | |
| ["set_layout", { | |
| "cols": [0.0, 0.7, 1.0], | |
| "rows": [0.0, 1.0], |
OlderNewer