- Drag this link into your bookmarks bar: [Flexible search CSV export bookmarklet](javascript:function addCsvDownloadLink(){console.log("Adding download link"),$("#queryResultTable_length").append(' <a id="csvDownloadLink" href="#" class="export">Download as CSV</a>'),console.log("Modifying link behaviour"),$("#csvDownloadLink").click(function(){var n=$("#queryResultTable"),o=exportTableToCsvString(n),t="data:application/csv;charset=utf-8,"+encodeURIComponent(o);$(this).attr({download:"flexibleSearch.csv",href:t,target:"_blank"})}),console.log("CSV ready for download")}function exportTableToCsvString(n){var o=tableToData(n);return dataToCsvString(o)}function tableToData(n){var o=n.find("thead").find("tr"),t=n.find("tbody").find("tr"),a=o.map(trRowToArray).get(),r=t.map(trRowToArray).get();return r.unshift(a[0]),r}function trRowToArray(n,o)
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
# print commands | |
set -x | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt install -y git net-tools tmux tree vim | |
# Install SSH sever | |
sudo apt install -y ssh openssh-server |
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
#python 2.7 | |
#Bayesian integration of information assignment | |
#Chris Cooper | |
from scipy.stats import norm | |
#observed | |
firing_rates = [40.8084, 44.3164, 34.1953, 75.3335, 43.4339, | |
50.6627, 49.4592, 47.3496, 38.5744, 14.938] |