Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 operator | |
import requests | |
from bs4 import BeautifulSoup | |
def get_data_for_category(soup, data_category_id): | |
output_data = {} | |
data_rows = soup.find_all("div", attrs={"data-category-id": data_category_id})[0] | |
for row in data_rows.find_all("div", "ProgressBar-textWrapper"): |
This file contains 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
""" OCN forum link unfurler bot for Slack """ | |
import json | |
import time | |
import re | |
import requests | |
from slackclient import SlackClient | |
from bs4 import BeautifulSoup |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
""" Extract the CIF files for each mineral in the | |
American Minerologist Crystal Structure Database | |
http://rruff.geo.arizona.edu/AMS/ | |
Puts files in 'amcsd_data' folder. | |
""" | |
import requests | |
import string | |
import urllib |
This file contains 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
""" | |
Scrapes all dimensions of data from http://www.mrl.ucsb.edu:8080/datamine/thermoelectric.jsp. | |
RE: electrical resistivity | |
SE: seebeck coefficient | |
TH: thermal conductivity | |
AT: average atomic mass | |
SC: scarcity | |
HP: HHI (production) | |
HR: HHI (reserves) |
This file contains 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 | |
# Minecraft Server Backup | |
stamp=$(date +%d_%m_%Y_%H_%M_%S) | |
cd $HOME/servers/backups/mcprohost/ | |
mkdir -p $stamp | |
wget -r -nH -P $stamp ftp://$MCP_USER:$MCP_PASS@$MCP_IP/world* | |
zip -rm $stamp $stamp |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 random | |
import math | |
import datetime | |
from pymongo import MongoClient | |
import matplotlib.pyplot as plt | |
import matplotlib.dates as mdates | |
from matplotlib.ticker import MultipleLocator | |
import numpy as np |
This file contains 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/python | |
# | |
# This script is an improved version of the 'qstat' command | |
# that prints out only USEFUL information (like the job's | |
# FULL name) in a readable way. | |
# | |
# All of the output of the command 'qstat -f' is captured | |
# and organized, so it would be very easy to print out | |
# additional info by modifying the last loop of the script. | |
# |
NewerOlder