Skip to content

Instantly share code, notes, and snippets.

Susan Buck susanBuck

Block or report user

Report or block susanBuck

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View example-for-phil.php
<?php
getAlbum(Array $albums, Int $year, String $searchType) {
$results = [];
# Filter album list according to year
foreach ($albums as $key => $album) {
$match = $year == $album['year'];
if ($match) {
$results[$album['position'] . '-' . $album[$searchType]] = $album;
}
}
@susanBuck
susanBuck / katie.html
Created Mar 28, 2019
Example for Katie
View katie.html
<picture>
<!--
The 1x and 2x images are the same
I think it's serving the 2x image and because it assumes it's 2x, it's squeezing it to 400
Hook.jpg?itok=91w8zfuB is 800x600
-->
<source srcset="http://www.howdoiwebdesign.com/sites/default/files/styles/article_large/public/inline-images/Hook.jpg?itok=91w8zfuB 1x, http://www.howdoiwebdesign.com/sites/default/files/styles/article_large/public/inline-images/Hook.jpg?itok=91w8zfuB 2x" media="(min-width: 1200px)" type="image/jpeg">
<!-- This source uses the same image as the above source - redundant? -->
<source srcset="http://www.howdoiwebdesign.com/sites/default/files/styles/article_large/public/inline-images/Hook.jpg?itok=91w8zfuB 1x, http://www.howdoiwebdesign.com/sites/default/files/styles/article_large/public/inline-images/Hook.jpg?itok=91w8zfuB 2x" media="(min-width: 768px)" type="image/jpeg">
View notes-for-eric.md

Confirmed /home route does not work

Ran php artisan route:list

Got error Class App\Http\Controllers\ProductsController does not exist

Confirmed file ProductsController does not actually exist

Searched for references to ProductsController in code base

View question-5.php
<?php
class Car {
public $make;
public $model;
public $color;
public function __construct($make, $model, $color) {
$this->make = $make;
$this->model = $model;
View markdown-cleanup.md
  1. "C-Y-D" (Choose Your Dyes) dropdown menu
    • Select dyes from 4 drop-down menus to:
      • Color four components, 'face', 'nose', 'lips', and 'eyes', upon submit.
      • Frame inputs (2) and (3) upon submit.
    • Default "none"
    • Form validations inc:
      • Will not submit when all values are "none" (error code: err-src cydn).
      • Will not submit when 'nose', 'lips' or 'eyes' values equal the 'face' value (error code err-src cydm).
  2. "L-S-N-" (learn Something New) radio buttons
    • Click input from 4 categories to retrieve information for 'type', 'name', 'color', 'geography'.
@susanBuck
susanBuck / p3-peer-review-template.md
Last active Oct 2, 2018
P3 Peer Review Template
View p3-peer-review-template.md

P3 Peer Review

Answer the following questions in regards to the student's project you are reviewing. REMOVE THE INSTRUCTIONS FOR EACH PROMPT when complete. We should only see YOUR ANSWERS.

1. Interface

Address as many of the following points as applicable:

View Geography.php
<?php
class Geography {
public $countries;
public function __construct() {
# Define country code/names
$this->countries = [
@susanBuck
susanBuck / stem-talk.md
Last active Apr 27, 2018
Introduction to server-side web programming - Harvard Extension Student STEM Group
View stem-talk.md
@susanBuck
susanBuck / README.md
Last active Apr 16, 2019
Project 4 README.md template
View README.md

Project 4

Feature summary

Outline a summary of features that your application has. The following details are from a hypothetical project called "Movie Tracker". Note that it is similar to Foobooks, yet it has its own unique features. Delete this example and replace with your own feature summary

  • Visitors can register/log in
  • Users can add/update/delete movies in their collection (title, release date, director, writer, summary, category)
  • There's a file uploader that's used to upload post images for each movie
View janetsmithart.txt
<p style="text-align: left;">This project began with a collection of paper scraps and early morning light. (Note: Please excuse the appearance of this gallery. It is still under construction.)</p>
[caption id="attachment_858" align="alignleft" width="150"]<img class="size-thumbnail wp-image-858" src="http://www.janetsmithart.com/wp-content/uploads/2018/02/JSmith-EarlyLight-9-WW_1020184-150x150.jpg" alt="Early Light #9" width="150" height="150" /> Early Light #9[/caption]
[caption id="attachment_857" align="alignleft" width="150"]<img class="size-thumbnail wp-image-857" src="http://www.janetsmithart.com/wp-content/uploads/2018/02/JSmith-EarlyLight-8-WW_1020180-150x150.jpg" alt="Early Light #8" width="150" height="150" /> Early Light #8[/caption]
[caption id="attachment_856" align="alignleft" width="150"]<img class="size-thumbnail wp-image-856" src="http://www.janetsmithart.com/wp-content/uploads/2018/02/JSmith-EarlyLight-7-WW_1020313-150x150.jpg" alt="Early Light #7" width="150" height="150" /> Early Light
You can’t perform that action at this time.