Here are the steps you should follow to get started working on your own computer in COMP1531.
- Install VS Code
// Place your key bindings in this file to override the defaults | |
[ | |
// New file commands | |
// ============================================= | |
// New file command in explorer by default | |
{ | |
"key": "ctrl+n", | |
"command": "explorer.newFile" | |
}, | |
// New directory in explorer: Ctrl+Shift+N |
{ | |
"todo-tree.highlights.defaultHighlight": { | |
"foreground": "white", | |
"background": "#00000000" | |
}, | |
"todo-tree.highlights.useColourScheme": false, | |
"todo-tree.general.tags": [ | |
"BUG", | |
"FIXME", | |
"BROKEN", |
const { execSync } = require('node:child_process'); | |
const MAX_LENGTH = 100; | |
// https://stackoverflow.com/a/44574128/6335363 | |
const ALLOWED_CHARACTERS = [...Array(26).keys()].map((n) => String.fromCharCode(97 + n)); | |
ALLOWED_CHARACTERS.push('-'); | |
function installPackage(name) { | |
execSync(`npm install ${name}`, { stdio: 'inherit' }); |
""" | |
A simple script to install everything | |
""" | |
from subprocess import Popen | |
from string import ascii_lowercase | |
MAX_LENGTH = 100 | |
ALLOWED_CHARACTERS = ascii_lowercase + '-' | |
Here are the steps you should follow to get started working on your own computer in COMP1531.
# Simple function to grab a .gitignore file from GitHub | |
# Usage: gitignore [language name] | |
# Note that it's case-sensitive. This it GitHub's fault, not mine | |
gitignore () | |
{ | |
curl -s --fail "https://raw.githubusercontent.com/github/gitignore/main/$1.gitignore" -o .gitignore | |
if [ $? -eq 0 ]; then | |
return 0 | |
else | |
echo "Lookup failed, maybe check capitalisation?" |
# Copy this into your .bashrc or .zshrc | |
# To make this even nicer, use `ssh-copy-id` so you don't need to use your password for everything | |
# UNSW zID | |
export ZID="z5312085" | |
# Environment variables pointing to CSE Servers | |
export CSE="${ZID}@login.cse.unsw.edu.au" | |
# Quick alias for SSH-ing into CSE |
""" | |
fl_plugin_params.py | |
A simple script to print out every parameter name for a plugin. | |
To run this script: | |
1. Load the plugin into the first slot of the channel rack | |
2. From the view menu, open the script output | |
3. Copy and paste each line into the input field one by one, hitting enter between the lines |
I've been informed that a new build system is in place for COMP6771 from 22T3 and onwards, so these instructions may not be accurate or up-to-date anymore.
Use this link.
If you're on Linux, you may need to install the engine separately to the desktop app. Have a look for your distro in the Server section of the page above and install that first.
{{! Google Docstring Template }} | |
{{! Modified to be markdown-friendly}} | |
{{! Originally sourced from: https://github.com/NilsJPWerner/autoDocstring/blob/master/src/docstring/templates/google.mustache}} | |
{{summaryPlaceholder}} | |
{{extendedSummaryPlaceholder}} | |
{{#parametersExist}} | |
## Args: |