- create your "x.c" file
- create "run.sh" file with the following:
# run for the first time
gcc x.c
./a.out
inotifywait -q -m -e close_write examen.c |
#!/bin/sh | |
prefix=$(echo "$1" | tr '[:upper:]' '[:lower:]') | |
run_command_on_panel () { | |
local workspace_name=$1 | |
local command_to_run=$2 | |
local panel_number="${3:0}" | |
tmux send-keys -t $workspace_name.$panel_number "$command_to_run" ENTER | |
} |
# run for the first time
gcc x.c
./a.out
inotifywait -q -m -e close_write examen.c |
// this is meant to be run inside the browser | |
// score: 1 | 2 | 3 | 4 | 5 | 6 | 7 | |
// difficulty: 1 | 2 | 3 | 4 | |
function answerTeacherEvaluation(score, difficulty) { | |
([...document.querySelectorAll(`input[value$="${difficulty}"]`)].forEach(x => x.click())); // set difficulty | |
([...document.querySelectorAll(`input[value$="${score}"]`)].forEach(x => x.click())); // set score | |
} | |
// example call |
fn basic_filter(input []int, operation fn(int) bool) []int { | |
mut output := []int | |
for value in input { | |
if operation(value) { | |
output << value | |
} | |
} | |
return output | |
} |
// first solution "pretty" | |
const days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']; | |
const dateOffset = (_day, _offset) => { | |
const day = days.indexOf(_day); | |
const offset = _offset % 7; | |
const sum = day + offset; | |
if ((day + offset) > days.length) { | |
return dateOffset(days[day], (day + offset) - days.length); | |
} else { |
Category Key Combination Description | |
Positioning: | |
Alt + ⭡ Jump to beginning of previous paragraph | |
Alt + ⭣ Jump to beginning of next paragraph | |
Alt + ⭠ Jump to beginning of previous word | |
Alt + ⭢ Jump to beginning of next word | |
Ctrl + Home Jump to the beginning of the document | |
Ctrl + End Jump to end of the document |