Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View thoys's full-sized avatar

Thijs Wenker thoys

View GitHub Profile
@thoys
thoys / DiffFixer.csproj
Created August 18, 2021 01:13
Fixup weird float changes in Core GIT Project
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DiffPlex" Version="1.7.0" />
<PackageReference Include="LibGit2Sharp" Version="0.26.2" />

Keybase proof

I hereby claim:

  • I am thoys on github.
  • I am thoys (https://keybase.io/thoys) on keybase.
  • I have a public key whose fingerprint is 15CB 20DC 5638 C853 46CB F6FE 0A15 12D3 7398 4089

To claim this, I am signing this object:

var i = 0;
Script.setInterval(function() {
i += Math.random();
MyAvatar.setJointData("LeftHand", Quat.fromPitchYawRollDegrees(0, 180 + Math.abs((i % 120) - 60), 0));
MyAvatar.setJointData("RightHand", Quat.fromPitchYawRollDegrees(0, 180 - Math.abs((i % 120) - 60), 0));
MyAvatar.setJointData("LeftArm", Quat.fromPitchYawRollDegrees(0, 0, Math.abs(((i + 50) % 120) - 60)));
MyAvatar.setJointData("RightArm", Quat.fromPitchYawRollDegrees(0, 0, -Math.abs((i % 120) - 60)));
MyAvatar.setJointData("LeftForeArm", Quat.fromPitchYawRollDegrees( -Math.abs((i % 120) - 60), 0, 0));
MyAvatar.setJointData("RightForeArm", Quat.fromPitchYawRollDegrees( -Math.abs((i % 120) - 60), 0, 0));
//MyAvatar.setJointData("Head", Quat.fromPitchYawRollDegrees(Math.abs((i - 120) % 240) , Math.abs((i - 120) % 240), Math.abs((i - 120) % 240)));
@thoys
thoys / move-Judas-his-models-to-github.js
Last active August 29, 2015 14:16
move-Judas-his-models-to-github.js
var entities = Entities.findEntities(MyAvatar.position, 1000);
var oldURL = "https://dl.dropboxusercontent.com/u/10483952/";
var newURL = "https://raw.githubusercontent.com/judasshuffle/JudasHIFI/master/";
for (var i = 0; i < entities.length; i++) {
var entityID = Entities.identifyEntity(entities[i]);
var props = Entities.getEntityProperties(entityID);
if (props['modelURL'].substr(0, oldURL.length) === oldURL) {
var postpart = props['modelURL'].substr(oldURL.length - props['modelURL'].length);
function length(v) {
return Math.sqrt(v.x * v.x + v.y * v.y + v.z * v.z);
}
var LEFT_PALM = 0;
var LEFT_TIP = 1;
var LEFT_BUTTON_FWD = 5;
var LEFT_BUTTON_3 = 3;
var RIGHT_PALM = 2;
var RIGHT_TIP = 3;