Skip to content

Instantly share code, notes, and snippets.

Avatar

Leo Lindhorst DevWurm

View GitHub Profile
View TraceReporter.ts
import CustomReporter = jasmine.CustomReporter;
import CustomReporterResult = jasmine.CustomReporterResult;
export class TraceReporter implements CustomReporter {
private traceResult = new Map<string, SpecResult[]>();
specDone(result: CustomReporterResult) {
const tags = (result['metadata'] || {tags: []}).tags;
tags.forEach(tag => {
if (this.traceResult.has(tag)) {
@DevWurm
DevWurm / franz.desktop
Last active May 7, 2017
Franz App Desktop File
View franz.desktop
[Desktop Entry]
Name=Franz
Comment=Multi-service messenger
Exec=/opt/Franz/Franz
Icon=franz
Terminal=false
Type=Application
Categories=Messaging,Internet
@DevWurm
DevWurm / fonts.md
Last active May 7, 2017
A list of awesome free fonts
@DevWurm
DevWurm / metropolis-beamerfonts.tex
Created May 1, 2017
Beamerfont declarations for Metropolis theme (for overwriting)
View metropolis-beamerfonts.tex
\setbeamerfont{title}{size=\Large,%
series=\bfseries}
\setbeamerfont{author}{size=\small}
\setbeamerfont{date}{size=\small}
\setbeamerfont{section title}{size=\Large,%
series=\bfseries}
\setbeamerfont{block title}{size=\normalsize,%
series=\bfseries}
\setbeamerfont{block title alerted}{size=\normalsize,%
series=\bfseries}
@DevWurm
DevWurm / fonts.tex
Last active Apr 26, 2017
Specify different font for section headings / title
View fonts.tex
\usepackage{titlesec}
\usepackage{titling}
% Specify different font for section headings
\newfontfamily\headingfont[]{Roboto Bold}
\titleformat*{\section}{\LARGE\headingfont}
\titleformat*{\subsection}{\Large\headingfont}
\titleformat*{\subsubsection}{\large\headingfont}
\renewcommand{\maketitlehooka}{\headingfont} % font in \maketitle
@DevWurm
DevWurm / obsall.ts
Created Apr 3, 2017
Promise.all and promise.then(...).then(...) behavior for Observables
View obsall.ts
const create = (val) => {
return (o: Observer<any>) => {
setTimeout(() => {
console.log(val);
o.next(val);
o.complete();
}, 5000)
}
};
@DevWurm
DevWurm / installation.md
Last active Mar 3, 2018 — forked from tessi/installation.md
Install OpenProject 6 on uberspace.de
View installation.md

How to install OpenProject on uberspace.de

Follow those steps to install OpenProject on a fresh uberspace.

Step 1: Install dependencies

First we set-up all dependencies. We use ruby 2.2.5 and install gems in a user directory:

echo "gem: --user-install --no-rdoc --no-ri" > ~/.gemrc
cat <<'__EOF__' >> ~/.bash_profile
@DevWurm
DevWurm / install.sh
Created Jan 5, 2017
TypeScript configuration for Node.js
View install.sh
npm install -D @types/node
@DevWurm
DevWurm / package.19-3.json
Created Dec 15, 2016
The package.json files of Angular-CLI projects with Version `1.0.0-beta.19-3`, `1.0.0-beta.20-3` and `1.0.0-beta.22-1`
View package.19-3.json
{
"name": "ee-19-3",
"version": "0.0.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
"start": "ng serve",
"lint": "tslint \"src/**/*.ts\"",
"test": "ng test",
"pree2e": "webdriver-manager update",
@DevWurm
DevWurm / Problems.md
Last active Dec 21, 2016
A simple generic type matching / constructor matching type guard for type script
View Problems.md

Problems

  • can't decide between different array types (solution idea: if the reference array is not empty, test the first element against the first element of the test element)
You can’t perform that action at this time.