Archive for the ‘Programming’ Category

Experiments with C# on a Mac.

Thursday, May 7th, 2015

Noticing a pattern here….?

So task for tonight was to try and run a simple C# app on the Mac and since Microsoft Build ’15, they’ve announced a number of things to help people with any OS use MS tools.
(more…)

Programming Challenge Day 3.

Wednesday, January 1st, 2014

Task for today are:
– Ask for a name
– If its Bob/Alice, display one message
– If its not Bob/Alice, display a different message.

Javascript

var stdIn = WScript.StdIn
var str = ""

stdOut.WriteLine("Name?");
	
while (!stdIn.AtEndOfStream)
{
	str = stdIn.ReadLine()
	if (str == "Bob") 
		{sayHello(str)}
	else if (str == "Alice")
		{sayHello(str)}
	else 
		{WScript.Echo ("Hello")}
	
	WScript.Quit();
}

function sayHello (name)
{
	WScript.Echo ("Hello " + name);
}

Power Shell

$name = read-host "Name please?"

if ($name -eq "Bob") {write-host "Hello Bob"}
elseif ($name -eq "Alice") {write-host "Hello Alice"}
else{write-host "Hello"}

CSharp.

using System;

class HelloCsharp
{
       static void Main()
       {
			string Name;
			
			Console.WriteLine("Name?");
			Name = Console.ReadLine ();
            if (Name == "Bob" || Name == "Alice")
				{ DisplayHello (Name);}
			else
				{ Console.WriteLine ("Hello"); }
       }
	   
	   static void DisplayHello(string Name)
	   {
			Console.WriteLine ("Hello " + Name); 
	   }
}

Programming Challenge Day 2.

Thursday, December 12th, 2013

Ask for a name, say “Hello, <name>”
(more…)

Programming Challenge. Day 1. Hello World

Tuesday, December 10th, 2013

So, found this link the other day:

(Twitter post is me, I accept that, but follow the short link :D)

(more…)

Unity iOS Game Development framework free until Apr 8th

Wednesday, March 7th, 2012

My friends at work have created some great apps with this framework for their phones and pads. I’ve wanted to get in there and give it a go, but the cost kept me away. Until now 😉

Unity3D site

Powershell nuggets

Monday, February 20th, 2012

Just to prove I’m not just an Apple fanboy, here are some great videos for learning Microsoft’s Powershell scripting language. Search YouTube for concentratedDon and gotcha Powershell.

Or follow the link

I’ll be adding that to my list of things to read and watch.

Thanks to Scriptimus for that one.