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
@mixin truncate($width){ | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
width: $width; | |
} |
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://php.net/manual/en/function.setcookie.php | |
// functions.php | |
function set_newuser_cookie() { | |
if (!isset($_COOKIE['sitename_newvisitor'])) { | |
setcookie('sitename_newvisitor', 1, time()+1209600, '/', 'example.com', false); | |
} | |
} | |
add_action( 'init', 'set_newuser_cookie'); |
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
<!-- Add to HTML --> | |
<canvas id="myChart" width="400" height="400"></canvas> | |
<script> | |
// JSON Data Object | |
var data = [ | |
{label: 'Example Item 1', value: 3.0, color: '#21280b'}, | |
{label: 'Example Item 2', value: 0.18, color: '#374213'}, | |
{label: 'Example Item 3', value: 1.96, color: '#4d5d1b'}, | |
{label: 'Example Item 4', value: 0.01, color: '#627722'} |
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
= link_to icon('icon-name'), '#', :class => 'class-name', :data => {'name' => 'value'} |
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
= link_to image_tag("imageName.png", :alt => 'Image Name', :class => 'class-name'), '#myModal', :data => {:toggle => 'modal'} | |
#myModal.modal.fade | |
.modal-dialog | |
.modal-content | |
.modal-header | |
%button.close{:data => {:dismiss => 'modal'}, :aria => {:hidden => 'true'}} | |
× | |
%h4.modal-title | |
Title |
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
@mixin background-size($background-size) { | |
-webkit-background-size: $background-size; | |
-moz-background-size: $background-size; | |
-o-background-size: $background-size; | |
background-size: $background-size; | |
} |
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(d, t) { | |
var g = d.createElement(t), | |
s = d.getElementsByTagName(t)[0]; | |
g.src = '//third-party.com/resource.js'; | |
s.parentNode.insertBefore(g, s); | |
}(document, 'script')); |
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> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> | |
<meta name="description" content=""> |
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
(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$ |
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
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).*$ |