Skip to content

Instantly share code, notes, and snippets.

View CCirbo's full-sized avatar

Candice Cirbo CCirbo

  • Turing School of Software & Design
View GitHub Profile
@CCirbo
CCirbo / promises.md
Created July 17, 2025 03:03 — forked from domenic/promises.md
You're Missing the Point of Promises

This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
 // the rest of your code goes here.
@CCirbo
CCirbo / Nightmare-demo.js
Created July 17, 2025 02:58 — forked from MikaelSoderstrom/Nightmare-demo.js
Testing with mocha, chai and nightmare.js
var path = require('path');
var Nightmare = require('nightmare');
var should = require('chai').should();
describe('Nightmare demo', function () {
this.timeout(15000); // Set timeout to 15 seconds, instead of the original 2 seconds
var url = 'http://localhost:3000';
describe('Start page', function () {
@CCirbo
CCirbo / vanilla-js-cheatsheet.md
Created July 17, 2025 02:58 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
@CCirbo
CCirbo / redirects-in-react-router-v6.md
Created July 17, 2025 02:50 — forked from mjackson/redirects-in-react-router-v6.md
Notes on handling redirects in React Router v6, including a detailed explanation of how this improves on what we used to do in v4/5

Redirects in React Router v6

An important part of "routing" is handling redirects. Redirects usually happen when you want to preserve an old link and send all the traffic bound for that destination to some new URL so you don't end up with broken links.

The way we recommend handling redirects has changed in React Router v6. This document explains why.

Background

In React Router v4/5 (they have the same API, you can read about why we had to bump the major version here) we had a <Redirect> component that you could use to tell the router when to automatically redirect to another URL. You might have used it like this:

React Router Prework

This gist contains a short assignment I'd like everyone to complete before our formal lesson. The prework involves reading some of the React Router documentation, and will allow us to keep the lesson more hands on.

Instructions

  1. Fork this gist
  2. On your own copy, go through the listed readings and answer associated questions

You will not be turning this in; it's for your own understanding/learning/benefit 😁

@CCirbo
CCirbo / SCSS.md
Created July 17, 2025 02:22 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@CCirbo
CCirbo / movies.txt
Created June 23, 2025 00:42 — forked from neight-allen/movies.txt
List of movies with a score from 0-100
71, Hannibal Buress: Animal Furnace
80, Hannibal Buress: Comedy Camisado
17, Meet My Valentine
55, Experimenter
75, French Dirty
11, Love
7, I Love You Phillip Morris
9, A Ballerina's Tale
67, Hellions
65, The Land Before Time XIV: Journey of the Brave
@CCirbo
CCirbo / linkedin-intros.md
Created June 22, 2025 04:04 — forked from iandouglas/linkedin-intros.md
Can an Instructor introduce me to someone at a company via LinkedIn?

LinkedIn Introductions

If you find a company where you're interested in applying for work, here are some steps you can follow to see if any of your instructors know someone at the company, or know someone who knows someone, etc.

(instructions are accurate as of late August 2020, but subject to change if LinkedIn changes their UI)

  1. Connect with your instructor via LinkedIn. (eg, https://linkedin.com/in/iandouglas736)
  2. Once connected, click on your instructor's profile.
  3. In their profile you should see how many connections they have (or just "500+ connections"). Click on that as a link. (it won't be a clickable link until you're directly connected with your instructor)
  4. Click on the "Current companies" dropdown at the top, and type in the name of the company and click Apply.
@CCirbo
CCirbo / se2_intermission_work.md
Created June 22, 2025 03:56 — forked from abdulredd/se2_intermission_work.md
B2 Intermission Work Submission

SE2 Intermission Work

Answer these Check for Understanding questions as you work through the assignments.

HTML

  1. What is HTML?
  2. What is an HTML element?
  3. What is an HTML attribute?
  4. What is the difference between a class and an id? When would you use one vs. the other?

DOM Manipulation Practice

💻 Set Up

Fork this CodePen.

📍 Goal

Without editing the HTML, make the site look like this: comp

👟 Steps