Skip to content

Instantly share code, notes, and snippets.

View loremIpsum1771's full-sized avatar

Elijah loremIpsum1771

View GitHub Profile
import requests
from lxml.html import fromstring
import pprint
import re
url = "https://jobs.mo.gov/content/missouri-warn-notices-py-2017"
response = requests.get(url)
root = fromstring(response.content)
table = root.xpath('.//*[@summary="Missouri WARN Notices PY 2016"]')[0]
//Output of glyphs[i] in glyphChart.drawGlyph()
["[ ","{ ","0 ",": ","5 ","1 ","3 ",", ","1 ","2 ","4 ",", ","1 ",": ","5 ","8 ","1 ",", ","2 ",
"1 ","4 ",", ","2 ",": ","5 ","8 ","6 ",", ","2 ","1 ","5 ",", ","3 ",": ","5 ","8 ","6 ",", ",
"2 ","2 ","0 ",", ","4 ",": ","5 ","8 ","6 ",", ","2 ","2 ","7 ",", ","5 ",": ","5 ","8 ","7 ",
", ","2 ","3 ","9 ",", ","6 ",": ","5 ","8 ","6 ",", ","2 ","4 ","9 ",", ","7 ",": ","5 ","8 ",
"2 ",", ","2 ","5 ","6 ",", ","8 ",": ","5 ","8 ","2 ",", ","2 ","5 ","9 ",", ","9 ",": ","5 ",
"8 ","2 ",", ","2 ","5 ","9 ",", ","1 ","0 ",": ","5 ","8 ","2 ",", ","2 ","5 ","9 ",", ","1 ",
"1 ",": ","5 ","8 ","2 ",", ","2 ","5 ","8 ",", ","1 ","2 ",": ","5 ","8 ","2 ",", ","2 ","5 ",
"8 ",", ","1 ","3 ",": ","5 ","8 ","2 ",", ","2 ","5 ","6 ",", ","1 ","4 ",": ","5 ","8 ","2 ",
import sys
import json
from urlparse import urljoin
import requests
from lxml.html import fromstring
from bs4 import BeautifulSoup,NavigableString, Tag
import matplotlib.pyplot as plt
import scipy
import scipy.stats
#include<vector>
#include<string>
#include<iostream>
#include<unordered_map>
#include<sstream>
#include<utility>
using namespace std;
class Day {
bool weekday = false;
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find Ruby (missing: RUBY_LIBRARY) (found version "1.9.1")
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Could NOT find VALGRIND (missing: VALGRIND_EXECUTABLE)
-- Could NOT find SASL (missing: FOUND_SASL_LIB FOUND_SASL_H)
-- No need to generate AMQP protocol sources
-- No need to generate Qpid Management Framework sources
-- Can't locate the doxygen command; user documentation cannot be generated
-- Boost version: 1.61.0
-- Found the following Boost libraries:
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
C:\Builds\qpid>cmake -G "Visual Studio 12 2013" C:\<Home>\Downloads\qpid-cpp-0.34
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find Ruby (missing: RUBY_LIBRARY) (found version "1.9.1")
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Could NOT find VALGRIND (missing: VALGRIND_EXECUTABLE)
-- Could NOT find SASL (missing: FOUND_SASL_LIB FOUND_SASL_H)
-- No need to generate AMQP protocol sources
-- No need to generate Qpid Management Framework sources
-- Can't locate the doxygen command; user documentation cannot be generated
CMake Error at C:/<Home>/Downloads/cmake-3.6.0-rc4-win64-x64/share/cmake-3.6/Modules/FindBoost.cmake:1753 (message):
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: n@2.1.2
npm ERR! notsup Valid OS: !win32
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
"install" "-g" "n"
npm ERR! registry error parsing json
npm ERR! SyntaxError: Unexpected token <
npm ERR! <html>
npm ERR! <head>
npm ERR! <title>404 - Path /6.9.1 not found in group repository &quot;npm-public&quot; [id=npm-public].</title>
npm ERR! <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
npm ERR!
npm ERR! <link rel="icon" type="image/png" href= <proxy> >
npm ERR! <!--[if IE]>
npm ERR! <link rel="SHORTCUT ICON" href= <proxy> >
npm ERR! Error: No compatible version found: babel-polyfill@'^6.9.1'
npm ERR! Valid install targets:
npm ERR! ["6.2.0","6.2.4","6.3.14","6.5.0","6.5.0-1","6.7.2","6.7.4","6.0.2","6.0.14","6.0.16","6.1.4","6.1.17","6.1.18
,"6.1.19","6.3.13","6.6.0","6.6.1","6.8.0","6.9.0","6.9.1"]
npm ERR! at installTargetsError (C:\Program Files\nodejs\node_modules\npm\lib\cache.js:685:10)
npm ERR! at C:\Program Files\nodejs\node_modules\npm\lib\cache.js:607:10
npm ERR! at saved (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:138:7)
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>