Skip to content

Instantly share code, notes, and snippets.

View jbubriski's full-sized avatar

John Bubriski jbubriski

View GitHub Profile
@jbubriski
jbubriski / Tabs.ascx.cs.js
Last active January 2, 2016 09:48
Updated the JS in the Kentico Tabs Layout Web Part to preserve the selected tab in the hash of the URL.
Sys.Extended.UI.TabContainer.prototype._app_onload = function (sender, e) {
if (this._cachedActiveTabIndex != -1) {
this.set_activeTabIndex(this._cachedActiveTabIndex);
this._cachedActiveTabIndex = -1;
var activeTab = this.get_tabs()[this._activeTabIndex];
if (activeTab) {
activeTab._wasLoaded = true;
/*** CMS ***/
// Disable focus on active tab
@jbubriski
jbubriski / BizFormMarketingModuleLoader.cs
Created January 8, 2014 18:05
Adds a new tab to the BizForm details page, as well as handling the insert event for BizFormItem objects.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CMS.DocumentEngine;
using CMS.EventLog;
using CMS.FormEngine;
using CMS.SettingsProvider;
using CMS.SiteProvider;
using CMS.UIControls;
@jbubriski
jbubriski / readme.md
Last active January 2, 2016 17:59
BizForm Integration Module documentation

BizForm Integration Module

Overview

The BizForm Integration Module is a custom built module from Wakefly that allows for BizForm submissions to be automatically reposted to 3rd party marketing services such as Pardot, Salesforce, Eloqua, Marketo, etc. The module is easy to install and requires no code changes. Configuration is flexible and handled in the Kentico CMS Desk.

Installation

@jbubriski
jbubriski / which-game-engine-should-i-use.md
Last active January 3, 2016 03:49
Blog post about game engines

date: '2014-01-13 8:00:00 -04:00' layout: post title: Which game engine should I use? slug: which-game-engine-should-i-use description: A brief overview of some game engines we've used. categories:

  • Game Engines tags:
  • ImpactJS
.fist {
background: yellow;
height: 64px;
width: 64px;
position: absolute;
z-index: 100;
top: 100px;
border: 1px solid #000;
}
@jbubriski
jbubriski / readme.md
Last active August 29, 2015 13:55
PHP Development Options

For those coming from a Windows devleopment background...

Considerations

Versions

  • The stack is more fragmented than .NET land. Each piece of the stack has it's own versions
  • Portions are interchangable.

Options

@jbubriski
jbubriski / install.py
Created February 10, 2014 14:07
Install SublimeText 2 on Mac OSX by upgrading the script to supprt Python 3
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')
@jbubriski
jbubriski / BizFormItems.tt
Last active August 29, 2015 13:56
T4 templates for auto-generating strongly typed classes for Kentico BizForms, and registering them with the CMS Type system.
<#@ template debug="True" hostspecific="True" language="C#" #>
<#@ output extension=".cs" #>
<#@ Assembly Name="System" #>
<#@ Assembly Name="System.Configuration" #>
<#@ assembly name="System.Core" #>
<#@ Assembly Name="System.Collections" #>
<#@ Assembly Name="System.Data" #>
<#@ Assembly Name="System.Linq" #>
<#@ Assembly Name="System.Xml" #>
<#@ Assembly Name="System.Xml.Linq" #>
@jbubriski
jbubriski / CustomTableItems.tt
Created February 14, 2014 16:01
T4 template for creating strongly typed classes for Kentico Custom Tables.
<#@ template debug="True" hostspecific="True" language="C#" #>
<#@ output extension=".cs" #>
<#@ Assembly Name="System.Configuration" #>
<#@ assembly name="System.Core" #>
<#@ Assembly Name="System.Collections" #>
<#@ Assembly Name="System.Data" #>
<#@ Assembly Name="System.Linq" #>
<#@ Assembly Name="System.Xml" #>
<#@ Assembly Name="System.Xml.Linq" #>
<#@ assembly name="Microsoft.SqlServer.ConnectionInfo" #>
@jbubriski
jbubriski / Program.cs
Created March 7, 2014 14:53
Generic Constructor Example
using System;
namespace GenericConstructorTest
{
class Program
{
static void Main(string[] args)
{
// This doesn't compile
var myClass1 = new MyClass(5, 6);