Skip to content

Instantly share code, notes, and snippets.

Avatar

Brian BrianCraig

  • Temperley, Buenos Aires, Argentina
View GitHub Profile
@BrianCraig
BrianCraig / rust-xtensa.md
Last active Apr 27, 2021
Using rust-xtensa without Xargo and Xbuild, working with VsCode
View rust-xtensa.md

Using rust-xtensa without Xargo and Xbuild

This document explains how to use the rust xtensa tools on Linux, building and flashing without xbuild or xargo, so its easier to run rls (Rust Language Syntax) for better integration on VsCode Rust extension (and probably other IDEs too).
Please if you use Windows and you can make it work, you can contribute forking this gist.

Caveat

I couldn't use RustUp because i ran into different problems while linking the toolchain and usign the vscode extension. Probably could be integrated someway.

Configuring and Compiling Rust

@BrianCraig
BrianCraig / instancing.js
Last active Jun 17, 2016
THREE instancing idea
View instancing.js
var geometry = new THREE.InstancedBufferGeometry();
var material = new THREE.RawShaderMaterial() ;
// For using instances you have to create an InstancedMesh
var instancer = new THREE.InstancedMesh( geometry, material ,{
attributes:{
color: {
type: Float32Array,
size:4,
@BrianCraig
BrianCraig / main.go
Created Nov 11, 2015
Simple App for GoMobile, that logs lifecycle and paints events for debugging purposes
View main.go
// +build darwin linux
package main
import "fmt"
import "golang.org/x/mobile/app"
import "golang.org/x/mobile/event/lifecycle"
import "golang.org/x/mobile/event/paint"