Skip to content

Instantly share code, notes, and snippets.

@danbramall
danbramall / accessible-menu.css
Created March 23, 2018 17:40 — forked from AllThingsSmitty/accessible-menu.css
Accessible dropdown menu
/* Top level nav */
.nav {
float: left;
margin: 20px 0;
}
/* Dropdowns */
.nav ul {
position: absolute;
top: 2.5em;
@danbramall
danbramall / Init.cs
Created November 13, 2017 17:49 — forked from ismailmayat/Init.cs
document writing event
using System.Collections.Generic;
using System.Globalization;
using Examine;
using Examine.LuceneEngine;
using Examine.LuceneEngine.Providers;
using ExamineContrib.Spatial.Model;
using Lucene.Net.Documents;
using Lucene.Net.Spatial.Tier.Projectors;
using Lucene.Net.Util;
using Umbraco.Core;
@danbramall
danbramall / countries.sql
Created September 16, 2017 15:16 — forked from adhipg/countries.sql
Sql dump of all the Countries, Country Codes, Phone codes.
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  1. Decide on a subdomain to use with ngrok. This makes the whole process easier.
  2. Open up a Command Prompt in Administrator mode and run the following command to register the URL with HTTP.sys replacing "modernie" with your subdomain and ##### with your VisualStudio/IISExpress application's port.
netsh http add urlacl url=http://modernie.ngrok.com:##### user=everyone
  1. Edit your applicationhost.config. The easiest way to is start up the site and right-click the IISExpress icon in the System Tray. Click "Show All Applications" and select your website running at localhost:#####. Click the path next to "Config" to open the file in an editor.
  2. Search for you site's <bindings> configuration. The easiest way is to search for *:#####:localhost, which should bring you to the <bindings> section for your site. Edit them to include the following: