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
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress @salcode | |
| # ver 20160309 | |
| # | |
| # From the root of your project run | |
| # curl -O https://gist.githubusercontent.com/salcode/e5b4d7bfa401d6eecfe2771eb1875a5e/raw/.gitignore | |
| # to download this file | |
| # | |
| # By default all files are ignored. You'll need to whitelist | |
| # any mu-plugins, plugins, or themes you want to include in the repo. |
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 | |
| $dictionary = [ | |
| 'epty', | |
| 'pety', | |
| 'yetpa', | |
| 'epyt' | |
| ]; | |
| $targetted_word = 'type'; |
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
| /* http://meyerweb.com/eric/tools/css/reset/ | |
| v2.0 | 20110126 | |
| License: none (public domain) | |
| */ | |
| html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; | |
| font-size: 100%; |
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
| /** | |
| * Allows to switch between excerpt and content. | |
| * If excerpt is not set we will use content but limit the words. | |
| * Ideally use for custom queries. | |
| * | |
| * @param string $content | |
| * @param string $excerpt | |
| * @param int $word_limit | |
| * @param string $more | |
| * @return string $trimmed_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
| // Best added in :before or :after | |
| @mixin img_overlay($width, $height, $url : '../img/video-player.png' ) { | |
| background-image: url($url); | |
| max-width: #{$width}px; | |
| max-height: #{$height}px; | |
| content: ' '; | |
| display: block; | |
| width: 100%; | |
| position: absolute; | |
| height: 100%; |
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
| $flex-justify: ( | |
| 'start' : 'flex-start', | |
| 'end' : 'flex-end', | |
| 'center' : 'center', | |
| 'between' : 'space-between', | |
| 'around' : 'space-around' | |
| ); | |
| $flex-align: ( | |
| 'start' : 'flex-start', |
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
| $breakpoints: ( | |
| "phone": 400px, | |
| "phone-wide": 480px, | |
| "phablet": 560px, | |
| "tablet-small": 640px, | |
| "tablet": 768px, | |
| "tablet-wide": 1024px, | |
| "desktop": 1248px, | |
| "desktop-wide": 1440px | |
| ); |
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 | |
| /** | |
| * Wordpress Image Handling. | |
| * | |
| * @param array $file $_FILE. File Path Request. | |
| * @return array $status Status | |
| */ | |
| function imageHandling( $file ) | |
| { | |
| $imageArray = wp_handle_upload( $file, ['test_form' => 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
| version: '2' | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| volumes: | |
| - ./db:/docker-entrypoint-initdb.d | |
| - ./db_data:/var/lib/mysql | |
| restart: always | |
| environment: |
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
| version: '2' | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| volumes: | |
| - ./db:/docker-entrypoint-initdb.d | |
| - ./db_data:/var/lib/mysql | |
| restart: always | |
| environment: |
OlderNewer