Skip to content

Instantly share code, notes, and snippets.

Avatar
🎮
writing games

Frank Hale frankhale

🎮
writing games
  • Clearwater, Florida
View GitHub Profile
View HelloWorld.cs
using System;
namespace Hello
{
class World
{
static void Main(string[] args)
{
Console.WriteLine("Hello,World!");
}
@frankhale
frankhale / Title.cs
Created Mar 14, 2011
Title class and list getter
View Title.cs
public class Title
{
public string Name { get; set; }
public int ID { get; set; }
}
...
public List<Title> populateTitle()
{
@frankhale
frankhale / questions.xml
Created May 3, 2011
Exam Assistant Question datafile format
View questions.xml
<?xml version="1.0" encoding="utf-8" ?>
<questions>
<question>
<text>The text of the question goes here</text>
<answers>
<answer correct="true">This is the answer</answer>
<answer correct="false">Answer 2</answer>
<answer correct="false">Answer 3</answer>
<answer correct="false">Answer 4</answer>
</answers>
@frankhale
frankhale / Wiki.cs
Created Sep 21, 2011
Autumn controller sample
View Wiki.cs
namespace Wiki.Controllers
{
public class DataConnector : IBoundActionObject
{
public WikiDataClassesDataContext DB { get; internal set; }
public void ExecuteBeforeAction()
{
DB = new WikiDataClassesDataContext();
}
@frankhale
frankhale / test.cs
Created Oct 2, 2011
Hello World from Montauk
View test.cs
using Montauk;
public class App : MontaukApplication
{
public App()
{
Get["/Index"] = (args) =>
{
ViewTags["message"] = "Hello, World!";
@frankhale
frankhale / index.html
Created Nov 7, 2011
Montauk Hello,World - Index view
View index.html
%%Master=App%%
{{message}}
@frankhale
frankhale / app.html
Created Nov 7, 2011
Montauk Hello,World - master view
View app.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello, World!</title>
</head>
<body>
%%View%%
</body>
</html>
@frankhale
frankhale / SampleMaster.html
Created May 23, 2012
Sample Aurora Master Page
View SampleMaster.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{{title}}</title>
%%Head%%
</head>
<body>
%%View%%
</body>
@frankhale
frankhale / SampleAction.html
Created May 23, 2012
Sample Aurora Action View
View SampleAction.html
%%Master=SomeMasterPage%%
[[
<!-- Any HEAD includes you want would go here -->
]]
<div class="content">
{{content}}
</div>
@frankhale
frankhale / ReflectionExample.cs
Created May 23, 2012
Simple C# Reflection Example
View ReflectionExample.cs
using System;
using System.Linq;
using System.Reflection;
namespace ReflectionExample
{
[AttributeUsage(AttributeTargets.Method)]
class Foo : Attribute
{
public string Bar { get; private set; }