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
(\/\*(.|\s)*?\*\/|(\n|\t|\r|\v|\f|\a){1,}|\s(?=\s)|(?<=})\s|(?<={)\s|\s(?={)|\s(?=})|(?<=;)\s|[[:blank:]](?=;)|(?<=:)[[:blank:]]|(?<=,)[[:blank:]]) |
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
<!-- https://twitter.com/paul_irish/status/218395508018921472 --> | |
<!--[if lte IE 8]> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> | |
<script type="text/javascript"> | |
window.jQuery || document.write('<script src="js/libs/jquery-1.9.0.min.js"><\/script>') | |
</script> | |
// call old jQuery plugin 1 | |
// call old jQuery plugin 2 | |
<![endif]--> | |
<!--[if (gt IE 8)|!(IE)]> |
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(s?):\/\/(www\.?)amazon.com) |
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
<p>Here you may add a new row for every new question and answer set you wish to display.</p> | |
<div class="postbox"> | |
<h3>Tips</h3> | |
<div class="inside"> | |
<ul style="list-style-type:disc; list-style-position:inside; margin-left:30px;"> | |
<li>Hover your cursor over the <span id="highlight-left-margin" style="text-decoration:underline; font-weight:bold; cursor:pointer;">left margin</span> and click to drag our FAQ items into a different order.</li> | |
<li>Hover over the <span id="highlight-right-margin" style="text-decoration:underline; font-weight:bold; cursor:pointer;">right margin</span> and click on the <i>plus<i> to add a new FAQ item. Click on the <i>minus</i> to delete an tem.</li> | |
<li>Some fields allow you to use basic <abbr title="Hypertext Markup anguage." style="border-bottom:1px dotted;">HTML</abbr> tags, like <b><b>bold</b></b> and <i><i>italic</i></i>.</i> | |
</ul> | |
</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
Show hidden characters
{ | |
"scope": "text.html", | |
"completions": | |
[ | |
{ | |
"trigger" : "todo", | |
"contents" : "<?php\n/**\n *\t\tTODO: ${1:New Todo Item}\n */\n?>" | |
}, | |
{ | |
"trigger" : "fixme", |
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 | |
/** | |
* Gets all arguments for all shortcode functions and returns them as an array. | |
* | |
* @method get_all_shortcode_args | |
* | |
* @param boolean $ignore_native Whether to ignore the native Wordpress shortcodes. | |
* | |
* @param boolean $dedupe Whether to return unique values or allow duplicates. | |
* |
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
// What if we wanted to reverse the calculations to align with pre-defined breakpoints? | |
// You must start mobile-first. | |
// Maximum cropable area will be the size of the largest change between breakpoints. | |
// 1 - 768/992 = 22.6% <-- Winner! We may have to crop ~23% of the image width before snapping to the next size. | |
// 1 - 992/1200 = 17.3% | |
.img{ | |
display:none; // $screen-xs-min | |
height: auto; // Again, this should be constant on all sizes. The opposite of the previous method. |
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
Snippet: [[SnippetName]] | |
Chunk: [[$ChunkName]] | |
System Setting: [[++SettingName]] | |
TV: [[*fieldName/TvName]] | |
Link tag: [[~PageId? ¶mName=`value`]] | |
Placeholder: [[+PlaceholderName]] | |
<?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
// Amazon pages seem to intermittently have jQuery loaded. | |
if (!window.jQuery) { | |
var jqlib = document.createElement('script'); | |
jqlib.setAttribute('type', 'text/javascript'); | |
jqlib.setAttribute('src','//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js'); | |
document.head.appendChild(jqlib); | |
} | |
// Make sure jQuery before executing. | |
function defer(method) { |
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
#!/bin/bash | |
# Must run this as sudo. How to make sure of that?? | |
if [ "$EUID" -ne 0 ] | |
then | |
# Turn off history expansion to make it easier to echo exlaimation points | |
set +H | |
printf "%s\n" "Error: Monit installation and setup must be run as root. Type 'sudo !!' at the prompt, enter your password, in order to try again." | |
OlderNewer