Skip to content

Instantly share code, notes, and snippets.

@foxxjnm
foxxjnm / lbbTemp
Created June 4, 2015 01:52
LightBlue Bean temperature sender
void setup()
{
// Bean Serial is at a fixed baud rate. Changing the value in Serial.begin() has no effect.
Serial.begin();
}
void loop()
{
//Convert to Fahrenheit
int temperature = (Bean.getTemperature() * 9.0)/ 5.0 + 32.0;
@foxxjnm
foxxjnm / Blur.cs
Created February 16, 2015 15:58
Xamarin.iOS Image Blur
public static UIImage Blur(this UIImage image, float blurRadius = 25f)
{
if (image != null)
{
// Create a new blurred image.
var imageToBlur = new CIImage (image);
var blur = new CIGaussianBlur ();
blur.Image = imageToBlur;
blur.Radius = blurRadius;