Skip to content

Instantly share code, notes, and snippets.

View ltw's full-sized avatar

Lucas Willett ltw

View GitHub Profile
@ltw
ltw / gh_script.rb
Created January 28, 2016 02:58
A script to check GitHub's status.
require 'json'
require 'net/http'
status = nil
until status == 'good'
url = URI('https://status.github.com/api/status.json')
response = Net::HTTP.get(url)
body = JSON.parse(response)
p body
status = body['status']
@ltw
ltw / task_list.rb
Last active May 26, 2017 16:35 — forked from gmmowry/task_list.rb
# Today we'll be creating a Task List for an individual
# who has a lot of errands and tasks to complete and multiple
# locations or stores to go to in order to complete them.
# Create a class for a Task List.
# All TaskList instances should have an owner and a dute date
# passed in on creation. For instance, our owner could be "Tyler"
# and his due date would be "Sunday". The owner should not be
# changeable but you should be able to read it outside of the class.
@ltw
ltw / 04_wk8_review.md
Last active September 10, 2017 22:18
DBootcampC

Week 8: Review and Reflect

This is a week to handle final grading and remediation, and also to catch up on prior week's exercises. Please revisit and complete:

  • Week 7: React - complete the tutorials
  • Week 5: Data Structures - please complete any structures you didn't get to
  • Week 3: Algorithms - choose another sorting algorithm and implement it
  • Self-study with JavaScript - either front-end frameworks, node development, or functional JavaScript
@ltw
ltw / slack-pagerduty-oncall.py
Created August 17, 2022 17:36 — forked from markddavidoff/slack-pagerduty-oncall.py
Updates a Slack User Group with People that are on call in PagerDuty
#!/usr/bin/env python
from __future__ import print_function
import json
import logging
from urllib2 import Request, urlopen, URLError, HTTPError
from base64 import b64decode