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
| /* Clover NWUX Prototype Grunt Config | |
| THINGS TO EDIT: | |
| - output.ftp value, should be path on server for FTP upload | |
| - Edit and rename file example.ftppass to .ftppass | |
| */ | |
| module.exports = function(grunt) { | |
| // Config each plugin | |
| grunt.initConfig({ |
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
| /** | |
| * Simple localStorage with Cookie Fallback | |
| * v.1.0.0 | |
| * | |
| * USAGE: | |
| * ---------------------------------------- | |
| * Set New / Modify: | |
| * store('my_key', 'some_value'); | |
| * | |
| * Retrieve: |
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
| preg_match_all("/(https?:[^)\"]+\.(?:jpg|jpeg)(?![a-z\/]))/i", $item["Body"], $matches); |
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
| var compass = { | |
| distPerDay: 5172, | |
| getDirection: function(deg) { | |
| var dir = "N"; | |
| //var cone = 15; // Degrees to offset for NESW | |
| if (deg > 0 && deg <= 15) { dir = "N"; } | |
| if (deg > 15 && deg <= 75) { dir = "NE"; } | |
| if (deg > 75 && deg <= 105) { dir = "E"; } | |
| if (deg > 105 && deg <= 165) { dir = "SE"; } |
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
| <pre> | |
| <?php | |
| include("_dummy.php"); | |
| class Lookup { | |
| function __construct() { | |
| $this->base =& get_instance(); | |
| $this->ids = array(); |
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
| // @import "config"; | |
| //| STYLESHEET GROUP | |
| //| Secondary information about group | |
| //| | |
| // One-off comment about this rule | |
| .myrule { |
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
| <html> | |
| <head> | |
| <title>Stylesheet Toggling</title> | |
| <style> | |
| * { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } | |
| .row:after {content: ""; display: table; clear: both; } | |
| .row .col { float: left; } | |
| .row.row--padding > .col { padding:0 15px; } | |
| .row.row--bottom { margin-bottom: 20px; } |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
| <title>Dynamic Drive: CSS Liquid Layout #2.1- (Fixed-Fluid)</title> | |
| <style type="text/css"> | |
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
| <div class="overlay" tabindex="-1"></div> | |
| .overlay { | |
| @include opacity (70, .70); // enabled | |
| z-index:998; // enabled | |
| z-index: -1; | |
| position: fixed; | |
| left: 0; | |
| top: 0; | |
| width: 100%; |
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
| /* | |
| Content Toggler | |
| Show/hides content as specified in the target elements by data attribute | |
| 5/21/14 ~BV | |
| The target elements must have the attribute "toggler" with a value | |
| that is the selector of the content you want to show/hide when | |
| the trigger is clicked. | |
| Markup example: |