Skip to content

Instantly share code, notes, and snippets.

View lindsaycarbonell's full-sized avatar
💛

Lindsay Carbonell lindsaycarbonell

💛
View GitHub Profile
@lindsaycarbonell
lindsaycarbonell / all.csv
Created May 26, 2017 23:47
A d3 stacked bar chart -- horizontal!
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 43 columns, instead of 5. in line 2.
School_Year,Busbreakdown_ID,Run_Type,Bus_No,Route_Number,Reason,Schools_Serviced,count,first_opt,second_opt,third_opt,Occurred_On,Created_On,Boro,Bus_Company_Name,How_Long_Delayed,Number_Of_Students_On_The_Bus,Has_Contractor_Notified_Schools,Has_Contractor_Notified_Parents,Have_You_Alerted_OPT,Informed_On,Incident_Number,Last_Updated_On,Breakdown_or_Running_Late,School_Age_or_PreK,_opt_code,OPT_Code,Name,Affiliation,Site_Type,Street_Address,City,State,Zip,Longitude,Latitude,Door_To_Door_Service,Stop_To_School_Service,Common_Carrier_Svc_Metrocards,Site_Reimbursement,Mid_Day_Service,D2D_Late_Day_Programs,S2S_Late_Day_Programs
2016-2017,1256927,Special Ed AM Run,185,K440,Other,1343301346113800,16,13433,01346,11380,12/12/16 7:56,12/12/16 7:57,Manhattan,LEESEL TRANSP CORP (B2192,20,4,Yes,Yes,No,12/12/16 7:57,,12/12/16 7:57,Running Late,School-Age,13433,13433,P369K @ HB 69,Public,School,283 ADAMS STREET,Brooklyn,NY,11201,-73.9885060000,40.6949210000,Yes,No,Yes,No,Yes,No,No
2015-2016,1256927,Special Ed AM Run,185,K4
@lindsaycarbonell
lindsaycarbonell / instructions
Created October 18, 2017 03:45
A Zapier Zap for Emailing About Conferences
1. Trigger: Liked Tweet
2. Filter: Only Continue If...Entities Hashtags Exists
3. Create Trello List (OPTIONAL)
3a. Put on a Board to collect conference tweets you send out
3b. In Name, put {{ Entities Hashtag }}: {{ URL }}
4. Gmail: Create Draft
4a. Subject: You should follow this conference: {{ Entities Hashtag }}
4b. Body: Here's a conference I think you might like to follow: {{ URL }}
{
"data": [
"B17-15850",
"5",
"WELFARE CHK ",
"911 LINE",
"4/25/17",
"13:01",
"YES",
"NO",
@lindsaycarbonell
lindsaycarbonell / scraper.py
Created November 21, 2017 19:48
Race/Gender NCDPI Scraper
import requests
import http.cookiejar, urllib.request
import pandas as pd
import webbrowser
from bs4 import BeautifulSoup
url = "http://apps.schools.nc.gov/ords/f?p=1:220:1214343525970901::NO::P220_SELECTLEA:920"
response = requests.get(url)
html = response.content
var request = require("request"),
fs = require("fs"),
cheerio = require("cheerio"),
json2csv = require("json2csv"),
url = "https://www.wilkescc.edu/about-us/directory/?letter=";
var alpha = [
"A",
"B",
"C",
@lindsaycarbonell
lindsaycarbonell / README.md
Last active March 8, 2021 18:49
kata: vowel count

Return the number (count) of vowels in the given string.

We will consider a, e, i, o, and u as vowels for this Kata.

The input string will only consist of lower case letters and/or spaces.

@lindsaycarbonell
lindsaycarbonell / instructions.md
Created February 14, 2019 21:03
kata: make the deadfish swim

Write a simple parser that will parse and run Deadfish.

Deadfish has 4 commands, each 1 character long:

i increments the value (initially 0) d decrements the value s squares the value o outputs the value into the return array Invalid characters should be ignored.

@lindsaycarbonell
lindsaycarbonell / README.md
Created February 14, 2019 21:28
kata: Jaden Casing Strings

Jaden Smith, the son of Will Smith, is the star of films such as The Karate Kid (2010) and After Earth (2013). Jaden is also known for some of his philosophy that he delivers via Twitter. When writing on Twitter, he is known for almost always capitalizing every word.

Your task is to convert strings to how they would be written by Jaden Smith. The strings are actual quotes from Jaden Smith, but they are not capitalized in the same way he originally typed them.

Example:

Not Jaden-Cased: "How can mirrors be real if our eyes aren't real" Jaden-Cased: "How Can Mirrors Be Real If Our Eyes Aren't Real"

@lindsaycarbonell
lindsaycarbonell / index.html
Last active March 31, 2020 22:05
Collapsible menu demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Collapsible Menu Demo</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
@lindsaycarbonell
lindsaycarbonell / index.html
Last active April 21, 2020 23:36
MEJO 187 JS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JavaScript Practice</title>
<script src="js/main.js" type="text/javascript"></script>
<style>
/* css here*/
</style>