Skip to content

Instantly share code, notes, and snippets.

View benjaminbixby's full-sized avatar

Benjamin Bixby benjaminbixby

View GitHub Profile
// Originally from: https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486
Duration =
// Duration formatting
// * @konstatinos 1/25/2016
// * Given a number of seconds, returns a format of "hh:mm:ss"
//
// We start with a duration in number of seconds
VAR Duration = [Change this value to the name of your column that contains your seconds value]
// There are 3,600 seconds in an hour
VAR Hours =
@benjaminbixby
benjaminbixby / .htaccess
Created November 18, 2011 05:17 — forked from ckimrie/.htaccess
ExpressionEngine index.php removal with Google Analytics Compatibility
#################################################################################
#
# - ExpressionEngine index.php ModRewrite Removal -
# compatible with Google Analytics Tracking
#
##################################################################################
RewriteEngine on
<?php
/**
* Custom configuration bootsrtap file for ExpressionEngine
*
* Place config.php in your site root
* Add require(realpath(dirname(__FILE__) . '/../../config.php')); to the bottom of system/expressionengine/config/config.php
* Add require(realpath(dirname(__FILE__) . '/../../config.php')); to the bottom of system/expressionengine/config/database.php
* If you have moved your site root you'll need to update the require_once path
*
@benjaminbixby
benjaminbixby / ee_config.php
Created November 12, 2011 06:42 — forked from 3Easy/ee_config.php
Sample ExpressionEngine 2.x Config File
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// EE Site
$config['app_version'] = "231";
$config['license_number'] = "";
$config['install_lock'] = "";
$config['is_system_on'] = "y";
$config['site_label'] = 'Sample.';
$config['cookie_prefix'] = '';