Skip to content

Instantly share code, notes, and snippets.

call plug#begin('~/.vim/plugged')
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
call plug#end()
using UnityEngine;
using UnityEngine.Rendering;
/// <summary>
/// Starts the recursive portal rendering process, taking into account portal occlusion volumes.
/// </summary>
public class PortalRenderer : MonoBehaviour
{
private PortalOcclusionVolume[] portalOcclusionVolumes;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
using UnityEngine.Profiling;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
using UnityEngine.Serialization;
public class Portal : MonoBehaviour
using System;
using UnityEngine;
using UnityEngine.TestTools;
/// <summary>
/// Starts the recursive portal rendering process, taking into account portal occlusion volumes.
/// </summary>
public class PortalRenderer : MonoBehaviour
{
public static PortalRenderer Instance;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
using UnityEngine.Profiling;
using UnityEngine.Serialization;
using LayerMask = UnityEngine.LayerMask;
public class Portal : MonoBehaviour
@limdingwen
limdingwen / doom-3d.py
Created November 19, 2016 07:18
Doom-style 3-D Engine Python (Prototype)
# X is left-right
# Y is forwards-backwards
# Z is up-down
import pygame
import math
import time
def screen_coords(x, y):
return ((x / 2 + 0.5) * SCREEN_WIDTH, (-y / 2 + 0.5) * SCREEN_HEIGHT)
@limdingwen
limdingwen / babify.c
Created November 19, 2016 04:11
Babify
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char** argv) {
const int EXIT_OK = 0;
const int EXIT_BADUSAGE = -1;
if (argc != 2) {
printf("Usage: babify [STRING]\n");
@limdingwen
limdingwen / 0_reuse_code.js
Created August 19, 2016 10:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console