Skip to content

Instantly share code, notes, and snippets.

View jsullivan5's full-sized avatar

James Sullivan jsullivan5

View GitHub Profile
@jsullivan5
jsullivan5 / htmlTableToCsv.js
Last active November 7, 2022 21:41
Browser script to convert HTML tables to CSV
(function () {
/**
* @instructions
* 1. RENAME FILE_NAME TO CHANGE THE NAME OF THE EXPORT FILE
* const FILE_NAME = 'whatever_you_want.csv'
*
* 2. Open the browser console on the page you want to copy (Chrome)
* command + option + j
*
* 3. Copy and paste the entirety of this Gist to download the table

server.js

//importing express into the project
const express = require('express');

//importing body parser into the file, allows express to automatically decode request and response bodies
const bodyParser = require('body-parser');

//router is used to make modular server architectures

Mod 4 Promises Homework

James Sullivan

The goal of this assignment is to familiarize ourselves with promises by writing functions that can (and should) be written without them. The functions below each take in an array and returns a promise. makeAllCaps() capitolizes each element in an array and rejects if an element is not a string. sortWords() sorts the elements alphabetically and also rejects if an element is not a string.

const array = ['wowow', 'pants', 'bird'];
const array2 = ['wowow', 5, 'bird'];

Strengths & Storytelling Reflection Guidelines

Build on your professional story by thinking about how you're progressing at Turing. Answer the questions below in your own gist to use your StrengthsFinder themes to add to your story:

  • Look at your initial StrengthsFinder reflection that you completed in week 1 -- how have your perceptions of the top 5 themes changed?

    While I have to some degree been aware of these stregnths, having them in the forefront of my mind has been interesting. I have found myself more willing to try new things and rethink my approach in my code. I have come to see my strengths not as an ambiguous thing I can do well, but as a piece of me that can grow when acknowledeged and actively used.

  • How are you different today than when you first started at Turing? Where are you stronger now than on day 1?

Template for DTR Memo

Project:

Group Member Names: James Sullivan, Jason Lucas

Project Expectations: What does each group member hope to get out of this project?

I would like to focus on JavaScript and my fundamental understanding of it. I would also like to come away with an understanding

CSS Layout Challenge

Challenge 1

I created three divs and styled them into black boxes. I then floated two of them right. I reversed the order of div one and two to reflect the comp. I then gave div two a margin right vlaue of 5px to reflect the comp.

Challenge 2

I again created three divs and styled them into black boxes. I knew as block elements they would naturally stack vertically. I centered div 2 by using margin: auto. I floated div three to the right.

Directions: Copy this template into your own gist.

Strengths Reflection & Coaching Request

Read Through Your Theme Definitions

  1. What words or phrases stick out to you? How would you define each of your top 5 talents in your own words?

  2. Strategic - This perspective allows you to see patterns where others simply see complexity.

@jsullivan5
jsullivan5 / JamesSullivan_ProDev.md
Created March 3, 2017 21:04
Professional Development Pre-Work

Professional Development Questions

by James Sullivan

  1. Several points in the twenty nine list jumped out at me. First, saying I don't know resonated with me. I imagine I will be saying this a lot while learning a new skill. It takes courage to reach out for help sometimes and I need to remember that it will benefit me in the long run to directly address things I don't know. Secondly, I identified with understanding code is cheap. Perceived time investments coupled with a sub optimal approach can be counter productive. I need to rememeber that I am truly invested in learning how to code well. This may mean having a willingness to scrap some bad habits for better ones, even if it means more time. Lastly, I must take responibility for my mistakes. In a team environment, holding myself accountable will not only benefit the team dynamic, but can turn mistakes into valuable learning opportunites.

  2. After reading the article, I see that checklists can benefit everyone, even experts with vast exp

@jsullivan5
jsullivan5 / JamesSullivan_Prework.md
Last active March 9, 2017 21:08
Turing Prework

Prework for Front-End Development 1703

Day 1

Chapters 1 & 2

  1. On a website, what is the purpose of HTML code?

    HTML describes the structure and worded content of pages on the web. It provides hierarchy to information on a page that makes it easier to understand. Similar to a newspaper, HTML code structures information in