Skip to content

Instantly share code, notes, and snippets.

@timvdalen
timvdalen / alloy.sty
Created September 27, 2012 20:33
Alloy code listings for LaTeX (not written by me, public domain)
% alloy.sty
% Alloy mode for the LaTeX listings package.
% This is public domain
\lstdefinelanguage{alloy}{
keywords={%
assert, pred, all, no, lone, one, some, check, run,
but, let, implies, not, iff, in, and, or, set, sig, Int, int,
if, then, else, exactly, disj, fact, fun, module, abstract,
extends, open, none, univ, iden, seq,
@timvdalen
timvdalen / Makefile
Created March 17, 2014 10:26
Scripts for 2IS55 Assignment 3
BASE_DIR=/home/ubuntu/ccfinder-src
SCRATCH_SPACE=/media/output
CCFX=${BASE_DIR}/ubuntu32/ccfx
PICOSEL=${BASE_DIR}/ubuntu32/picosel
SOURCE=/media/output/source
TEMP=temp
TEMP_CCFX=$(TEMP)/ccfx
@timvdalen
timvdalen / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../paper-calculator/paper-calculator.html">
<polymer-element name="my-element">
<template>
<style>
@timvdalen
timvdalen / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
/*
Some basic Github styles and syntax highlighting CSS via Pygments.
*/
html {
font-size: 14px;
line-height: 1.6;
font-family: helvetica,arial,freesans,clean,sans-serif;
color: black;
}
body {
figure {
text-align: center;
}
figure img {
max-width: 50%;
}
.hljs {
background: initial;