Skip to content

Instantly share code, notes, and snippets.

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:

choco install 1password
choco install poedit
choco install itunes
choco install filezilla
choco install visualstudiocode
@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
@philbritton
philbritton / password.js
Created May 31, 2014 19:27
strong password validation form, auto update as you type
var atLeastOneLetter = /.*[a-zA-Z]{1,}.*/;
var atLeastOneNumberOrSpecialChar = /.*[0-9\\\(\)\[\]\{\}\-\+\=\,\?\"_`:@'#*$;^!|~/\.]{1,}.*/;
var atLeastOneSpace = /.*[ ]{1,}.*/;
var specialChars = /(?=.*[><&%]).{1,}/;
var imgPath = 'images/';
var check_IMG = imgPath + 'check16.gif';
var wrong_IMG = imgPath + 'wrong16.gif';
var clear_IMG = imgPath + 'clear16.gif';
var passwordTipPopupId = 'passwordTipPopup';
var pwdTipImagesId = 'pwdTip';
@philbritton
philbritton / crmfieldtype.bas
Created April 1, 2014 00:45
macro to change data type for crm extracts
Sub CrmConvertFields()
'
' CrmConvertFields Macro
'
Dim txt As String
Dim num As Double
For Each Cell In Selection.Cells
txt = Cell.Value
txt = Replace(txt, "$", "")
@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])),
/* Styles for the query builder container: query builder + results. */
#queryBuilderContainer {
position: relative;
font-family: "Segoe UI", Helvetica, Verdana;
width: auto;
}
#queryBuilderContainer * {
margin: 0;
padding: 0;
using SharpKit.JavaScript;
namespace PhantomJS
{
[JsType(JsMode.Prototype, Export = false, Name = "console")]
public static class Console
{
public static void log(string message) {}
}
__________ _ __
/ ____/ __ \/ | / /
/ / / / / / |/ /
/ /___/ /_/ / /| /
\____/_____/_/ |_/
+--------------------------------------------------------------------+
The Handpicked jQuery Plugins Repository - CDN v3.0
+--------------------------------------------------------------------+
Download All These Files In One Bundle: