Skip to content

Instantly share code, notes, and snippets.

View icemancast's full-sized avatar

Isaac Castillo icemancast

View GitHub Profile
function get_testimonies($count = 4) {
$args = array(
'post_type' => 'codeup-testimonies',
'post_status' => 'publish',
'posts_per_page' => $count,
'orderby' => 'rand'
);
$loop = new WP_Query( $args );
@icemancast
icemancast / gist:9fdb64c9fc1eb4e7b225
Created January 25, 2016 21:06
loop through selection
<select id="group-categories" name="group-categories" multiple class="form-control">
@foreach($categories as $id => $category)
@if($category == $group->category)
<option value="{{ $id }}" selected>{{ $category }}</option>
@else
<option value="{{ $id }}">{{ $category }}</option>
@endif
@endforeach
</select>
  • User Stories
  • Interface Mockups
  • Schema Design
  • Migrations
  • Seeders
  • Models
  • Model Relationships
  • Model Validation Rules
  • Master Template
  • Login Views, Routes, Actions, & Hashing
<!DOCTYPE html>
<html>
<head>
<title>Template</title>
<link rel="stylesheet" href="/assets/css/normalize.css">
<link rel="stylesheet" href="/assets/css/style.css">
</head>
<body>
<div class="container">

Assignments

Write a loop that will display the song "99 Bottles of Beer on the wall";

For Loop

Write a for loop that will iterate from 0 to 10. For each iteration of the for loop, it will multiply the number by 9 and log the result (e.g. "2 * 9 = 18").

for(var i = 9; i &lt;= 10; i++) {
@icemancast
icemancast / test.md
Last active September 28, 2015 14:07

Bower Installation and usage

Install Nodejs

Instal bower

$ npm install -g bower

Create test directory

Additional Ideas

  1. Tags to blog posts
  2. Markdown editor
  3. Categories for posts
  4. Related posts by category
  5. Make sure your portfolio and other projects on online
  6. Whack-A-Mole
  7. Google Maps
  8. Simon Says
Final project (choose your own adventure)
Everyone must have personal portfolio/resume
and any of the following…
re-design
game
choice
Submit 2-3 ideas you may have via email instructors@codeup.com
@icemancast
icemancast / sass-instructions.md
Last active September 2, 2015 04:13
Sass Outline

Sass (Syntactically Awesome StyleSheets)

Sass is a way to extend the functionality of css by adding the ability to use variables, nested rules, mixins and inline imports. You can also organize your style sheets in a better way and manage them easier.

Sass Documentation Reference

With Sass you have a simple command you run that will view the contents of a css file (with scss extension example.scss). It will then do the necessary changes according to variables and mixins that you have and then you get a final css output of that file. So Sass compiles all the scss content and gets you a final css file that your website will be linked to.

Install Sass