Skip to content

Instantly share code, notes, and snippets.

View jendiamond's full-sized avatar
🏠
Working from home

JenDiamond jendiamond

🏠
Working from home
View GitHub Profile
@jendiamond
jendiamond / gist:6128723
Last active April 11, 2024 11:35
Creating your own Gem & Command Line Interface Using Bundler

Presentation slides

Create a Gem - Make it a CLI - Add Rspec Tests

Create a Gem - Make it a Command Line Interface - Add Rspec Tests Using Bundler & Thor

#Creating your own Gem

  1. Run this command in your Terminal. This creates and names all the files you need for your gem. We are going to create a Lorem Ipsum Generator; you can call it whatever you want but seeing as we are creating a Lorem Ipsum generator we'll call it lorem. Read about gem naming conventions.
@jendiamond
jendiamond / python_chapter_4_notes.md
Last active November 25, 2023 15:47
Python Chapter 4 Notes

Starting Out with Python 3rd Edition - Tony Gaddis

Chapter 4

repetition structure - a loop - write code once put it in a structure that repeats as many times as necessary

condition controlled loop - while loop - uses a true false condition

while loop (pre-test loop) condition controlled loop - uses a true false condition

@jendiamond
jendiamond / Python_3rd_Edition_Tony Gaddis_Notes_2-6.md
Last active September 15, 2023 10:48
Starting Out with Python 3rd Edition - Tony Gaddis Chapters 2-6

Starting Out with Python 3rd Edition Chapters 2-6 - Tony Gaddis

Chapter 2 & 3

conditionally executed -
block - statements in a group
George Boole - 1800's mathematician
string - a sequence of characters used as data
string literal - a string in the code
numeric literal - a number in the code

@jendiamond
jendiamond / Python_3rd_Edition_Tony Gaddis_Notes_7-13.md
Last active September 15, 2023 10:48
Starting Out with Python 3rd Edition - Tony Gaddis Chapters 7-13

Starting Out with Python 3rd Edition Chapters 7-13 - Tony Gaddis

Chapter 7

Sequences

sequence - a sequence is an object that holds data, stored one after another. You can perform operations on a sequence to examine and manipulate the items stored in it.

A list is a sequence and a tuple is a sequence.

@jendiamond
jendiamond / Java_4th_Edition_Tony Gaddis_Notes.md
Last active August 24, 2022 22:01
Starting Out with Java 4th Edition - Tony Gaddis

Starting Out with Java 4th Edition - Tony Gaddis

Primitive data types - you use these data types to create variables which are storage locations in the computer's memory - they have no other built in capability other than storing a value.
byte short int long char float double boolean

Chapter 4

Increment & Decrement

postfix mode - number++;

{
"mainStoryData": {
"title": "After Covid Triggered a Campus Closure, UCLA Library Reimagined Its Services for Students and Faculty Scattered Across the Country and Globe",
"description": "Undergraduates reflect on successfully completing their research projects while learning remotely.",
"buttonText": "Read full story",
"asset": "ucla-impact-report-animation.mp4",
"link": "/impact/main-story",
"altText": "Animated line-art sequence, starting with a female sitting in bedroom looking at a laptop computer. Transitions to yellow light eminating from laptop screen and revealing a library reading room."
},
"timelineGallery": [
@jendiamond
jendiamond / 1railsgirlsla_part1_tutorial.md
Last active January 10, 2022 05:43
Rails Girls LA Guide
@jendiamond
jendiamond / a1_Amalgamated_Samvera.md
Last active November 9, 2021 20:28
Amalgamated Samvera backup
@jendiamond
jendiamond / squash_commits_in_git.md
Last active February 23, 2021 23:12
Week 6 Day 29