This file contains hidden or 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
#region File Description | |
//----------------------------------------------------------------------------- | |
// UserInput.cs | |
// | |
// Author: Devin Kelly-Collins | |
// | |
// Kansas State Univerisity CIS 580 Fall 2012 Dungeon Crawler Game | |
// Copyright (C) CIS 580 Fall 2012 Class. All rights reserved. | |
// Released under the Microsoft Permissive Licence | |
//----------------------------------------------------------------------------- |
This file contains hidden or 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
///<summary> | |
/// Contains functions to load text files as common collections. | |
///</summary> | |
public class IOHelper | |
{ | |
#region Text IO | |
/// <summary> | |
/// Attempts to load in a dictionary from a basic text file. | |
/// </summary> | |
/// <typeparam name="TKey">The type of the key.</typeparam> |
This file contains hidden or 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
///<summary> | |
///Handles processing data of type T. Subclass implements process and handles storing results. | |
///</summary> | |
public abstract class QueueProcessor<T> | |
{ | |
private Queue<T> _data; | |
private BackgroundWorker _worker; | |
private bool _stopOnEmpty; | |
public delegate ErrorHandler(Exception e); |
This file contains hidden or 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 BootstrapSupport | |
@model Object | |
<div class="container"> | |
@using (Html.BeginForm()) | |
{ | |
@Html.ValidationSummary(true) | |
<fieldset class="form-horizontal"> | |
<legend>@Model.GetLabel() <small>Details</small></legend> | |
@foreach (var property in Model.VisibleProperties()) |
This file contains hidden or 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; | |
namespace Sum | |
{ | |
class Program | |
{ | |
//Estimates the perimeter of a circle of radius 1 using Archimededes formulas | |
static void Main(string[] args) | |
{ | |
int n = 96; //n-polygon to estimate with. |
This file contains hidden or 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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int numOfCoPrimes = 0; | |
for (int i = 1; i < 1225; i++) | |
{ | |
int g = gdc(i, 1225); | |
if (g == 1) | |
numOfCoPrimes++; |
This file contains hidden or 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
declare module ngTable { | |
class ngTableParams { | |
data:any[]; | |
constructor(parameters:any, settings:any); | |
parameters(newParameters:string, parseParamsFromUrl:string):any; | |
settings(newSettings:string):any; |
This file contains hidden or 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
/// <summary> | |
/// Non-Generic BaseForm. Provides functionality for retrieving the controller. | |
/// </summary> | |
public class BaseForm : Form | |
{ | |
/// <summary> | |
/// Gets the controller for the given type. | |
/// </summary> | |
/// <typeparam name="T"></typeparam> | |
/// <returns></returns> |
This file contains hidden or 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
package com.dkellycollins.ioc; | |
import java.util.HashMap; | |
import java.util.Map; | |
/** | |
* Manages class instances. | |
*/ | |
public abstract class Module { |
This file contains hidden or 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
/** | |
* Provides the ability to fetch global plugin objects. | |
*/ | |
class PluginService { | |
static $inject = ['$ionicPlatform', '$window', '$q', '$log']; | |
constructor(private $ionicPlatform: ionic.platform.IonicPlatformService, | |
private $window: ng.IWindowService, | |
private $q: ng.IQService, | |
private $log: ng.ILogService) { |
OlderNewer