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 | |
if ( | |
!in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')) | |
&& !is_admin() | |
&& !is_user_logged_in() | |
) { | |
wp_redirect( 'http://other-temp-site.com/', 302 ); exit; | |
} |
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
<div class="player"> | |
<button class="button-play ion-stop"> | |
<div class="play-crop" data-anim="play-base play-crop"> | |
<div class="play-circle" data-anim="play-base play-left"></div> | |
<div class="play-circle" data-anim="play-base play-right"></div> | |
</div> | |
</button> | |
</div> |
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
// Animation: Timer | |
// ------------------------------- | |
// Sized for iPhone 6 .timer correct position should be set with JS | |
$timer-screen-width: 375px; // top: ($timer-screen-height - $timer-size) / 2; | |
$timer-screen-height: 667px;// left: ($timer-screen-width - $timer-size) / 2; | |
$timer-size: 800px; | |
$timer-opacity: .5; | |
$timer-countdown-opacity: .9; |
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
// https://css-tricks.com/snippets/css/a-guide-to-flexbox/ | |
.parent { | |
display: flex; /* or inline-flex */ | |
flex-direction: row | row-reverse | column | column-reverse; | |
flex-wrap: nowrap | wrap | wrap-reverse; | |
flex-flow: <‘flex-direction’> || <‘flex-wrap’> | |
justify-content: flex-start | flex-end | center | space-between | space-around; | |
align-items: flex-start | flex-end | center | baseline | stretch; | |
align-content: flex-start | flex-end | center | space-between | space-around | stretch; |
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 gulp = require('gulp'); | |
var browserSync = require('browser-sync'); | |
var sass = require('gulp-sass'); | |
var prefix = require('gulp-autoprefixer'); | |
var cp = require('child_process'); | |
var messages = { | |
jekyllBuild: '<span style="color: grey">Running:</span> $ jekyll build' | |
}; |
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
//http://askubuntu.com/questions/19898/whats-the-simplest-way-to-edit-and-add-files-to-var-www | |
sudo adduser <username> www-data | |
sudo chown -R www-data:www-data /var/www | |
sudo chmod -R g+rwX /var/www |
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
/* JavaScript: US currency helper functions | |
-------------------------------------------------------*/ | |
/** | |
* Formats any number, string or HTML string to a number with two trailing decimals | |
* @param {String} html Any number, string or HTML string | |
* @return {Number} Returns a number with two trailing decimals | |
*/ | |
var toCurrency = function(html) { | |
var currency = html.match(/[\d\.]+/g); |
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
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | |
<meta name="apple-mobile-web-app-title" content="360"> | |
<meta name="viewport" content="user-scalable=no"> | |
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0"> | |
<meta name="viewport" content="width=320.1"> |
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
$("a[href^='http']:not([href*='" + window.location.hostname + "'])").attr("target","_blank"); |
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
{ | |
"close_windows_when_empty": true, | |
"color_scheme": "Packages/Color Scheme - Default/Pastels on Dark.tmTheme", | |
"draw_indent_guides": false, | |
"fade_fold_buttons": false, | |
"font_face": "Monaco", | |
"font_options": | |
[ | |
"no_antialias" | |
], |
OlderNewer