Skip to content

Instantly share code, notes, and snippets.

View Drenerdo's full-sized avatar

Andre Smith Drenerdo

View GitHub Profile
/*jslint node:true,vars:true,bitwise:true,unparam:true */
/*jshint unused:true */
/*
The Local Temperature Node.js sample application distributed within Intel® XDK IoT Edition under the IoT with Node.js Projects project creation option showcases how to read analog data from a Grover Starter Kit Plus – IoT Intel® Edition Temperature Sensor, start a web server and communicate wirelessly using WebSockets.
MRAA - Low Level Skeleton Library for Communication on GNU/Linux platforms
Library in C/C++ to interface with Galileo & other Intel platforms, in a structured and sane API with port nanmes/numbering that match boards & with bindings to javascript & python.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WaveSpawner : MonoBehaviour
{
public enum SpawnState { SPAWNING, WAITING, COUNTING };
[System.Serializable]
public class Wave
{
using UnityEngine;
using System.Collections;
[RequireComponent(typeof(Collider))]
public class PunchableBodyParts : MonoBehaviour
{
public EnemyController enemy;
void OnTriggerEnter(Collider col)
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WeaponThrow : MonoBehaviour {
public Rigidbody rigidbody;
void Update () {
if (Input.GetKeyDown (KeyCode.Space)) {
@Drenerdo
Drenerdo / bodycollision.cs
Created January 23, 2018 07:45
BodyCollision Script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BodyCollision : MonoBehaviour
{
public StairDismount stairDismount;
void OnCollisionEnter(Collision col)
{
using UnityEngine;
using System.Collections;
public class HingeJointTarget : MonoBehaviour
{
public HingeJoint hj;
public Transform target;
[Tooltip("Only use one of these values at a time. Toggle invert if the rotation is backwards.")]
public bool x, y, z, invert;
using UnityEngine;
using System;
using System.Collections;
using Mathx;
namespace Mathx
{
public enum TrigType { Sin, Cos, Tan }
public static class Trig3
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Pointer : MonoBehaviour
{
//[System.Serializable]
//public class HoverCallback : UnityEvent<Transform> { }
//[System.Serializable]
//public class SelectionCallback : UnityEvent<Transform> { }
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NonUIInteraction : MonoBehaviour {
public UnityEngine.UI.Text outText;
protected Material oldHoverMat;
public Material yellowMat;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharacterArms : MonoBehaviour
{
protected int armIndex = 0;
public Rigidbody[] arm;
public Rigidbody chestBody;