Skip to content

Instantly share code, notes, and snippets.

View Example.json
{
"AccountName": "Company name",
"AccountOwner": "John",
"ContactId": "abc123",
"Producer": null,
"AccountRep": "Susan",
"Branch": "Chicago Office",
"Agency": "Main Street Agency",
"OptOut": false,
"MarketingSource": null,
View Authentication Example.cs
//using system
//using system.net
private static string WebRequestHelper(string url, string jsonPostData, string method, string email, string password)
{
try
{
var uri = new Uri(url);
var request = HttpWebRequest.Create(uri);
// This sets up the basic authentication credentials
@lucasjans
lucasjans / Resulting view
Created Sep 25, 2012
What's the best way to group my data with handlebars/ember?
View Resulting view
http://cl.ly/image/282z3R0j2l1s
@lucasjans
lucasjans / widget.html
Created Mar 21, 2012
go to zendesk > settings > extensions > add, and customize this file with your username (see end)
View widget.html
<script>
(function($) {
$.fn.tweet = function(o){
var s = $.extend({
username: null, // [string or array] required unless using the 'query' option; one or more twitter screen names
list: null, // [string] optional name of list belonging to username
favorites: false, // [boolean] display the user's favorites instead of his tweets
query: null, // [string] optional search query
View jQueryMobile.ascx
<%@ Control language="C#" AutoEventWireup="true" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="LANGUAGE" Src="~/Admin/Skins/Language.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>
<%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TEXT" Src="~/Admin/Skins/Text.ascx" %>
<%@ Register TagPrefix="dnn" TagName="BREADCRUMB" Src="~/Admin/Skins/BreadCrumb.ascx" %>
<%@ Register TagPrefix="dnn" TagName="USER" Src="~/Admin/Skins/User.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LEFTMENU" Src="~/Admin/Skins/LeftMenu.ascx" %>
@lucasjans
lucasjans / jquerymobile.ascx
Created Jan 31, 2012
jquery mobile skin - see comment below
View jquerymobile.ascx
<%@ Control language="C#" AutoEventWireup="true" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="LANGUAGE" Src="~/Admin/Skins/Language.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>
<%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TEXT" Src="~/Admin/Skins/Text.ascx" %>
<%@ Register TagPrefix="dnn" TagName="BREADCRUMB" Src="~/Admin/Skins/BreadCrumb.ascx" %>
<%@ Register TagPrefix="dnn" TagName="USER" Src="~/Admin/Skins/User.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LEFTMENU" Src="~/Admin/Skins/LeftMenu.ascx" %>
@lucasjans
lucasjans / skin.ascx
Created Jan 31, 2012
Trying to load script in specific place
View skin.ascx
//snippet inside a page_load event
DotNetNuke.Web.Client.ClientResourceManagement.ClientResourceManager.RegisterScript(Page, "http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js", DotNetNuke.Web.Client.FileOrder.Js.jQuery, "PageHeaderProvider")
@lucasjans
lucasjans / dnnactions.debug.js
Created Jul 18, 2011
DNN Actions - with right click option - minified
View dnnactions.debug.js
(function ($) {
$.fn.dnnActionMenu = function (options) {
var opts = $.extend({},
$.fn.dnnActionMenu.defaultOptions, options),
$moduleWrap = this;
$moduleWrap.each(function () {
var $module = $(this);
@lucasjans
lucasjans / dnnactions.debug.js
Created Jul 18, 2011
add the right click option for the new DNN Actions javascript
View dnnactions.debug.js
(function ($) {
$.fn.dnnActionMenu = function (options) {
var opts = $.extend({},
$.fn.dnnActionMenu.defaultOptions, options),
$moduleWrap = this;
$moduleWrap.each(function () {
var $module = $(this);