Skip to content

Instantly share code, notes, and snippets.

@wizcas
wizcas / wiz-lambda.zsh-theme
Last active August 30, 2019 10:51
wiz-lambda
#!/usr/bin/env zsh
local LAMBDA="%(?,%{$fg_bold[green]%}λ,%{$fg_bold[red]%}λ)"
if [[ "$USER" == "root" ]]; then USERCOLOR="red"; else USERCOLOR="yellow"; fi
# Git sometimes goes into a detached head state. git_prompt_info doesn't
# return anything in this case. So wrap it in another function and check
# for an empty string.
function check_git_prompt_info() {
if git rev-parse --git-dir > /dev/null 2>&1; then
@wizcas
wizcas / freelook.cs
Last active March 28, 2018 08:05
Free-look Camera Controller
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Cheers;
public class FreeLook : MonoBehaviour
{
public float mouseSpeed = 10f;
public float minYaw = -40;
public float maxYaw = 40;