<author>/<type>/<ticket>/<title>
revett/feature/24101/skeleton-service-for-email-sender
Simple demonstrations of putting AVR microcontrollers to sleep in power-down mode, | |
which results in minimum current. Coded with Arduino IDE version 1.0.4 (and with | |
the Arduino-Tiny core for the ATtiny MCUs, http://code.google.com/p/arduino-tiny/) | |
For ATmega328P, ~0.1µA. | |
For ATtinyX5 revisions that implement software BOD disable, ~0.1µA, | |
for ATtinyX5 revisions that don't, ~20µA. |
// Wizard to convert a cubemap to an equirectangular cubemap. | |
// Put this into an /Editor folder | |
// Run it from Tools > Cubemap to Equirectangular Map | |
using UnityEditor; | |
using UnityEngine; | |
using System.IO; | |
class CubemapToEquirectangularWizard : ScriptableWizard { |
// https://frarees.github.io/default-gist-license | |
using System; | |
using UnityEngine; | |
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)] | |
public class MinMaxSliderAttribute : PropertyAttribute | |
{ | |
public float Min { get; set; } | |
public float Max { get; set; } |
public AudioSource audioSauce; | |
public string CurrentAudioInput = "none"; | |
int deviceNum = 0; | |
void Start() | |
{ | |
string[] inputDevices = new string[Microphone.devices.Length]; | |
deviceNum = 0; |
/* OpenSimplex Noise in C# | |
* Ported from https://gist.github.com/KdotJPG/b1270127455a94ac5d19 | |
* and heavily refactored to improve performance. */ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
namespace NoiseTest |
using UnityEngine; | |
using System.Collections; | |
using System.Runtime.InteropServices; | |
public class VideoPicker : MonoBehaviour { | |
public Texture2D shareButtonImage; // Use this for initialization | |
[DllImport("__Internal")] | |
private static extern void OpenVideoPicker(string game_object_name, string function_name); |
Shader "Custom/CheapToggle" | |
{ | |
Properties | |
{ | |
_ColorA ( "Color A", Color ) = ( 1, 1, 1, 1 ) | |
_ColorB ( "Color B", Color ) = ( 1, 1, 1, 1 ) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
_Metallic ("Metallic", Range(0,1)) = 0.0 |
Follow the simple steps in the order mentioned below to have your USB drive mounted on your Raspberry Pi every time you boot it.
These steps are required especially if your are setting up a Samba share, or a 24x7 torrent downloader, or alike where your Raspberry Pi must have your external storage already mounted and ready for access by the services / daemons.
Step 0. Plug in your USB HDD / Drive to Raspberry Pi If you are using a NTFS formatted drive, install the following
using UnityEngine; | |
using System.Collections; | |
public class QuadTreeTest : MonoBehaviour { | |
public class TestObject : IQuadTreeObject{ | |
private Vector3 m_vPosition; | |
public TestObject(Vector3 position){ | |
m_vPosition = position; | |
} | |
public Vector2 GetPosition(){ |