git clone [email protected]:ziglang/zig.git
cd zig
mkdir build
cd build
cmake .. -DZIG_STATIC_LLVM=ON -DCMAKE_PREFIX_PATH="$(brew --prefix llvm);$(brew --prefix zstd)"
make -j9 install
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"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>charbar</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script> | |
| <style> | |
| body { | |
| margin: 0; |
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
| provider "linode" { | |
| } | |
| resource "linode_domain" "mydomain" { | |
| type = "master" | |
| domain = "testingtesting123.com" | |
| soa_email = "[email protected]" | |
| } | |
| resource "linode_domain_record" "jrecordbind_A" { |
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
| docker run -v $(PWD):./docs/docker-image.md:/data/readme.md:ro \ | |
| -e DOCKERHUB_USERNAME -e DOCKERHUB_PASSWORD \ | |
| charliekenney23/dockerhub-update \ | |
| -readme /data/readme.md \ | |
| -description "Some insightful description" \ | |
| myorganization/myrepository |
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
| dockerhub-update | |
| -readme ./docs/docker-image.md \ | |
| -description "Some insightful description" \ | |
| myorganization/myrepository |
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 isTouchScreenDevice = () => { | |
| try { | |
| window.document.createEvent('TouchEvent'); | |
| // if can create touch event without error | |
| // the device has a touch screen | |
| return true; | |
| } catch (err) { | |
| // swallow error and return false | |
| return 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
| docker container ls | awk '{print $3}' | xargs docker container rm --force |
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
| docker image ls | awk '{print $3}' | xargs docker image rm --force |
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
| // chunk array reduces the array to a set of chunks of size n | |
| const chunkArray = (a = [], n = 2) => | |
| a.reduce((acc, el, idx) => { | |
| const chunk = Math.floor(idx / n); | |
| if (!Array.isArray(acc[chunk])) acc[chunk] = []; | |
| acc[chunk].push(el); | |
| return acc; | |
| }, []); |
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 doneBtn = document.querySelector('.dy-html-editor-done'); | |
| ['disabled', 'aria-disabled', 'ng-disabled'] | |
| .forEach(a => doneBtn.removeAttribute(a)); | |
| })(); |
NewerOlder