Skip to content

Instantly share code, notes, and snippets.

@niktwenty3
niktwenty3 / settings.md
Last active March 31, 2022 13:42
Barotrauma Dedicated Server

Server setup

The server will be running 24/7 missions. Admins and moderators can switch to campaigns when they are in the server but they have to switch back to missions before they leave. No point in playing a campaign if there is no one around to have at least some supervision.

Ranks

There are currently 4 ranks. None, Moderator, Admin, and God.

Moderator has the following permissions:

  • Manage round
  • Kick
@jeroenheijmans
jeroenheijmans / ngb-momentjs-adapter.ts
Last active March 3, 2022 13:34
NgbDateAdapter for Moment.js values
import { NgbDateAdapter, NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
import { Injectable } from '@angular/core';
import * as moment from 'moment';
// Might need to polyfill depending on needed browser support...
const isInt = Number.isInteger;
@Injectable()
export class NgbMomentjsAdapter extends NgbDateAdapter<moment.Moment> {

Formatting on Tildes

Tildes uses a variation of a special formatting language called Markdown. If you're familiar with markdown, you should feel right at home. If not, then this doc is for you!

Special Tildes syntax

First, let's talk about some of the special ways to link to other things on Tildes.

Linking to groups

@nrobinaubertin
nrobinaubertin / app.component.ts
Created January 17, 2017 13:36
Exemple of ngb-date-parser-formatter implementation (ng-bootstrap)
import { NgbDatepickerConfig, NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';
import { NgbDateFRParserFormatter } from "./ngb-date-fr-parser-formatter"
@Component({
providers: [{provide: NgbDateParserFormatter, useClass: NgbDateFRParserFormatter}]
})
export class AppComponent {}