One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
namespace Quantech_mda.mil.Controllers | |
{ | |
[Authorize(Roles = "SuperUser")] | |
public class EventsController : BaseController |
<httpProtocol> | |
<customHeaders> | |
<add name="Access-Control-Allow-Origin" value="*" /> | |
<add name="Access-Control-Allow-Headers" value="Content-Type" /> | |
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" /> | |
</customHeaders> | |
</httpProtocol> |
background-color: rgb(0, 163, 187); | |
background-color: rgb(161, 60, 180); | |
background-color: rgb(166, 50, 50); | |
background-color: rgb(241, 118, 167); | |
background-color: rgb(253, 87, 61); | |
background-color: rgb(255, 0, 122); | |
background-color: rgb(255, 0, 26); | |
background-color: rgb(27, 136, 122); | |
background-color: rgb(31, 161, 93); | |
background-color: rgb(93, 175, 221); |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
CREATE PROC [dbo].[pr_ins_test] | |
@CompanyID INT | |
AS | |
SET NOCOUNT ON |
//26-5-2020 update: possibly shorter, and better, since 'click' now fires on a tap, and is not prevented by the previous script. | |
//Also: more concatenation. | |
$(document).on('touchstart, click', 'a.taphover', function (e) { | |
if (!$(this).hasClass('hover')) { e.preventDefault(); } | |
$('.taphover').not($(this).toggleClass('hover')).removeClass('hover'); | |
}); | |
//the previous version: | |
//taphover - a solution to the lack of hover on touch devices. |
$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
Deploying a node app with Forever is great...until your server restarts unexpectedly. Then your app stops running and you have to re-deploy.
To get around this, we're going to run our node app as an Upstart service. Upstart services are great, because, once started, the system auto-restarts them if they fail, or if the server restarts.
###Step 1: Create a service for your node app
ssh root@youripaddress
service node-app start
##Setup your server (this would ideally be done with automated provisioning)
npm install -g forever
##Install flightplan
npm install -g flightplan
npm install flightplan --save-dev
$method = "PUT" | |
$headerDate = '2014-02-14' | |
$headers = @{"x-ms-version"="$headerDate"} | |
$StorageAccountName = "<your account name>" | |
$StorageContainerName = "etl" | |
$StorageAccountKey = "<your account key>" | |
$Url = "https://$StorageAccountName.blob.core.windows.net/$StorageContainerName/stub.txt" | |
$body = "Hello world" | |
$xmsdate = (get-date -format r).ToString() | |
$headers.Add("x-ms-date",$xmsdate) |