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
| function stringToBoolean(string){ | |
| switch(string.toLowerCase()){ | |
| case "true": case "yes": case "1": return true; | |
| case "false": case "no": case "0": case "": return false; | |
| default: return Boolean(string); | |
| } | |
| } |
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
| // When ready... | |
| window.addEventListener("load",function() { | |
| // Set a timeout... | |
| setTimeout(function(){ | |
| // Hide the address bar! | |
| window.scrollTo(0, 1); | |
| }, 0); | |
| }); |
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 | |
| function fixPermissions($path, $filemode = 0644, $dirmode = 0775) | |
| { | |
| $dir = new DirectoryIterator($path); | |
| foreach ($dir as $item) { | |
| if (!$item->isDot() && !$item->isLink()) { | |
| if ($item->isFile()) { | |
| if (chmod($item->getPathname(), $filemode)) { | |
| echo "CHMOD file ".$item->getPathname()." to ".decoct($filemode)." successful\r\n<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
| 2014-09-23 18:28:32 +0100 | |
| ./configure | |
| --prefix=/usr/local/Cellar/php55/5.5.17 | |
| --localstatedir=/usr/local/var | |
| --sysconfdir=/usr/local/etc/php/5.5 | |
| --with-config-file-path=/usr/local/etc/php/5.5 | |
| --with-config-file-scan-dir=/usr/local/etc/php/5.5/conf.d | |
| --with-iconv-dir=/usr | |
| --enable-dba |
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
| function countCSSRules() { | |
| var results = '', | |
| log = ''; | |
| if (!document.styleSheets) { | |
| return; | |
| } | |
| for (var i = 0; i < document.styleSheets.length; i++) { | |
| countSheet(document.styleSheets[i]); | |
| } | |
| function countSheet(sheet) { |
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 | |
| function getCount($url) | |
| { | |
| //Assumes Guzzle. As long as you make a request to the URL below and grab the body, it doesn't matter how you cURL. | |
| $request = $this->getHttpClient()->get('https://plusone.google.com/_/+1/fastbutton?url='.urlencode($url)); | |
| $html = $request->send()->getBody(); | |
| // Disable libxml errors | |
| libxml_use_internal_errors(true); | |
| $document = new \DOMDocument(); |
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
| <template> | |
| <figure><img :src="mix('example-asset.jpg')" alt=""></figure> | |
| </template> | |
| <script> | |
| import {mix} from "./mix"; | |
| export default { | |
| name: "ExampleComponent", | |
| mixins: [mix] |
OlderNewer