Skip to content

Instantly share code, notes, and snippets.

View jordanrobinson's full-sized avatar
:shipit:
Shippin' it

Jordan Robinson jordanrobinson

:shipit:
Shippin' it
View GitHub Profile
@jordanrobinson
jordanrobinson / clear-jira.sh
Last active August 29, 2015 14:08
Clear all JIRA watched issues using https://github.com/toabctl/jiracli
jiracli --issue-oneline --issue-search "issue in watchedIssues()" | sed -e 's/,.*//g' | xargs -L1 jiracli --issue-watch-remove
@jordanrobinson
jordanrobinson / gist:e5d3a484df1701ca3460
Created November 15, 2014 11:08
Custom terminal prompt
export PS1='\[\033[01;36m\]\h\[\033[01;30m\] \w \@ \[\033[36m\]$(__git_ps1 "(%s)")
\[\033[01;30m\] λ\[\033[00m\] '
@jordanrobinson
jordanrobinson / fifth.js
Last active August 29, 2015 14:13
Site redesign blog post
var pathString = '';
var x = 0; // placeholder for where the drawing is up to
var y = 0;
var x1, x2, x3, x4; // co-ordinates for the four points of the diamond
var y1, y2, y3, y4;
for (var i = 0; i < 30; i++) { // grid of 30x30 diamonds
for (var j = 0; j < 30; j++) {
x1 = x + 0;
y1 = y + 15;
@jordanrobinson
jordanrobinson / pdf-css.css
Last active August 29, 2015 14:17
Saving-to-pdf
@media embossed {
body {
background-color: #0A0;
}
}
@media print {
body {
background-color: #A00;
}
}
@jordanrobinson
jordanrobinson / custom-validator.cs
Last active August 29, 2015 14:20
A custom validator for sitecore!
using System;
using System.Runtime.Serialization;
using System.Text.RegularExpressions;
using Sitecore.Data.Items;
using Sitecore.Data.Validators;
using Sitecore.StringExtensions;
namespace Your.Project.Configuration.AuthoringExperience.General
{
@jordanrobinson
jordanrobinson / AliasRedirectResolver.cs
Last active August 29, 2015 14:23
sitecore-alias-redirect-resolver
using Sitecore;
using Sitecore.Configuration;
using Sitecore.Diagnostics;
using Sitecore.Pipelines.HttpRequest;
using System.Net;
using System.Web;
using AliasResolver = Sitecore.Pipelines.HttpRequest.AliasResolver;
namespace LaunchSitecore.Configuration.AuthoringExperience.Processors
{
@jordanrobinson
jordanrobinson / sitecore-patch.xml
Created June 20, 2015 21:09
sitecore-alias-patch
<processor type="LaunchSitecore.Configuration.AuthoringExperience.Processors.AliasRedirectResolver, LaunchSitecore" patch:instead="*[@type='Sitecore.Pipelines.HttpRequest.AliasResolver, Sitecore.Kernel']"/>
<Target Name="AddCustomSkipRules">
<ItemGroup>
<MsDeploySkipRules Include="SkipAppDataFolder">
<SkipAction></SkipAction>
<ObjectName>dirPath</ObjectName>
<AbsolutePath>$(_DestinationContentPath)\\App_Data$</AbsolutePath>
<Apply>Destination</Apply>
<XPath></XPath>
</MsDeploySkipRules>
<item component="ComponentInfo{com.airlocksoftware.hackernews/com.airlocksoftware.hackernews.activity.MainActivity}" drawable="y1"/>
@jordanrobinson
jordanrobinson / googz.css
Last active February 12, 2017 14:09
fixes googe play music desktop player home for premium users
.x-scope {
background-color: #222327 !important;
color: #FFE9BB !important;
}
.backgroundImages {
display: none;
}
.backgroundContainer {
display: none;
}