View CameraBall.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using VRTK;
public class CameraBall : MonoBehaviour {
public VRTK_SDKManager sdk;
public VRTK_InteractGrab grabbing;
View script.cs
using System.Collections.Generic;
using UnityEngine;
class LiveScript : BaseScript
{
protected TKObject cube;
void Start()
{
cube = lctk.CreateObject(PrimitiveType.Cube);
View gist:20fafce3c63fa7797189a013fd74eca7
# Probably needs to be moved to fsharp
if pkg-config FSharp.Core
then
export FSharpTargetsPath="$(dirname $(pkg-config FSharp.Core --variable=Libraries))/Microsoft.FSharp.Targets"
fi
View gist:c2d54b6a90b5940ec12b7b85a74e3418
#> cat `which fsautocomplete`
#! /nix/store/g6l32ncr8vlpprlmv9kgr4qksx929cbj-bash-4.4-p12/bin/bash -e
export MONO_PATH="/nix/store/8a5l0w4ywnfgc6xbvr7jcvkas7j6mvjg-FSharp.AutoComplete-0.18.2/lib/mono/4.5"
exec "/nix/store/p305z9r6mv628zh4p55r805ncd2bsx9h-mono-4.0.4.1/bin/mono" "/nix/store/8a5l0w4ywnfgc6xbvr7jcvkas7j6mvjg-FSharp.AutoComplete-0.18.2/lib/dotnet/FSharp.AutoComplete/fsautocomplete.exe" "${extraFlagsArray[@]}" "$@"
#> ls /nix/store/8a5l0w4ywnfgc6xbvr7jcvkas7j6mvjg-FSharp.AutoComplete-0.18.2/
bin lib
#> ls /nix/store/8a5l0w4ywnfgc6xbvr7jcvkas7j6mvjg-FSharp.AutoComplete-0.18.2/lib
dotnet pkgconfig
View gist:cd48b52e6ef33f3eb092e3ef7a7841ce
#> echo "$(nix-build '<nixpkgs>' -A dotnetPackages.FSharpAutoComplete)/lib/mono/4.5"
/nix/store/4v9xjgvdv1g8a1i2681ljl75v4v88myj-FSharp.AutoComplete-0.18.2/lib/mono/4.5
#> cat `which fsautocomplete` | grep exec
exec "/nix/store/lhcxz06s79pi7s24845r00jxwaclz1k3-mono-4.0.4.1/bin/mono" "/nix/store/4v9xjgvdv1g8a1i2681ljl75v4v88myj-FSharp.AutoComplete-0.18.2/lib/dotnet/FSharp.AutoComplete/fsautocomplete.exe" "${extraFlagsArray[@]}" "$@"
View config.nix
{
allowUnfree = true;
packageOverrides = pkgs : {
dotnetPackages = pkgs.dotnetPackages.override {
overrides = {
FSharpAutoComplete = pkgs.lib.addMetaAttrs {
platforms = with pkgs.stdenv.lib.platforms; linux ++ darwin;
} pkgs.dotnetPackages.FSharpAutoComplete;
};
};
View default.nix
{ pkgs, lib }:
with lib;
with builtins;
rec {
export = { source, user, repo, ... }: let
# use the main emacs package
pkgGen = pkgs.emacsPackagesNgGen pkgs.emacs;
# install htmlize for emacs
View default.nix
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.plugins.org-build;
build = { source }: let
# the build uses emacs to perform the conversion
env = { buildInputs = [ pkgs.emacs ]; };
View export.nix
options.plugins.org-export = {
sources = mkOption {
type = with types; attrOf path;
description = ''
The source orgfile to build as init.el
'';
};
};
View emacs.nix
# export init.org to Github Pages
result = pkgs.org-export.export {
source = ./init.org;
user = "dustinlacewel";
repo = "emacs.d";
token = builtins.getEnv "GITHUB_PUBLIC_REPO_TOKEN";
};