- step 1: Install python from : https://www.python.org/downloads/
- you may need to restart your PC to make the commands available
- step 2 (only required if you see a message about missing packages / imports): install the required libraries using the command (in the terminal) pip
pip install pyxdf pandas matplotlib
- step 3: download the
explore-xdf.pyfile from this gist
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 fish | |
| echo "Mounting OneDrive" | |
| # mounts configured with rclone | |
| rclone mount --vfs-cache-mode full --vfs-cache-max-age 336h --vfs-cache-max-size 50G --dir-cache-time 336h --async-read=true --buffer-size=32M --vfs-read-chunk-size 16M --vfs-read-chunk-size-limit 2G --vfs-refresh OneDriveAU:/ /home/zeyus/Documents/OneDriveAU/ --daemon | |
| echo "Mounting Sharepoint" | |
| rclone mount --vfs-cache-mode full --vfs-cache-max-age 336h --vfs-cache-max-size 50G --dir-cache-time 336h --async-read=true --buffer-size=32M --vfs-read-chunk-size 16M --vfs-read-chunk-size-limit 2G --vfs-refresh SharePointPhD:/ /home/zeyus/Documents/SharePointAU/ --daemon | |
| echo "Mounted OneDriveAU and SharePointAU to ~/Documents/" |
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
| class KarchiveAT5115 < Formula | |
| desc "Reading, creating, and manipulating file archives" | |
| homepage "https://api.kde.org/frameworks/karchive/html/index.html" | |
| license all_of: [ | |
| "BSD-2-Clause", | |
| "LGPL-2.0-only", | |
| "LGPL-2.0-or-later", | |
| any_of: ["LGPL-2.0-only", "LGPL-3.0-only"], | |
| ] |
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
| library("conflicted") | |
| library("tidyverse") | |
| # Define data sources with file paths and names | |
| data_sources <- list( | |
| list( | |
| file_path = "timing_log_simplified_5091.csv", | |
| name = "iPadM3Pro|Flutter|Comprehensive" | |
| ), |
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 csv | |
| import sys | |
| # pip install cairosvg | |
| from cairosvg import svg2png | |
| maxInt = sys.maxsize | |
| while True: | |
| # decrease the maxInt value by factor 10 |
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
| // ==UserScript== | |
| // @name Long Videos are Best Videos | |
| // @namespace zeyus | |
| // @match https://www.youtube.com/* | |
| // @grant GM.registerMenuCommand | |
| // @grant GM.getValues | |
| // @grant GM.setValues | |
| // @inject-into auto | |
| // @version 2.3 | |
| // @author zeyus |
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
| library("R.matlab") | |
| library("tidyverse") | |
| library("pracma") | |
| library("ggforce") | |
| coord_data <- readMat("cirkel300.mat") | |
| tbl <- as_tibble(list(X=coord_data$X[,1], Y=coord_data$Y[,1])) | |
| # center the data | |
| # tbl$X <- tbl$X - mean(tbl$X) |
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
| # quick and dirty visual analysis of year on year by state | |
| # Firearm_suicide_homicide_dataset.csv | |
| # source: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/QVYDUD | |
| library(tidyverse) | |
| # Firearm Data Codebook,, | |
| # ,, | |
| # Variable Name,Variable Description,Source | |
| # state,State name, |
- Create a Terminal Ubuntu instance, e.g. https://cloud.sdu.dk/app/jobs/create?app=terminal-ubuntu&version=Oct2023 (or whatever the latest is)
- Make sure you have SSH enabled!
- Add your folders etc
- Make note of the SSH port after the server launches (the numbers after the
-pin the ssh command that UCloud gives you)
Now...
NewerOlder

