Skip to content

Instantly share code, notes, and snippets.

@philbritton
philbritton / dedupe-cml.liquid
Created October 29, 2013 23:17
CML for Dedupe job
<!-- BEGIN CUSTOMIZABLE SECTION -->
<!--
This section ensures that no invalid values are included in the google search queries we construct below. Each 3-line segment uses liquid to do two things:
1. Check if if the header's data for this row (from the input data, above) is valid
2. Assign this data to a new variable (for example, 'street_a') - ONLY IF the original header's data for this row is valid!
Finally, we use this variable in the google search below.
-->
{% if name != "Not_Found_In_Source_System" and name != "" and name != "No data available" %}
@philbritton
philbritton / windows-config.txt
Last active December 28, 2015 02:19
config 01-20-14
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst sublimetext3
cinst git.install
cinst 7zip.install
cinst poshgit
cinst DotNet4.5
cinst nodejs.install
cinst ruby.devkit
#########################
# Autoinstall script using chocolatey
#########################
# Note: Net 4.0 must be installed prior to running this script
#
#Modify this line to change packages
$items = @("git-credential-winstore", "console-devel", "sublimetext3", "poshgit", "driverbooster", "revouninstallerpro", "malwarebytes", "powerquery", "TimRayburn.GitAliases", "sudo", "Evernote5", "javaruntime", "DotNet4.5.1", "NSSM", "ConsoleZ", "git.install")
Ext.define('App.ODataProxy', { extend:'Ext.data.proxy.Ajax', requires:[ 'Ext.data.reader.Json', 'Ext.data.writer.Json' ], alias:'proxy.odata', sortParam:'$orderby', filterParam:'$filter', pageParam:null, limitParam:'$top', startParam:'$skip', actionMethods: { create:'POST', read:'GET', //Changed from PUT to allow writer to not writeAllFields. update: Ext.isIE8m ? 'PUT' : 'PATCH', destroy:'DELETE' }, headers:{ Accept:'application/json;odata=verbose', Prefer:'return-content' }, constructor:function(cfg) { cfg.reader = { type:'json', readRecords:function(data) { if (data.status == 204) { return null; } return this.self.prototype.readRecords.call(this, data['d']); }, buildExtractors:function() { this.self.prototype.buildExtractors.apply(this, argumen
__________ _ __
/ ____/ __ \/ | / /
/ / / / / / |/ /
/ /___/ /_/ / /| /
\____/_____/_/ |_/
+--------------------------------------------------------------------+
The Handpicked jQuery Plugins Repository - CDN v3.0
+--------------------------------------------------------------------+
Download All These Files In One Bundle:
@philbritton
philbritton / zendesk-hc-template-and-components-doc.md
Created April 27, 2017 15:58 — forked from erikzrekz/zendesk-hc-template-and-components-doc.md
Zendesk Help Center Template and Components Documenation

The help center has a series of HTML templates with accompanying components. I put this together to brief myself on the available features within a help center. The official documentation can be found here

Table of Contents

  • Header
  • Footer
  • Home
  • Category
  • Section
  • Article
  • Contribution
choco install 1password
choco install poedit
choco install itunes
choco install filezilla
choco install visualstudiocode

Keybase proof

I hereby claim:

  • I am philbritton on github.
  • I am thephilife (https://keybase.io/thephilife) on keybase.
  • I have a public key ASCUBPP4DSii2wlGCkW4wGMH-RGMcKle8o9HV44Y_fDXwwo

To claim this, I am signing this object:

@philbritton
philbritton / datetable.cs
Created March 21, 2014 00:40
create a killer date table in power query for excel
let CreateDateTable = (StartDate as date, EndDate as date, optional Culture as nullable text) as table =>
let
DayCount = Duration.Days(Duration.From(EndDate - StartDate)),
Source = List.Dates(StartDate,DayCount,#duration(1,0,0,0)),
TableFromList = Table.FromList(Source, Splitter.SplitByNothing()),
ChangedType = Table.TransformColumnTypes(TableFromList,{{"Column1", type date}}),
RenamedColumns = Table.RenameColumns(ChangedType,{{"Column1", "Date"}}),
InsertYear = Table.AddColumn(RenamedColumns, "Year", each Date.Year([Date])),
InsertQuarter = Table.AddColumn(InsertYear, "QuarterOfYear", each Date.QuarterOfYear([Date])),
InsertMonth = Table.AddColumn(InsertQuarter, "MonthOfYear", each Date.Month([Date])),