The following debugging information was generated by Atom Beautify
on Mon Jun 19 2017 09:53:37 GMT+0100 (BST)
.
This file contains 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
var _body = document.getElementsByTagName('body') [0]; | |
var zenbox = document.createElement('script'); | |
zenbox.src = '//assets.zendesk.com/external/zenbox/v2.5/zenbox.js'; | |
var style = document.createElement('style'); | |
css = '@import url(//assets.zendesk.com/external/zenbox/v2.5/zenbox.css);'; | |
style.type = 'text/css'; | |
style.media = 'screen, projection'; | |
if (style.styleSheet){ |
This file contains 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
var arr = new Array(); | |
$('link[media]').each(function(i){ | |
typeof($(this).attr('media').split('(')[1]) !== 'undefined' | |
? arr.push(new Array($(this).attr('media').split('(')[1].split(':')[0], $(this).attr('media').split('(')[1].split(':')[1].split('px')[0])) | |
: null ; | |
}); | |
console.log(arr); |
This file contains 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
/** | |
* Usage example: | |
* | |
* input { | |
* @include placeholder { | |
* // styles | |
* } | |
* } | |
*/ |
This file contains 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
RewriteEngine On | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L] |
This file contains 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 node | |
var plan = require('flightplan'); | |
// configuration | |
plan.target('staging', [{ | |
host: 'YOUR SERVER IP', | |
port: 22, | |
username: 'USER', | |
privateKey: '~/.ssh/id_rsa' | |
agent: process.env.SSH_AUTH_SOCK, |
This file contains 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
04364d8713b22db2b0d9e8c01d794954cdb0e20f24bb45fe3a41f02c4cb3f09bc5cbed95f3e3aadbd9de743f43982641157574d7d04b1e0ef6a5772f3679efc474;garethweaver |
This file contains 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 | |
// List of tags to be replaced and their replacement | |
$replace_tags = [ | |
'i' => 'em', | |
'b' => 'strong' | |
]; | |
// List of tags to be stripped. Text and children tags will be preserved. | |
$remove_tags = [ |