Skip to content

Instantly share code, notes, and snippets.

View anderslanglands's full-sized avatar

Anders Langlands anderslanglands

View GitHub Profile
@anderslanglands
anderslanglands / env_vars.ps1
Created August 15, 2021 03:52
conda vcvars setup
# Setup VS environment
cmd.exe /c "set > %temp%\vcvars_before.txt"
cmd.exe /c "call `"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat`" && set > %temp%\vcvars_2019.txt"
Get-Content "$env:temp\vcvars.txt" | Foreach-Object {
if ($_ -match "^(.*?)=(.*)$") {
Set-Content "env:\$($matches[1])" $matches[2]
}
}
@anderslanglands
anderslanglands / CMakeLists.txt
Created June 28, 2021 04:58
write_deep_tiled
cmake_minimum_required(VERSION 3.5)
project(write_deep_tiled)
find_package(Imath 3.0.1)
find_package(OpenEXR 3.0.1)
add_executable(write_deep_tiled main.cpp)
target_link_libraries(write_deep_tiled OpenEXR::OpenEXR Imath::Imath)
#include <Imath/half.h>
#define CPPMM_IGNORE __attribute__((annotate("cppmm:ignore")))
#define CPPMM_RENAME(x) __attribute__((annotate("cppmm:rename:" #x)))
namespace cppmm_bind {
namespace Imath {
class half {
half() CPPMM_RENAME(create_default);
half(float f) CPPMM_RENAME(create_from_float);
@anderslanglands
anderslanglands / maya2018install.sh
Created April 7, 2019 21:58 — forked from nrtkbb/maya2018install.sh
Maya 2018 Installation on Ubuntu 18.04
#!/bin/bash
#Make sure we’re running with root permissions.
if [ `whoami` != root ]; then
echo Please run this script using sudo
echo Just type “sudo !!”
exit
fi
#Check for 64-bit arch
if [uname -m != x86_64]; then
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline