Command: list.toggleKeyboardNavigation
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
{% set quantity = tiles|length %} | |
{% set attributes = { | |
class: [ | |
'tiles' | |
], | |
'data-quantity': quantity, | |
'data-layout': num_cols, | |
'data-modulo-2': quantity % 2, | |
'data-modulo-3': quantity % 3, | |
'data-modulo-4': quantity % 4, |
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 | |
// Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored) | |
// http://youtu.be/dQw4w9WgXcQ | |
// http://www.youtube.com/embed/dQw4w9WgXcQ | |
// http://www.youtube.com/watch?v=dQw4w9WgXcQ | |
// http://www.youtube.com/?v=dQw4w9WgXcQ | |
// http://www.youtube.com/v/dQw4w9WgXcQ | |
// http://www.youtube.com/e/dQw4w9WgXcQ | |
// http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ |
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 | |
/** | |
* Get Vimeo video id from url | |
* | |
* Supported url formats - | |
* | |
* https://vimeo.com/11111111 | |
* http://vimeo.com/11111111 |
lsof -i TCP:9000 | grep LISTEN
command + shift + . (dot/period)
On a multilingual site, if content is translated, all translations of the node are often included in views results
What we want:
- No duplicates
- Show the translated node, if the translation exists
- If no translation exists, show the node in its original language
The fix requires a combination of two things:
Find all folders (starting in the current folder) based on a partial folder name
find . -type d -name "*searchname*"