Skip to content

Instantly share code, notes, and snippets.

@lizkaraffa
lizkaraffa / index.html
Created November 4, 2013 23:45
Add the appropriate CSS within the same media query that will force the “love at first bite” illustration to disappear. I added lines 67-69 in styles.css.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css" type="text/css">
<link href="//fonts.googleapis.com/css?family=Nunito:400,300,700" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container">
<div id="intro">
<div class="grid_4">
@lizkaraffa
lizkaraffa / gist:8330140
Last active January 2, 2016 16:29
Here is the challenge: Sort the 'saying2' array, on about line 19, so that the words are listed in length order. The shortest first. Use the 'length' property on the strings in the sort function. So I did it and then this is the error message they're giving me: Bummer! The 'saying2' was 'The,quick,brown,fox,jumped,over,the,lazy,dog's,back' not '…
<!DOCTYPE html>
<html lang="en">
<head>
<title> JavaScript Foundations: Arrays</title>
<style>
html {
background: #FAFAFA;
font-family: sans-serif;
}
</style>
@lizkaraffa
lizkaraffa / gist:8467936
Created January 17, 2014 03:30
I've been studying jQuery from two different sources and I understand the longer syntax structure of source A but I want to get familiar with how to chain things like in source B.
//Source A shows this syntax as the proper way to write all jQuery code.
$(document.ready(function(){
$('thingToInteractWith').event(function(){
$('thingToAffect').effect();
});
});
//Another example below
@lizkaraffa
lizkaraffa / orginal-home.php
Created January 12, 2016 18:12
Original template file before my changes.
<?php $pageOne = get_theme_mod( 'page_one', '2' ); $pageTwo = get_theme_mod( 'page_two', '2' ); $pageThree = get_theme_mod( 'page_three', '2' ); ?>
<?php if ( 'false' == ( $pageOne ) || '' != ( $pageOne ) && 'false' == ( $pageTwo ) || '' != ( $pageTwo ) && 'false' == ( $pageThree ) || '' != ( $pageThree ) ) { ?>
<!-- BEGIN .row -->
<div class="row featured-pages">
<!-- BEGIN .content -->
<div class="content">
<!-- BEGIN .sixteen columns -->
@lizkaraffa
lizkaraffa / gist:5cece180358709df1c2b
Created January 12, 2016 18:13
Changed home template to include programs
<?php $pageOne = get_theme_mod( 'page_one', '2' ); $pageTwo = get_theme_mod( 'page_two', '2' ); $pageThree = get_theme_mod( 'page_three', '2' ); ?>
<?php if ( 'false' == ( $pageOne ) || '' != ( $pageOne ) && 'false' == ( $pageTwo ) || '' != ( $pageTwo ) && 'false' == ( $pageThree ) || '' != ( $pageThree ) ) { ?>
<!-- BEGIN .row -->
<div class="row featured-pages">
<!-- BEGIN .content -->
<div class="content">
<!-- BEGIN .sixteen columns -->
<?php
/**
* Plugin Name: GreekBank Functionality
* Plugin URI: http://zao.is
* Description: Adds all necessary functionality for GreekBank
* Version: 1.0
* Author: Justin Sainton
* Author URI: http://zao.is
*/
<?php
/**
* The template for displaying product widget entries
*
* This template can be overridden by copying it to yourtheme/woocommerce/content-widget-product.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Grid of products.
*
* @author WooThemes
* @category Widgets
* @package WooCommerce/Widgets
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Grid of products.
*
* @author WooThemes
* @category Widgets
@lizkaraffa
lizkaraffa / css.php
Created May 26, 2016 18:20
Before merge conflict fixed
<?php
add_action( 'wp_enqueue_scripts' , '_wpsc_te2_enqueue_styles', 1 );
function _wpsc_te2_enqueue_styles() {
wp_register_style( 'wpsc-common', wpsc_locate_asset_uri( 'css/common.css' ), array(), WPSC_VERSION );
do_action( 'wpsc_register_styles' );
wp_enqueue_style( 'wpsc-common' );