Skip to content

Instantly share code, notes, and snippets.

All Tutorial Pages

Background stops without enough padding for the link to the next tutorial

<span style="float: right">[[en/Manual/Tutorial/Buses|'''Next''': Setting up a Bus Service]] »</span>
</div>
[[Category:en/Basic Tutorial]]

Background color is a

en/Manual/Tutorial/Main Page

Right allign here renders wierd

We had similar issues getting access control setup on a field level with nestjs. I opted to go for shield with graphql middleware, and with some workarounds it looks like it works. We are doing shield configuration separate from our models for now, but you should be able to generate it using extensions (see @j 's post above).

I will be sharing what I ran into and how I fixed it here. I can also add a PR for the documentation to add a recipe for this, but some of this is still a bit hacky. Also, if this is off topic, feel free to let me know and I will post it in a more appropriate place. I think this post is more to illustrate what we can use the current graphql-middleware for outside of most of the nestjs constructs.

Part of the reason I went with shield is because we needed the returned objects in our rules, and I wanted to use the fragment replacement feature of shield. Below is how I set that up.

import { wrapSchema } from '@graphql-tools/wr

Keybase proof

I hereby claim:

  • I am longtomjr on github.
  • I am longtomjr (https://keybase.io/longtomjr) on keybase.
  • I have a public key ASCf46s-3KC8A2s7Y9KFfMVw91ye4PP2ws1eAC3xvn-Tbwo

To claim this, I am signing this object:

Factorio District-Base Concept of Nilaus:

See Episode 80 of Marathon Automation for detailed video overview

  • To start out build a small base using the main-bus concept. The idea for this base is to create
  • Core Concepts:
    • Trains is size 1-2 (One locomotive, two wagons)
    • Use a 2 tracks for every direction. The inner tracks will be used to form numerous loops. [TrainLoop]
      • This will allow trains to go everywhere, and remove the need to have any unnecessary cross over tracks.
    • Stations will use a 2 lane concept, one for traveling, one for stopping. [Station Image]
  • Use of depots to transfer resources from outside the base onto the rail network. [Depot]
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
#!/usr/bin/python3
'''
Copy this script into your Windows: "%appdata%/Factorio/"
Linux: "~/.factorio"
Folder and run with Windows: "python isolateError.py"
Linux: "python3 isolateError.py" - NOTE: You have to give the file execute permissions
'''
import glob
import os
import time
using System;
using System.Collections.Generic;
using ConsoleTables;
namespace ShultzeMethod
{
class MainClass
{
static string[] voteOptions;
Assert Success
System.FormatException: Input string was not in a correct format.
at System.Number.ParseSingle (System.String value, NumberStyles options, System.Globalization.NumberFormatInfo numfmt) <0x4053bb20 + 0x00183> in <filename unknown>:0
at System.Single.Parse (System.String s, NumberStyles style, System.Globalization.NumberFormatInfo info) <0x4053bae0 + 0x00017> in <filename unknown>:0
at System.Single.Parse (System.String s) <0x4053baa0 + 0x00023> in <filename unknown>:0
at PorcCompiler.AssignmentVisitor.VisitFloatLiteral (Grammar.FloatLiteralContext context) <0x4053ba40 + 0x0001f> in <filename unknown>:0
at Grammar.PorcParserGrammar+FloatLiteralContext.Accept[TResult] (IParseTreeVisitor`1 visitor) <0x4053b8f0 + 0x0005f> in <filename unknown>:0
at Antlr4.Runtime.Tree.AbstractParseTreeVisitor`1[Result].Visit (IParseTree tree) <0x4048a920 + 0x00040> in <filename unknown>:0
at PorcCompiler.AssignmentVisitor.VisitLiteralValue (Grammar.LiteralValueContext context) <0x4048b8f0 + 0x000
/home/longtomjr-fedora/Workspace/Porc/PorcParser/PorcParser.csproj (default targets) ->
/usr/lib/mono/4.5/Microsoft.Common.targets (GetFrameworkPaths target) ->
/usr/lib/mono/4.5/Microsoft.Common.targets: warning : TargetFrameworkVersion 'v4.6' not supported by this toolset (ToolsVersion: 4.0).
/home/longtomjr-fedora/Workspace/Porc/PorcParser/PorcParser.csproj (default targets) ->
/home/longtomjr-fedora/Workspace/Porc/packages/Antlr4.CodeGenerator.4.5.4-beta001/build/Antlr4.CodeGenerator.targets (Antlr4Compile target) ->
: warning AC1000: Unknown build error: Exception in thread "main" cli.System.NotImplementedException: The method or operation is not implemented.
: warning AC1000: Unknown build error: at cli.System.Reflection.MemberInfo.get_Module(Unknown Source)
<key>key</key>
<dict>
<key>begin</key>
<string>\s*(\w[\w-]+)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>entity.name.tag.toml</string>