Skip to content

Instantly share code, notes, and snippets.

tesrt
@lucasjans
lucasjans / Example.json
Last active August 29, 2015 13:57
Example Data
{
"AccountName": "Company name",
"AccountOwner": "John",
"ContactId": "abc123",
"Producer": null,
"AccountRep": "Susan",
"Branch": "Chicago Office",
"Agency": "Main Street Agency",
"OptOut": false,
"MarketingSource": null,
//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 September 25, 2012 21:46
What's the best way to group my data with handlebars/ember?
http://cl.ly/image/282z3R0j2l1s
@lucasjans
lucasjans / widget.html
Created March 21, 2012 08:38
go to zendesk > settings > extensions > add, and customize this file with your username (see end)
<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
@lucasjans
lucasjans / jQueryMobile.ascx
Created February 1, 2012 17:25
jQueryMobileSkin
<%@ 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 January 31, 2012 23:07
jquery mobile skin - see comment below
<%@ 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 January 31, 2012 21:48
Trying to load script in specific place
//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 July 18, 2011 19:41
DNN Actions - with right click option - minified
(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 July 18, 2011 19:39
add the right click option for the new DNN Actions javascript
(function ($) {
$.fn.dnnActionMenu = function (options) {
var opts = $.extend({},
$.fn.dnnActionMenu.defaultOptions, options),
$moduleWrap = this;
$moduleWrap.each(function () {
var $module = $(this);