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
| # Fixed version of https://gist.github.com/bancek/b37b780292540ed2d17d | |
| import os | |
| import sys | |
| cue_file = sys.argv[1] | |
| d = open(cue_file).read().splitlines() | |
| general = {} |
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> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>slot-scope</title> | |
| <script src="https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"></script> | |
| <style> | |
| .oldcomponent, | |
| .newcomponent { |
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> | |
| <meta charset="utf-8"> | |
| <head> | |
| <title>Test dark mode</title> | |
| <style type="text/css"> | |
| body.dark { | |
| background-color: #212529; | |
| color: #6c757d; | |
| } |
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 | |
| // ADD THIS TO THE functions.php file OF YOUR (CHILD) THEME | |
| // apply to all forms | |
| add_filter( 'gform_field_content', function ( $field_content, $field ) { | |
| if ($field->type == "name") { | |
| $field_content = preg_replace( '(<input)', '<input class="form-control" ', $field_content ); | |
| } else { | |
| $field_content = preg_replace( '(<input .*class=\')', '$0form-control ', $field_content ); | |
| $field_content = preg_replace( '(<select .*class=\')', '$0form-control ', $field_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
| From 5ad8723a1b7acb8b04bbe38824f00b930b703293 Mon Sep 17 00:00:00 2001 | |
| From: Bram Esposito <xxx@xxx.xxx> | |
| Date: Tue, 5 Jun 2018 14:22:00 +0200 | |
| Subject: [PATCH] patch events manager wrt gallery issues | |
| --- | |
| wp-content/plugins/events-manager/classes/em-event.php | 12 +++++++++++- | |
| 1 file changed, 11 insertions(+), 1 deletion(-) | |
| diff --git a/wp-content/plugins/events-manager/classes/em-event.php b/wp-content/plugins/events-manager/classes/em-event.php |
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
| <script> | |
| (function() { | |
| $(".fully-clickable").on("click", function(event) { | |
| dataLayer.push({ | |
| "event":"fullyclickable event", | |
| "fully-clickable url": new URL($(event.target).find('a:last').attr('href'), window.location.href).href | |
| }); | |
| }); | |
| })(); | |
| </script> |
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
| FILE="/Users/user/wherever/you put/your files/file.txt" | |
| head -n 1 "$FILE" | pbcopy | |
| echo "$(sed '1d' "$FILE")\n" > "$FILE" |
Firstly install Brew on your MAC
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then install PHP
- brew update
- brew tap homebrew/dupes
- brew tap homebrew/php
- brew install php56
To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion
NewerOlder