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
| #!/bin/bash | |
| time_stamp=$(date +%Y%m%d) | |
| mkdir -p ~/Backup/Desktop/$time_stamp | |
| mv ~/Desktop/* ~/Backup/Desktop/$time_stamp |
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
| #!/bin/bash | |
| time_stamp=$(date +%Y-%m-%d) | |
| mkdir -p ~/Backup/Downloads/$time_stamp | |
| mv ~/Downloads/* ~/Backup/Downloads/$time_stamp |
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
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| """ | |
| csv2xml.py | |
| Created by Justin van Wees on 2011-04-18. | |
| """ | |
| import sys | |
| import os | |
| import string |
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
| import requests | |
| from bs4 import BeautifulSoup | |
| # We've now imported the two packages that will do the heavy lifting | |
| # for us, reqeusts and BeautifulSoup | |
| # Let's put the URL of the page we want to scrape in a variable | |
| # so that our code down below can be a little cleaner | |
| url_to_scrape = 'http://apps2.polkcountyiowa.gov/inmatesontheweb/' |
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
| export JENA_FUSEKI_VERSION=3.7.0 | |
| export JENA_HOME=~/opt/apache-$JENA_FUSEKI_VERSION | |
| export FUSEKI_HOME=~/opt/apache-jena-fuseki-$JENA_FUSEKI_VERSION | |
| export FUSEKI_BASE=~/opt/apache-jena-fuseki-$JENA_FUSEKI_VERSION | |
| export JENA_BASE=~/opt/apache-jena-$JENA_FUSEKI_VERSION | |
| export JENA=~/opt/apache-jena-$JENA_FUSEKI_VERSION | |
| export FUSEKI=~/opt/apache-jena-$JENA_FUSEKI_VERSION | |
| export FUSEKIROOT=~/opt/apache-jena-fuseki-$JENA_FUSEKI_VERSION | |
| export JENAROOT=~/opt/apache-jena-$JENA_FUSEKI_VERSION |
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
| # Given a list of words, remove any that are | |
| # in a list of stop words. | |
| def removeStopwords(wordlist, stopwords): | |
| return [w for w in wordlist if w not in stopwords] |
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
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """This module's docstring summary line. | |
| This is a multi-line docstring. Paragraphs are separated with blank lines. | |
| Lines conform to 79-column limit. | |
| Module and packages names should be short, lower_case_with_underscores. | |
| Notice that this in not PEP8-cheatsheet.py |
