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
// emberjs cookbook: chapter2/example1/app/myObject.js | |
/* | |
Ember.Object is the base class for almost every other Ember object. | |
Routes, models, views, and components all inherit from Ember.Object. | |
It's used everywhere. | |
*/ | |
import Ember from 'ember'; |
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
** git diff --name-only 102439 HEAD | |
C:\inetpub\wwwroot\Wakefly\Websites\MHI\members-health-insurance-mhinsurance.com\CMS>git diff --name-only 102439 HEAD | |
CMS/App_Code/Global.asax.cs | |
CMS/CMSScripts/Custom/addthis_widget.js | |
CMS/CMSScripts/Custom/inline.js | |
CMS/CMSScripts/Custom/jquery-cycle-all-min.js | |
CMS/CMSScripts/Custom/jquery.noty.packaged.min.js | |
CMS/CMSScripts/Custom/main.js | |
CMS/CMSScripts/Custom/main.js.old |
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.webServer> | |
<rewrite> | |
<rules> | |
<rule name="Add www to HTTPS" stopProcessing="true"> | |
<match url="(.*)" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="^www\.site2\.com$" negate="true" /> | |
<add input="{HTTPS}" pattern="On" /> |
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
// strip html tags from string | |
// https://css-tricks.com/snippets/javascript/strip-html-tags-in-javascript/ | |
(function ($) { | |
var strippedString, items = $('.selector'); | |
$.each(items, function (value) { | |
var currentText = $(this).text(); | |
strippedString = currentText.replace(/(<([^>]+)>)/ig,""); | |
$(this).html(strippedString); | |
}); |
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#" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>URL Rewrite Module Test</title> | |
</head> | |
<body> | |
<h1>URL Rewrite Module Test Page</h1> | |
<table> |
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
<rewrite> | |
<!-- Have a bunch of redirects? Put them in a separate file --> | |
<rules configSource="Rewrites.config" /> | |
<rules> | |
<!-- Simple rewrite --> | |
<rule name="Simple rewrite" stopProcessing="true"> | |
<match url="^path/sub path/page\.aspx$" /> | |
<action type="Rewrite" url="/newpath.aspx" /> |
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
<rule name="Rewrite rule2 for Redirects" stopProcessing="true"> | |
<match url="GFB" /> | |
<!-- localhost --> | |
<conditions> | |
<add input="{HTTPS}" pattern="off" ignoreCase="true" /> | |
<add input="{HTTP_HOST}" pattern="localhost" negate="true" /> | |
</conditions> | |
<!-- localhost --> | |
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; | |
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 |
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
http://stackoverflow.com/questions/27386169/change-site-url-to-localhost-during-jekyll-local-development | |
Let's say we have the local site served at http://localhost and the production site served at https://username.github.io/myProject. | |
We leave the _config.yml with url: https://username.github.io and baseurl: /myProject | |
We create a new _config_dev.yml with only url: https://localhost and baseurl: "" | |
Now to test locally : |