For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
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
| <?php | |
| /** | |
| * Plugin Name: Lynt Install Blocker | |
| * Author: Vladimir Smitka | |
| * Author URI: https://lynt.cz/ | |
| * License: GNU General Public License v3 or later | |
| * License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
| */ | |
| if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING && !is_blog_installed() ) { |
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
| <!-- wp:spacer {"height":"150px"} --> | |
| <div style="height:150px" aria-hidden="true" class="wp-block-spacer"></div> | |
| <!-- /wp:spacer --> | |
| <!-- wp:group {"align":"wide","layout":{"inherit":false}} --> | |
| <div class="wp-block-group alignwide"><!-- wp:columns {"verticalAlignment":"center"} --> | |
| <div class="wp-block-columns are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"top":"3rem","right":"1rem","bottom":"3rem","left":"1rem"}},"border":{"width":"1px"}},"backgroundColor":"contrast","className":"has-border-color has-black-border-color"} --> | |
| <div class="wp-block-column is-vertically-aligned-center has-border-color has-black-border-color has-contrast-background-color has-background" style="border-width:1px;padding-top:3rem;padding-right:1rem;padding-bottom:3rem;padding-left:1rem"><!-- wp:paragraph {"textColor":"base","fontSize":"small"} --> | |
| <p class="has-base-color has-text-color has-small-font-size">Contrast</p> | |
| <!-- /wp:paragraph --></div> |
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
| module.exports = { | |
| config: { | |
| // default font size in pixels for all tabs | |
| fontSize: 12, | |
| // font family with optional fallbacks | |
| fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
| // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
| cursorColor: 'rgba(248,28,229,0.8)', |
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
| # How to install a new WordPress site from scratch using WP-CLI. | |
| # We are going to assume that you have installed WP-CLI with all of the needed dependencies (composer, mysql, php) and added them to the global system/user path. | |
| # Commands that you need to use in the CLI are marked with a ">" at the start of the row (you don't need to add that to the command). | |
| # Create a new empty directory in your /www path. You can do that from the CLI directly. We are going to do a local install using WAMP software stack. | |
| # Either go to the /www directory through explorer and create a new folder or use the following command in the CLI (you have to change your current directory to '/wamp/www' first). | |
| > mkdir wordpress |
A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.
On a mac you can use homebrew by running the command brew install pandoc.
- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
Press minus + shift + s and return to chop/fold long lines!
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
| #!/usr/bin/env ruby | |
| # | |
| # Originally written by http://redartisan.com/tags/csv | |
| # Added and minor changes by Gavin Laking | |
| # Rewritten by Andrew Bennett for Ruby 1.9 | |
| # | |
| # Usage: ruby csv_to_fixture.rb file.csv [--json] | |
| # | |
| # "id","name","mime_type","extensions","icon_url" | |
| # "1","unknown","unknown/unknown","||","/images/icon/file_unknown.gif" |