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="container"> | |
<section class="editorWrap"> | |
<h1 class="animate dropIn">Text Editor Shell</h1> | |
<div class="editor animate fadeIn"> | |
<div class="menu"></div><!-- end .menu --> | |
<div class="code"> |
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
$(function($){ | |
$('a').on('click', function(e){ | |
var $anchor = $(this).attr("href"); | |
var $hrefStart = $anchor.substr(0, 1); | |
if ( $hrefStart == "#" ) { | |
$('html,body').animate({ | |
scrollTop: $($anchor).offset().top | |
}, 1500, 'easeInOutExpo'); |
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
<script> | |
$(document).ready(function(){ | |
// global vars | |
var header = $('.header'); | |
var HeaderWrap = $('.header-inner'); | |
var windowScroll; | |
$(window).scroll(function(){ | |
headingParallax(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script src="jquery.ketchup.all.min.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<div id="email"> | |
<span>Enter your email to sign up</span> | |
<form action="/subscribe.php" id="invite" method="POST"> |
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
INSERT HTML RIGHT AFTER OPENING <body> TAG | |
<!-- responsive indicator --> | |
<aside id="responsive_size"></aside> | |
INSERT CSS AT BOTTOM OF CSS FILE ( or anywhere else you'd like, I like to put it at the bottom just so I don't forget to take it out after development. ) |
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
{exp:query sql=" | |
SELECT count(*) AS num_members | |
FROM exp_members m | |
JOIN exp_channel_titles t on t.author_id = m.member_id | |
Where channel_id='CHANNEL_ID_HERE'"} | |
{num_members} | |
{/exp:query} |
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
@function em($target, $context: $base-font-size){ | |
@if ($target == 0) { | |
@return 0; | |
} | |
@else { | |
@return #{$target / $context}em; | |
} | |
} |
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
// first things first, create a file called "config" in ~/.ssh/ from the command line | |
cd ~/.ssh/ | |
nano config | |
// secondly, create the Host shortcut | |
Host myCoolServer | |
HostName www.myserver.com <can be server name or ip address> | |
Port 90 <you may have changed the port to prevent from brute attacks. Good for you, :) > | |
User myUser <you may have also prevented root from logging in directly, list which user you are using for login.> |
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
// check if device is handheld device | |
var isHandheldDevice = /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ? true : false; |
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
// vars | |
var birthday = '08/09/1988'; | |
var d = new Date(); | |
var month = d.getMonth()+1; | |
var day = d.getDate(); | |
// double digit month | |
((''+month).length<2 ? '0' : '') + month | |
// double digit day | |
((''+day).length<2 ? '0' : '') + day |
OlderNewer