Skip to content

Instantly share code, notes, and snippets.

View ryanorsinger's full-sized avatar
🎏
Reading the readme... again :)

Ryan Orsinger ryanorsinger

🎏
Reading the readme... again :)
View GitHub Profile
@ryanorsinger
ryanorsinger / assessment.php
Created July 21, 2017 03:01
PHP Assessment tests
<?php
class PHPAssessmentTests extends PHPUnit_Framework_TestCase
{
public function test_is_negative()
{
$this->assertTrue(
function_exists('isNegative'),
"Expected isNegative() function to be present.");
@ryanorsinger
ryanorsinger / instructions.md
Created July 26, 2017 03:43
php unit tests for library.php exercise

Make your own PHP library of helpful functions!

Step 1. Make a file called library.php

Write a function called isEven that takes in a variable and returns true or false if the provided input is evenly divisible by two or not.

Write a function called isVowel that returns true or false if the provided input is the letter 'a', 'e', 'i', 'o', or 'u'

Write a function called "first" that takes in an argument that could be an array or a string. Return the first character if the argument is a string. Return the first element of the array if the input is an array.

@ryanorsinger
ryanorsinger / keybase.md
Created October 5, 2017 02:56
keybase.md

Keybase proof

I hereby claim:

  • I am ryanorsinger on github.
  • I am ryanorsinger (https://keybase.io/ryanorsinger) on keybase.
  • I have a public key ASD_JOrODBHHST5uDaDicIXMEbwz_uRCRp6DS7kS5FfvuQo

To claim this, I am signing this object:

@ryanorsinger
ryanorsinger / howToGetStarted.txt
Created October 24, 2017 20:46
How to start a programming exercise
"How to get started on a Codeup exercise"
1. With intent, read the curriculum and the code examples
2. Go back and read the example code very closely, slowly, and deliberately.
3. Copy that code into your editor.
- Identify the pieces of syntax that you recognize.
@ryanorsinger
ryanorsinger / gist:d112be5ada7ef2eefe9959a9e5aa7f9d
Last active February 25, 2018 06:18
FunctionalDrills.md
@ryanorsinger
ryanorsinger / book-club.md
Created May 21, 2018 17:46
"Structure and Interpretation of Computer Programs" Book Club
@ryanorsinger
ryanorsinger / checkout-all-branches.sh
Created October 29, 2018 14:06
git checkout-all-branches
#!/bin/bash
#Whenever you clone a repo, you do not clone all of its branches by default.
#If you wish to do so, use the following script:
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master `; do
git branch --track ${branch#remotes/origin/} $branch
done
@ryanorsinger
ryanorsinger / intro.md
Created November 2, 2018 16:54
TDD JUnit Intro

First Steps into Test Driven Development

What are we doing and why?

We'll be

Starting a TDD Project in IntelliJ

Open IntelliJ Choose "New Project"

@ryanorsinger
ryanorsinger / intro.md
Created November 7, 2018 15:35
Intro to git

Intro to Git

Version control system (resume.pdf, resumeFINAL.pdf) - permanent record (series of commits) - time machine (ability to checkout a commit) - parallel universes (branches)

Key Vocabulary Terms

  • repository: a regular ol' directory where you've done "git init" or "git clone"