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 | |
| /* | |
| Blake B Howe | |
| http://blakebhowe.com | |
| */ | |
| function checkConnection() | |
| { |
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 | |
| /* | |
| Blake B Howe | |
| http://blakebhowe.com | |
| */ | |
| error_reporting(E_ALL); | |
| # dbs are configured in file /etc/tds.datasource.template. |
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
| /* | |
| Blake B Howe | |
| http://blakebhowe.com | |
| */ | |
| ========================================== | |
| CURL COMMAND | |
| ========================================== | |
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
| /* | |
| Blake B Howe | |
| http://blakebhowe.com | |
| */ | |
| $ch = curl_init("https://www.googleapis.com/pagespeedonline/v1/runPagespeed?url=http://wiseguystechnologies.com/&key=APIKEYHERE"); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
| $res = curl_exec($ch); |
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 | |
| /* | |
| DONT FORGET TO DELETE THIS SCRIPT WHEN FINISHED! | |
| */ | |
| /* | |
| Blake B Howe | |
| http://blakebhowe.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
| $result = mysql_query("SHOW COLUMNS FROM TABLENAME"); | |
| if (!$result) { | |
| echo 'Could not run query: ' . mysql_error(); | |
| exit; | |
| } | |
| if (mysql_num_rows($result) > 0) { | |
| while ($row = mysql_fetch_assoc($result)) { | |
| echo $row['Field']."<br>"; | |
| } | |
| } |
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
| <!-- Sample Content to Plugin to Template --> | |
| <h1>CSS Basic Elements</h1> | |
| <div class="entry-content"> | |
| Below is just about everything you’ll need to style in the theme. Check the source code to see the many embedded elements within paragraphs. | |
| <hr /> | |
| <h1>Heading 1</h1> |
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
| # cavet always check your site with fetch as google bot in webmaster tools to make sure your not blocking anything needed as you add | |
| # https://yoast.com/robots.txt | |
| # https://yoa.st/robots-txt | |
| User-Agent: * |
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
| RegEx's that you can use to match @media rules are: | |
| ^\@media\s(.*?)\{$ | |
| ^ = assert position at start of the string | |
| \@ = matches the character @ literally | |
| media = matches the characters media literally | |
| \s = match any white space character [\r\n\t\f ] | |
| .*? = matches any character (except newline) | |
| { = matches the character { literally |
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
| #good responsive video code | |
| /* Video Container | |
| ------------------------------------------------------------ */ | |
| .video-container { | |
| position: relative; | |
| padding-bottom: 56.25%; | |
| /*padding-top: 30px;*/ | |
| height: 0; |