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"> | |
<title></title> | |
<meta http-equiv="X-UA-Compatible" content="chrome=1"> | |
<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
html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote, | |
pre, form, fieldset, table, th, td | |
{ | |
margin: 0; | |
padding: 0; | |
border: 0; | |
box-sizing: border-box; | |
} |
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 | |
$first_query = new WP_Query('cat=7&showposts=3'); | |
while($first_query->have_posts()) : $first_query->the_post(); | |
the_excerpt(); | |
endwhile; | |
//Add next and previous links after query | |
next_posts_link('« Older Entries'); | |
previous_posts_link('Newer Entries »'); |
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 // The WordPress Loop | |
if (have_posts()) : while (have_posts()) : the_post(); | |
... | |
endwhile; else: | |
.. | |
endif; ?> |
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 // The WordPress Loop - customized with query_posts | |
query_posts('cat=-9'); // exclude Asides category (tag_ID = 9) | |
if (have_posts()) : while (have_posts()) : the_post(); | |
... | |
endwhile; else: | |
... | |
endif; | |
?> |
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
//***************** Useful Command Line Commands ***********// | |
MAC PC | |
Ctrl(Control) + a -------- Move to the beggining of the current command | |
Ctrl(Control) + e -------- Move to the end of the current command | |
echo ~ -------- print out our home directory | |
clear -------- cleans out your terminal of all previous commands |
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
Ruby on Rails Useful Commands | |
//Make sure you have ruby installed to be able to run these commands | |
gem install rails -------- This installs rails for you | |
gem install rails-api -------- This installs rails api gem for creating a restful api oriented app | |
rails new appName -------- Creates a new rails application in the | |
folder with the same name as the app |
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
/*Note that this is not regular css, we are using scss*/ | |
.logo-image{ | |
/*Put easing and time duration here*/ | |
-webkit-transition: all 0.5s ease-in-out; | |
-moz-transition: all 0.5s ease-in-out; | |
-o-transition: all 0.5s ease-in-out; | |
-ms-transition: all 0.5s ease-in-out; | |
&:hover{ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Redirect::route('route_name', options) //redirects you to a named route with options as an array |
OlderNewer