Skip to content

Instantly share code, notes, and snippets.

View jhalbrecht's full-sized avatar
💭
Grinning; It works! XamarinForms Mqtt secure mosquitto broker connection.

Jeff Albrecht jhalbrecht

💭
Grinning; It works! XamarinForms Mqtt secure mosquitto broker connection.
View GitHub Profile
@jhalbrecht
jhalbrecht / BasicAuthWp7.cs
Created June 15, 2012 03:39
I used this code over https to do basic authentication from wp7 to mvc 4 beta with web api
// I used this article to get the headers right.
// http://cisforcoder.wordpress.com/2010/12/01/how-to-implement-basic-http-authentication-in-wcf-on-windows-phone-7/
// The commented out NetworkCredential that I had tried earlier didn't work.
// I wonder if there is a better way to do this in Mango?
//
// Would like to learn to use asp.net membership with web api from the phone and metro.
// this works for now.
private void btnTest_Click(object sender, System.Windows.RoutedEventArgs e)
{
@jhalbrecht
jhalbrecht / gist:2913733
Created June 12, 2012 00:56
The Lol Fx membership
theLolFx consists of
asp.net MVC 4 web site
Windows phone 7 application
Windows 8 metro application
theLolFx allows for downloading and playing sound effect files. The popularity of the sounds can
be rated on the website. (possibly in a future clients version)
I wish to enable creation of sounds on the client applications and upload to the mvc site.
@jhalbrecht
jhalbrecht / ConverterRatingMultiplier.cs
Created June 8, 2012 05:57
A value converter I used for a Callisto rating
using System;
using Windows.UI.Xaml.Data;
/*
xmlns:callisto="using:Callisto.Controls"
xmlns:lm="using:yaLolFx.Models"
<Page.Resources>
<lm:ConverterRatingMultiplier x:Key="RatingMultiplier" />
</Page.Resources>
@jhalbrecht
jhalbrecht / jFirstInt32.TryParse
Created August 30, 2011 03:53
My first attempt with Int32.TryParse
private string _Angle;
public string Angle {
get {
return this._Angle;
}
set {
if (value != this._Angle) {
@jhalbrecht
jhalbrecht / til311.js
Created February 9, 2015 20:07
til311 demo in bonescript
/*
Jeff Albrecht February 9, 2015
An experiment to display digits on a Texas Instruments TIL311. And practice my .js
http://www.ti.com/lit/ds/symlink/til311.pdf
Not implemented in this til311 experiment
left and right decimal points
configurable blank leading zeros