Skip to content

Instantly share code, notes, and snippets.

{
"distributions": {
"signal_dist": {
"mean" : "param_mean",
"type" : "gaussian",
"x" : "mes",
"sigma": 0.5
},
"background_dist": {
"c" : -2,
@Cornelius-G
Cornelius-G / merge_questions.py
Created November 8, 2018 08:18
Python script to merge all questions downloaded from moodle into a single html file.
import os
import sys
import zipfile
# split string s at symbol c at the n-th delimeter
def split_at(s, c, n):
words = s.split(c)
return c.join(words[:n]), c.join(words[n:])
try: