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
Console.WriteLine("Enter the first day of the week (day, month, year) eg(24, 02, 2013)"); | |
string userInput = Console.ReadLine(); | |
if (dateArray[0] < 1 && dateArray[0] > 31 || dateArray[1] < 1 && dateArray[1] > 12 || dateArray[2] < 1000 && dateArray[2] > 2013) | |
{ | |
Console.WriteLine("Incorrect form for a date. Please try again."); | |
InputHours(); | |
} | |
string[] splitDate = userInput.Split(','); | |
for (int i = 0; i < splitDate.Length; i++) |
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 System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
//http://collabedit.com/pg9sd | |
namespace Lab1 | |
{ | |
class Driver | |
{ |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Untitled</title> | |
<link rel="stylesheet" href="css/style.css"> | |
<link rel="author" href="humans.txt"> | |
</head> |
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
foreach (var s in data.AllPeople.Where(person => person.ZipCode.ToString().Contains("3"))) | |
{ | |
Console.WriteLine(s.ToString()); | |
} | |
Console.ReadLine(); |
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 System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Lab3 | |
{ | |
class Program | |
{ |
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 void updateDatabaseView(InventoryCategory selectedCategory) | |
{ | |
String typeString = "InventoryProject." + selectedCategory.ToString(); | |
Type selectedType = Type.GetType(typeString); | |
if (selectedType != null) | |
{ | |
List<IInventoryItem> selectedItems = new List<IInventoryItem>(); | |
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
// Reads workout from readWorkout.php | |
public function readWorkouts(kind:int) | |
{ | |
var workoutLoader:urlLoader = new URLLoader; | |
var workoutVariables:URLVariables = new URLVariables; | |
var workoutURL:urlRequest = new urlRequest(path + "readWorkout.php"); | |
workoutVariables.uid = userId; | |
workoutVariables.kind = kind; | |
workoutURL.data = workoutVariables; |
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
<?xml version="1.0"?> | |
<configuration> | |
<configSections> | |
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> | |
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> | |
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> | |
</sectionGroup> | |
</configSections> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
For more information on how to configure your ASP.NET application, please visit | |
http://go.microsoft.com/fwlink/?LinkId=301880 | |
--> | |
<configuration> | |
<connectionStrings> | |
<!--todo: change connectionString to correct database--> | |
<add name="MembershipConnectionString" connectionString="Data Source=50.56.188.176;Initial Catalog=Membership;Persist Security Info=True;User ID=sa;Password=lQ1%\ZUH;" providerName="System.Data.SqlClient"/> |
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
package learnlejos; | |
import lejos.nxt.*; | |
/** | |
* Created by blakebishop on 5/6/14. | |
*/ | |
public class ThreadTest { | |
public static void main(String[] args) { | |
// TouchListener touchListener = new TouchListener(); |
OlderNewer