Skip to content

Instantly share code, notes, and snippets.

<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName cloud.domain.com
ServerAlias cloud.domain.com
DocumentRoot /mnt/drive/cloud.domain.com/www
<Directory /mnt/drive/cloud.domain.com/www>
Options Indexes FollowSymLinks
@lxnr-p
lxnr-p / CubemapToEquirectangularWizard.cs
Created September 26, 2019 08:00 — forked from Farfarer/CubemapToEquirectangularWizard.cs
Create dynamic equirectangular maps for Unity. These have the benefit that, as they're flat images, you can sample lower mips to get blurry reflections. The straight cubemap version (detailed here: http://www.farfarer.com/blog/2011/07/25/dynamic-ambient-lighting-in-unity/ ) will give you hard seams when you sample mips from the cubemap. Although…
// 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 {
@lxnr-p
lxnr-p / arduino_processing_analog_audio_file.md
Created September 7, 2016 15:09 — forked from timpulver/arduino_processing_analog_audio_file.md
How to trigger an audio file with an analog sensor using Processing and Arduino

Keywords: Arduino, Processing, Serial, Communication, Analog, Sensor, Distance, Pressure, Prototyping, Minim, Audio, MP3, Play, Audio File
Author: Tim Pulver
Last update: 2015-12-07

Wiring

In this example we are using an analog distance sensor (Sharp 2Y0A02). The setup will be very similar when you are using another sort of analog sensor (e.g. an analog pressure sensor). Make sure to know the right pin order. What mostly works here is to google for the part you want to use (e.g. pressure sensor) together with the keyword arduino, so e.g. arduino pressure sensor. You will then find some images showing how to wire the sensor up. In all cases you need to connect one wire to 5V on the Arduino (red here), one to GND / Ground (black here) and one to an analog pin – in this case A0 (yellow / white / green wire).

Distance Sensor Hookup Image