Skip to content

Instantly share code, notes, and snippets.

View DevWurm's full-sized avatar

Leo Lindhorst DevWurm

  • Saxonia Systems AG @saxsys
  • Dresden, Germany
View GitHub Profile
@DevWurm
DevWurm / package.19-3.json
Created December 15, 2016 15:52
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`
{
"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 December 21, 2016 15:39
A simple generic type matching / constructor matching type guard for type script

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)
@DevWurm
DevWurm / install.sh
Created January 5, 2017 15:00
TypeScript configuration for Node.js
npm install -D @types/node
@DevWurm
DevWurm / obsall.ts
Created April 3, 2017 08:19
Promise.all and promise.then(...).then(...) behavior for Observables
const create = (val) => {
return (o: Observer<any>) => {
setTimeout(() => {
console.log(val);
o.next(val);
o.complete();
}, 5000)
}
};
@DevWurm
DevWurm / fonts.tex
Last active April 26, 2017 14:04
Specify different font for section headings / title
\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 / metropolis-beamerfonts.tex
Created May 1, 2017 15:15
Beamerfont declarations for Metropolis theme (for overwriting)
\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.md
Last active May 7, 2017 13:19
A list of awesome free fonts
@DevWurm
DevWurm / franz.desktop
Last active May 7, 2017 14:18
Franz App Desktop File
[Desktop Entry]
Name=Franz
Comment=Multi-service messenger
Exec=/opt/Franz/Franz
Icon=franz
Terminal=false
Type=Application
Categories=Messaging,Internet
@DevWurm
DevWurm / icon.png
Last active August 23, 2017 07:05
Turtle installer - Installer for the turtl.it linux 64bit application
icon.png
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)) {