Skip to content

Instantly share code, notes, and snippets.

View ruohki's full-sized avatar

Tillmann Hübner ruohki

View GitHub Profile
export const ScrollContainer = styled.div`
${({ height}) => `height: ${height};`}
overflow-y: scroll;
&::-webkit-scrollbar {
width: 10px;
background-color: rgba(0,0,0,0);
-webkit-border-radius: 100px;
}
&::-webkit-scrollbar:hover {
background-color: rgba(255, 255, 255, 0.04);
// Simple Flexbox Layout for Styled Components
import React from "react";
import styled from "styled-components";
const ColorContainer = styled.div`
background-color: ${({ bg }) => (bg ? bg : "inherit")};
`;
export const Main = styled(ColorContainer)`
void ATestActor::CreateMesh() {
Mesh->ClearAllMeshSections();
int x = 0;
int y = 0;
int z = 0;
FVector p0 = FVector(x * (BLOCK_RENDER_SIZE * 2) + BLOCK_RENDER_SIZE, y + BLOCK_RENDER_SIZE, z - BLOCK_RENDER_SIZE);
FVector p1 = FVector(x * (BLOCK_RENDER_SIZE * 2) + BLOCK_RENDER_SIZE, y - BLOCK_RENDER_SIZE, z - BLOCK_RENDER_SIZE);
FVector p2 = FVector(x * (BLOCK_RENDER_SIZE * 2) + BLOCK_RENDER_SIZE, y - BLOCK_RENDER_SIZE, z + BLOCK_RENDER_SIZE);
@ruohki
ruohki / takeoff.json
Last active September 17, 2018 08:21
{"takeoff":"20181203T020000"}
import React, { Component } from "react";
import { Redirect } from "react-router-dom";
import auth0Client from "./Auth";
class Callback extends Component {
state = {
loading: true
}
componentDidMount() {
@ruohki
ruohki / 1-rbac.yaml
Last active January 5, 2019 22:01 — forked from carloscarnero/1-rbac.yaml
Traefik on Rancher
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: traefik-ingress-controller
rules:
- apiGroups:
- ""
resources:
- services
@ruohki
ruohki / content.md
Created August 3, 2020 07:15
Gist from Drafts

Windows Entwicklungs Umgebung

  • WSL2 mit Ubuntu 20

  • Docker Desktop

  • Chocolatey

  • VSCode Insiders mit FiraCode

  • Neues Terminal

  • Git

  • Python, Node