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
// make all your MVC controllers inherit this one instead of System.Web.Mvc.Controller directly | |
using System.Web.Mvc; | |
using System.Diagnostics; | |
public class ApprovalController : Controller | |
{ | |
static NLog.Logger log = NLog.LogManager.GetCurrentClassLogger(); | |
protected override void OnActionExecuting(ActionExecutingContext ctx) |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.web> | |
<webServices> <!-- allow testing .asmx from remote browsers --> | |
<protocols> | |
<add name="HttpGet" /> | |
<add name="HttpPost" /> | |
</protocols> | |
</webServices> | |
</system.web> |
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
#include <IRremote.h> | |
IRsend irsend; | |
//samsung tv power on/off | |
unsigned int S_pwr[68]={4600,4350,700,1550,650,1550,650,1600,650,450,650,450,650,450,650,450,700,400,700,1550,650,1550,650,1600,650,450,650,450,650,450,700,450,650,450,650,450,650,1550,700,450,650,450,650,450,650,450,650,450,700,400,650,1600,650,450,650,1550,650,1600,650,1550,650,1550,700,1550,650,1550,650}; | |
void setup() | |
{ | |
Serial.begin(9600); | |
} |
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
<%@ Page Language="C#" AutoEventWireup="true" %> | |
<%@Import Namespace="System.IO.Ports" %> | |
<script runat="server"> | |
protected void Page_Load(object sender, EventArgs e) | |
{ | |
using (SerialPort sp = new System.IO.Ports.SerialPort()) | |
{ | |
sp.PortName = "COM3"; | |
sp.BaudRate = 9600; |