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
# Install Linux 3.19 kernel and reboot into it | |
wget http://launchpadlibrarian.net/220635919/linux-headers-3.19.0-31-generic_3.19.0-31.36~14.04.1_amd64.deb | |
wget http://launchpadlibrarian.net/220668669/linux-headers-3.19.0-31_3.19.0-31.36~14.04.1_all.deb | |
wget http://launchpadlibrarian.net/220635970/linux-image-3.19.0-31-generic_3.19.0-31.36~14.04.1_amd64.deb | |
sudo apt-get module-init-tools | |
sudo dpkg -i linux-* | |
sudo reboot | |
## MAKE SURE YOU HIT SHIFT AND REBOOT INTO KERNEL 3.19 | |
## OR EDIT /etc/default/grub TO MAKE KERNEL 3.19 DEFAULT BEFORE REBOOT |
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 re, string | |
minlen = 3 | |
subs = [ | |
#('for', '4'), | |
#('four', '4'), | |
#('to', '2'), | |
#('ate', '8'), | |
#('ten', '10'), |
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
// Step 1: Run Google Chrome with web security disabled (e.g. "chrome.exe --disable-web-security") | |
// Step 2: Navigate to SCORM course | |
// Step 3: Open Dev Tools -> Console | |
// Step 4: Switch the scope to SCORM scope (e.g. sco) | |
// Step 5: Type following commands... | |
SCORM_SetCompleted() | |
SCORM_CommitData() |
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 pandas as pd | |
metrics = pd.read_csv("metrics.csv", skipinitialspace=True) | |
perms = pd.read_csv("perms.csv", skipinitialspace=True).iloc[:,:-1] | |
result = pd.merge(metrics, perms, how="inner", on=["id", "session"]) | |
result.to_csv("merged.csv", index=False) |