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
/* | |
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 |
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
private string _Angle; | |
public string Angle { | |
get { | |
return this._Angle; | |
} | |
set { | |
if (value != this._Angle) { |
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 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> |
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
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. |
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
// 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) | |
{ |
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
async void OnSocketMessageReceived(DatagramSocket sender, DatagramSocketMessageReceivedEventArgs args) | |
{ | |
if (_connection.Writer == null) | |
ConnectToRemoteSocket(args.RemoteAddress, args.RemotePort); | |
var reader = args.GetDataReader(); | |
var messageType = (WireMessageType)reader.ReadInt32(); | |
switch (messageType) | |
{ | |
case WireMessageType.PlayerLeave: | |
if (PlayerExited != null) |
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 System; | |
using Windows.UI; | |
using Windows.UI.Xaml.Data; | |
using Windows.UI.Xaml.Media; | |
namespace Decisive.Common | |
{ | |
public sealed class HeadsOrTailsToColorConverter : IValueConverter | |
{ | |
public object Convert(object value, Type targetType, object parameter, string language) |
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/env python | |
''' | |
Created on Jan 21, 2012 | |
@author: jeffa aka @jhalbrecht | |
''' | |
# jha 8/17/2013 | |
# Prepare code for publishing. |
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
var j5 = require("johnny-five"), | |
board = new j5.Board(); | |
board.on("ready", function () { | |
var ping, button, lights, ginches, lowerLimit, offset; | |
ping = new j5.Ping({ | |
pin: 8, | |
freq: 250 | |
}); |
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
void Main() | |
{ | |
var playlists = PlayListFaker.Generator.Generate(5).ToList(); | |
playlists.Dump(); | |
} | |
public class PlayListFaker : PlayList | |
{ | |
static Random random = new Random(); | |
public static Faker<PlayList> Generator |
OlderNewer