This file contains 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 python2.7 | |
""" | |
Lectiolize: A python script for preparing files for upload to the Lectio system | |
by adding student numbers to file names based on a reference folder. | |
(C) janus@insignificancegalore.net, 2014 | |
""" | |
from collections import namedtuple | |
import re |
This file contains 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
echo 'Doing stuff' |
This file contains 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
use std::iter; | |
fn run_lengths<'a, T>(a: &'a[T]) -> impl Iterator<Item=usize> + 'a | |
where | |
T: std::cmp::PartialEq | |
{ | |
a | |
.windows(2) | |
.enumerate() | |
.filter_map(|(i, ab)| if ab[0]==ab[1] {None} else {Some(i as isize)}) |
This file contains 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 requests | |
import json | |
from pathlib import Path | |
import time | |
import subprocess | |
import re | |
from datetime import datetime | |
import logging | |
import argparse |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
<html> | |
<head> | |
<title>Labyrinten</title> | |
</head> | |
<body> | |
<script> | |
function dragstart_handler(ev) { | |
ev.dataTransfer.setData("text/plain", ev.target.id); | |
} | |
function dragover_handler(ev) { |
This file contains 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
' | |
' Reply To All in Plain Text, with Linux-style quoting | |
' | |
' This allows you to use Outlook to reply to a mailinglist | |
' | |
' Copyright 2009 Matthijs van de Water | |
' | |
Sub ReplyAllPlain() | |
Dim app As New Outlook.Application |
OlderNewer