Skip to content

Instantly share code, notes, and snippets.

Avatar

Leo Lindhorst DevWurm

View GitHub Profile
@DevWurm
DevWurm / entry.js
Last active Mar 4, 2019
angular-cli Electron configuration
View entry.js
const {app, BrowserWindow} = require('electron')
const path = require('path')
const url = require('url')
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win
function createWindow () {
// Create the browser window.
@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
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 / icon.png
Last active Aug 23, 2017
Turtle installer - Installer for the turtl.it linux 64bit application
@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 / install.sh
Created Jan 5, 2017
TypeScript configuration for Node.js
View install.sh
npm install -D @types/node
You can’t perform that action at this time.