This lets you set the preload headers for your assets, so that the browser can start fetching them before it begins parsing HTML.
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() { | |
| const labels = [ | |
| // Platform | |
| { name: "typescript", color: "#BFD4F2" }, | |
| { name: "javascript", color: "#BFD4F2" }, | |
| // Problems | |
| { name: "bug", color: "#EE3F46" }, | |
| { name: "security", color: "#EE3F46" }, | |
| { name: "production", color: "#F45D43" }, | |
| // Mindless |
# Install x-code command line tools
xcode-select --install
# Install homebrew itself
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
This blogpost shows how to setup Rails 6 with Bootstrap 4.
This snippet shows a somehow different and less customized approach.
$ rails new rails6-bootstrap4
$ bundle --binstubs
$ yarn add bootstrap jquery popper.js expose-loader
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
| require "onnxruntime" | |
| require "mini_magick" | |
| img = MiniMagick::Image.open("bears.jpg") | |
| pixels = img.get_pixels | |
| model = OnnxRuntime::Model.new("model.onnx") | |
| result = model.predict({"inputs" => [pixels]}) | |
| p result["num_detections"] |
This is all you really need to know in order to make Action Mailbox work in development.
- Fire up
ngrok http 3000and make note of your subdomain for steps 3 and 8. - Create a Mailgun account because they offer sandbox addresses; grab your domain from the Dashboard.
- Go into Receiving and create a catch-all route pointing to:
https://XXX.ngrok.io/rails/action_mailbox/mailgun/inbound_emails/mime - Add your Mailgun API key to your credentials:
action_mailbox:
mailgun_api_key: API KEY HERE
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
| // ==UserScript== | |
| // @name Add AlpineJs to Tailwind UI | |
| // @namespace http://tampermonkey.net/ | |
| // @version 3.0 | |
| // @description Add Alpine JS code to Tailwind Ui copy/paste | |
| // @author https://gist.github.com/KevinBatdorf/8bd5f808fff6a59e100dfa08a7431822 | |
| // @match https://tailwindui.com/components/* | |
| // @grant none | |
| // ==/UserScript== |