Skip to content

Instantly share code, notes, and snippets.

View irobinson's full-sized avatar

Ian Robinson irobinson

View GitHub Profile
@irobinson
irobinson / gist:1377662
Created November 18, 2011 20:29
Positioning of various elements in the DOM in DNN 6.1.1
<html>
<head>
<!-- New API CSS (e.g. ClientResourceManager.RegisterStyleSheet) -->
<asp:PlaceHolder runat="server" ID="ClientDependencyHeadCss"></asp:PlaceHolder>
<!-- New API JS (e.g. ClientResourceManager.RegisterScript)-->
<asp:PlaceHolder runat="server" ID="ClientDependencyHeadJs"></asp:PlaceHolder>
<!-- "Old API" CSS (e.g. styles skin object)-->
<asp:placeholder id="CSS" runat="server" />
@irobinson
irobinson / gist:1510825
Created December 22, 2011 16:08
Quick example of using RestSharp to query the Untappd Brewery API
// UntappdApi.cs
// *************
using RestSharp;
public class UntappdApi
{
private const string BaseUrl = "http://api.untappd.com/v3/";
private readonly string apiKey;
@irobinson
irobinson / gist:1592999
Created January 11, 2012 04:23
Use the javascripts to replicate the interaction part of the facebook link preview thing.
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>test</title>
<body>
<p>Shit yeah, go on, type some shit!</p>
<textarea></textarea>
<div style="display:none;"></div>
<a href="#" style="display:none;">clear</a>
</body>
@irobinson
irobinson / DNNCustomProviderManifest.xml
Created January 26, 2012 20:25
DotNetNuke Manifest section for installation of Custom Provider
<component type="Config">
<config>
<configFile>web.config</configFile>
<install>
<configuration>
<nodes>
<node path="/configuration/system.web/httpModules" action="update" key="name" collision="overwrite">
<add name="CustomProviderModule" type="DotNetNuke.Providers.CustomProvider.CustomProviderModule, DotNetNuke"/>
</node>
<node path="/configuration/system.webServer/modules" action="update" key="name" collision="overwrite">
@irobinson
irobinson / dnnactions.debug.js
Created February 1, 2012 00:32
DNN Actions JS
(function ($, window) {
$.fn.dnnActionMenu = function (options) {
var opts = $.extend({},
$.fn.dnnActionMenu.defaultOptions, options),
$moduleWrap = this;
$moduleWrap.each(function () {
var $module = $(this);
@irobinson
irobinson / gist:1990828
Created March 7, 2012 03:50
User File Manager Knockout View
<div id="dnnUserFileManager" class="dnnFileManager dnnClear">
<div class="fm-explorer-wrap dnnLeft">
<div class="fm-breadcrumb">
<p>
<span data-bind="foreach: currentBreadcrumbs">
<!-- ko if: id === $root.chosenFolderId() -->
<span data-bind="text: name"></span>
<!-- /ko -->
<!-- ko if: id !== $root.chosenFolderId() -->
<a href="#" data-bind="text: name, click: $root.goToFolder"></a> /