This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope = "Process" | |
$pathElements = @([Environment]::GetEnvironmentVariable("PATH", $scope) -split ";") | |
$pathElements += "D:\Dev\msys64\mingw64\bin" | |
$pathElements += "D:\Dev\msys64\usr\bin" | |
$newPath = $pathElements -join ";" | |
[Environment]::SetEnvironmentVariable("PATH", $newPath, $scope) | |
[System.Diagnostics.Process]::Start("D:\Apps\emacs\bin\runemacs.exe", "--debug-init"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFramework>netcoreapp3.1</TargetFramework> | |
<AssemblyName>Nez</AssemblyName> | |
<RootNamespace>Nez</RootNamespace> | |
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | |
</PropertyGroup> | |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |
<DefineConstants>TRACE;DEBUG</DefineConstants> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> | |
<PropertyGroup> | |
<OutputType>WinExe</OutputType> | |
<TargetFramework>netcoreapp3.1</TargetFramework> | |
<PublishReadyToRun>false</PublishReadyToRun> | |
<TieredCompilation>false</TieredCompilation> | |
<UseWindowsForms>true</UseWindowsForms> | |
</PropertyGroup> | |
<PropertyGroup> | |
<ApplicationManifest>app.manifest</ApplicationManifest> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstddef> | |
#include <array> | |
#include <tuple> | |
template <typename T, std::size_t N> | |
struct Vec | |
{ | |
std::array<T, N> m; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope = "Process" | |
$pathElements = @([Environment]::GetEnvironmentVariable("PATH", $scope) -split ";") | |
$pathElements += "D:\Dev\Go\bin" | |
$pathElements += "D:\Dev\msys64\mingw64\bin" | |
$newPath = $pathElements -join ";" | |
[Environment]::SetEnvironmentVariable("PATH", $newPath, $scope) | |
[Environment]::SetEnvironmentVariable("GOROOT", "D:\Dev\Go", $scope) | |
[Environment]::SetEnvironmentVariable("GOPATH", "D:\Dev\projects\myGo", $scope) | |
[Environment]::SetEnvironmentVariable("CGO_ENABLED", "1", $scope) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <wx/wxprec.h> | |
#ifndef WX_PRECOMP | |
#include <wx/wx.h> | |
#endif | |
class App : public wxApp | |
{ | |
public: | |
bool OnInit(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.1) | |
project(wxApp CXX) | |
set(CMAKE_CXX_STANDARD 11) | |
set(CMAKE_CXX_STANDARD_REQUIRED ON) | |
set(wxWidgets_USE_LIBS) | |
find_package(wxWidgets) | |
include(${wxWidgets_USE_FILE}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# if you can't rely on euclid, what can you rely on? | |
import euclid | |
from euclid import Vector3 | |
class Mesh: | |
def __init__(self, vertices=[], faces=[]): | |
"""Initialises a vertex with a list of faces. Vertex array is a list of Vector3. Face array is a list of 3 tuple indexes into vertex array.""" | |
self.vertex_list = vertices | |
self.face_list = faces |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# if you can't rely on euclid, what can you rely on? | |
import euclid | |
from euclid import Vector3 | |
class Mesh: | |
def __init__(self, vertices=[], faces=[]): | |
"""Initialises a vertex with a list of faces. Vertex array is a list of Vector3. Face array is a list of 3 tuple indexes into vertex array.""" | |
self.vertex_list = vertices | |
self.face_list = faces |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import euclid | |
from euclid import Vector3 | |
# naive first attempt at a mesh representation | |
# a straight list of vertices | |
class Mesh: | |
def __init__(self, vertices=[]): |