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
    
  
  
    
  | namespace DailyCode | |
| module Geometry = | |
| // 2d point class | |
| type Point2d (x, y) = | |
| member this.X = x | |
| member this.Y = y | |
| override this.ToString() = sprintf "(%f, %f)" this.X this.Y | |
| static member (+) (a : Point2d, b : Point2d) = Point2d (a.X + b.X, a.Y + b.Y) | 
  
    
      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
    
  
  
    
  | /// Player movement script | |
| /// arg0 = velocity | |
| /// should be called in a step | |
| { | |
| // Local vars & args | |
| velocity = argument[0]; | |
| xVel = 0; | |
| yVel = 0; | |
| // check keyboard events | 
  
    
      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
    
  
  
    
  | let tryBoxOperation operation (item: string) = | |
| try | |
| Some (box (operation(item))) | |
| with | |
| | _ -> None | |
| let getAppSetting (key: string) defaultValue = | |
| let tryConvert = | |
| match box defaultValue with | |
| | :? bool -> tryBoxOperation System.Convert.ToBoolean | 
  
    
      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
    
  
  
    
  | /***** | |
| AquaLight - Versin 2.0 (rewritten after accidentally deleting my project after a year) | |
| Ryan Kilkenny - 12/26/2010 | |
| basic functions: | |
| * RTC - timing functions | |
| * Serial LCD - Clock Display, future menu system | |
| * PWM - LED light control | |
| program | 
  
    
      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
    
  
  
    
  | <#@ template language="C#" tier="0" #> | |
| <#@ import namespace="System.Data"#> | |
| <#@ import namespace="System.Data.SqlClient"#> | |
| <#@ import namespace="System.IO"#> | |
| <Biml xmlns="http://schemas.varigence.com/biml.xsd"> | |
| <# | |
| /* Declare variables */ | |
| string MetadataConnection = "Server=CLNZ-SqlStage\\ENERGYSERVICES;Initial Catalog=EMV_AR_dev_DC;Integrated Security=SSPI;Provider=SQLNCLI11.1"; // The connection string to the metadata database. This is hardcoded. | |
| string serverName = @"CLNZ-SQLSTAGE\ENERGYSERVICES"; | 
  
    
      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
    
  
  
    
  | /* | |
| Shower Contoller | |
| 8/9/2010 - Ryan Kilkenny | |
| features: | |
| -relays to control two valves and a pump (main & recirculation) | |
| * digital pins 13,12,11 | |
| -thermistor to detect temp of hot water pipe | |
| -hall effect sensor to detect when soap is in use | 
  
    
      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
    
  
  
    
  | ' QBasic Modem Wars Program | |
| ' Ryan Kilkenny | |
| ' 9/29/1997 | |
| DECLARE SUB p2check () | |
| DECLARE SUB p2path () | |
| DECLARE SUB p2fire () | |
| DECLARE SUB p2up () | |
| DECLARE SUB p2right () | |
| DECLARE SUB p2left () | 
  
    
      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
    
  
  
    
  | ;******************************************************************** | |
| ;******************************************************************** | |
| ;***** Author: Ryan Kilkenny ************* | |
| ;***** Project: Senior Project ************* | |
| ;***** Title: MIDI Controlled Analog Synthesizer ************* | |
| ;***** Date: November 02, 2001 ************* | |
| ;******************************************************************** | |
| ;******************************************************************** | |
| ;***** MIDI receiver and converter that will control ************* | |
| ;***** an analog synthesizer through a D/A converter ************* |