This file contains 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
using UnityEngine; | |
using System.Collections; | |
public class LookAtMouse : MonoBehaviour { | |
// speed is the rate at which the object will rotate | |
public float speed; | |
void FixedUpdate () { | |
This file contains 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
* Remember to install NDK and create a standalone toolchain from that * | |
https://gist.github.com/Tydus/11109634 | |
* Remember to add in install of OpenGL dev headers on Ubuntu * | |
``` bash | |
$ sudo apt-get install libpng-dev libjpeg-dev libxxf86vm1 libxxf86vm-dev libxi-dev libxrandr-dev | |
$ sudo apt-get install mesa-common-dev | |
$ sudo apt-get install libpthread-stubs0-dev libgl1-mesa-dev libx11-dev libxrandr-dev libfreetype6-dev libglew1.5-dev libjpeg8-dev libsndfile1-dev libopenal-dev |
This file contains 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
<html> | |
<head> | |
<!-- you can include other scripts here --> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/three.js/r69/three.js"></script> | |
<script src="http://threejs.org/examples/js/controls/TrackballControls.js"></script> | |
<script src="papertowel.json"></script> | |
</head> | |
<body> | |
<script> |
This gist explains the proper way to set up a static ip by altering the correct network file located on the pi. https://gist.github.com/superjamie/ac55b6d2c080582a3e64
Download wakeonlan
program.
This file contains 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
#!/bin/bash | |
if [[ "$(lsb_release -si)" == "Ubuntu" ]]; then | |
sudo apt-get -qq - y install gnustep-gui-runtime | |
fi | |
while : | |
do | |
say "bark" | |
done |
This file contains 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 2.6) | |
project(OpenGL_APP) | |
option(GLFW_BUILD_DOCS OFF) | |
option(GLFW_BUILD_EXAMPLES OFF) | |
option(GLFW_BUILD_TESTS OFF) | |
add_subdirectory(deps/glfw) | |
include_directories("deps/glfw/include" | |
"deps/glad/include/") |
This file contains 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
#ifndef _VECTOR_H | |
#define _VECTOR_H | |
#include <iostream> | |
#include <cmath> | |
template <class t> | |
struct Vec4; |
This file contains 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
#ifndef _MATRIX_H | |
#define _MATRIX_H | |
#include <cmath> | |
#include <algorithm> | |
#include <cstring> | |
#include "vector.h" |