This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"id": "llama_intro_class_01", | |
"metadata": {}, | |
"source": [ | |
"# 🛠️ Workshop: Classifying QA Bug Tickets with Llama Models\n", | |
"\n", | |
"## Goals (1 Hour):\n", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Card Game</title> | |
<style> | |
#cards-container { | |
display: flex; | |
justify-content: space-around; | |
margin-top: 50px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On May 24, 2007, David Price stepped to the mound in Hoover, Alabama, to keep his Vanderbilt Commodores -- the #1 team in the land that year -- from being eliminated from the SEC baseball tournament on the second day. Coming off a surprising 6-4 loss on the tournament’s first day, the ‘dores looked to Price, soon to be named college baseball’s player of the year, to keep their season alive. Price answered the bell, spinning six perfect innings at Mississippi State and finishing with a five-hitter in a 3-2 Vandy win. | |
A week later, Price opened Vandy’s College World Series at the Nashville Regional, going nine innings of one-run ball, only to see his teammates held to a single tally themselves. Vandy would go on to win the game in 11 innings. Three days later, Price came out of the bullpen in the ninth to keep the elimination game tied, before yielding the game-winning homer in the tenth. | |
A year later, he was facing bigger tests. Fourteen months after being taken with the first overall pick in the 2007 draft |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="hidden" name="name_key" value="caller_name"> | |
<input type="hidden" name="primary_address_key" value="best_callback_number"> | |
<input type="hidden" name="form_id" value=""> | |
<div class="form-group "> | |
<div class="col-xs-12"> | |
<input class="form-control" name="caller_name" type="input" required="" placeholder="* Caller Name"> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a mess because Hanjin's top management was in denial about the possibility of bankruptcy. Just like the typical startup. They've been trying for months to get a bailout deal from somebody, anybody - a merger, loans, their parent chaebol, their stockholders (Korean Air is the largest), or the S. Korean government. Everybody turned them down. There's too much container ship capacity right now; nobody needed Hanjin's fleet. | |
Management didn't have a plan for an orderly shutdown, so when the company went into receivership, everything just stopped. Just like many failing startups, the web site continued to indicate nothing was wrong. They've now put up a spreadsheet with current vessel status, but that took weeks. The status has entries such as "Arrested", "Unpaid Canal Fee (Suez)", "Arrested by Bunker Supply Co. (Panama Canal)", and "Port labor rejected" (they're way behind on their payments)". There are about 500,000 containers stuck with Hanjin. | |
Admiralty law is especially harsh on bankrupt shipowners. I |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Site name": {"type": "String"}, | |
"Address": {"type": "String"}, | |
"Zip": {"type": "Custom", | |
"comparator" : sameOrNotComparator, | |
"Has Missing" : True}, | |
"Phone": {"type": "String", "Has Missing" : True}, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# by @raben on S.O. | |
# borrowed from http://stackoverflow.com/questions/13809650/using-grequests-to-send-a-pool-of-requests-how-can-i-get-the-response-time-of-e | |
import gevent.monkey | |
gevent.monkey.patch_socket() | |
from gevent.pool import Pool | |
import requests | |
def check_urls(urls): | |
def fetch(url): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from lxml import html | |
import re | |
from lxml import etree | |
from collections import defaultdict | |
page = html.parse('http://officialblog.yelp.com/2014/02/yelp-data-reveals-top-100-places-to-eat-bookmark-these-babies-now.html').getroot() | |
_rankings = page.xpath('//*[@id="entry-6a00d83452b44469e201a3fcc60432970b"]/div[2]/div[2]/p[2]')[0] | |
s = etree.tostring( _rankings ) # not semantic html so we'll have to parse through the raw string | |
rankings = s.replace( '<p>', '' ).replace( ' ', ' ' ).replace('</p> ','').split('<br />') # clean up and split the string | |
cities = defaultdict(int) |