Skip to content

Instantly share code, notes, and snippets.

View code-matt's full-sized avatar

code-matt

  • Bitreel
  • Boston MA
  • 19:06 (UTC -04:00)
View GitHub Profile
@code-matt
code-matt / BorisCamera.cs
Last active January 26, 2023 04:26
Outputs [interpolated transforms] from non-uniform keyframes in 3D space + 1D timeline for camera tracks and other uses. The output path can be sampled with dT or can be used to visualize the spline. Acceleration and rotation changes are very smooth with no tangents needed.. IN TORQUESCRIPT LOL. https://www.youtube.com/watch?v=YiY1A1fmiJw <-result
Thank you Boris :) Where-ever you are my friend 👨‍💻
//Copyright 2023 Matt Thompson
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
//The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, O
@code-matt
code-matt / App.js
Created January 31, 2020 14:11 — forked from drewandre/App.js
export class App extends Component {
constructor(props) {
super(props)
this.BLEManager = new BleManager({
restoreStateIdentifier: 'bleManagerRestoredState',
restoreStateFunction: bleRestoredState => this.handleBLEManagerStateRestoration(bleRestoredState)
})
this.BLEManager.setLogLevel(LogLevel.Verbose)
this.BLEManager.onDeviceDisconnected(() => console.log('hey, device disconnected'))
this.props.actions.saveBLEManager(this.BLEManager)