Skip to content

Instantly share code, notes, and snippets.

@mazell
mazell / compare.cmd
Last active August 29, 2015 14:18
vs2013 compare tool
Tools.DiffFiles C:\www\repos\bjerking\dev_zellout\HTML\sass\base.scss C:\www\backup\base.scss
@mazell
mazell / meta.php
Created April 21, 2015 08:13
Custom Meta
add_action('save_post', 'save_postdata_dynamic_reviews_metabox' );
add_meta_box("film-reviews", "Reviews", "print_dynamic_reviews_metabox", "film", "normal", "low");
add_action('save_post', 'save_postdata_dynamic_screenings_metabox' );
add_meta_box("film-screenings", "Reviews", "print_dynamic_screenings_metabox", "film", "normal", "low");
/* Prints the box content */
function print_dynamic_reviews_metabox() {
global $post;
// Use nonce for verification
@mazell
mazell / ServiceCoreCommunication.cs
Last active September 24, 2015 12:31
HttpWebRequest base class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace EPiServer.Web.Business
{
namespace ServiceCoreWrapper
{
public class ServiceCoreCommunication