Skip to content

Instantly share code, notes, and snippets.

skipjac / article.hbs
Created Feb 12, 2018
video library in Zendesk Guide
View article.hbs
<div class="article-main" data-section-id="{{}}" data-section-name="{{}}">
<div id="sidebar" class="sidebar-panel">
<ul class="sidebar">
<div class="close-sidebar">←</div>
<li class="sidebar-item sidebar-home">
<a href="{{page_path 'help_center'}}" class="sidebar-item-title">
<li :class="['sidebar-item', 'sidebar-section', isOpen(]"
skipjac / bs-parser.js
Last active Apr 20, 2016
For order data
View bs-parser.js
var data = 'Orders[Count=1, Order [customer=Customer [id=6a665314-44ac-4fd9-af73-ed975fb19018, name=Tarik, givenname=Taaza, birthday=Wed Apr 20 05:12:19 CEST 2016, plz=50933, street=Aachener Str., house=746-750, city=Köln], name=Installation, note=not ready, created=Wed Apr 20 05:12:19 CEST 2016, status=not ready]]'
function ordersJSONize(str) {
return str
//right bracket replacement
//left bracket replacement
// equal sign replacement

Keybase proof

I hereby claim:

  • I am skipjac on github.
  • I am skip ( on keybase.
  • I have a public key ASCX8kPbL_oHxuVUuWG0bqfjYKdx7YWystJ54VqnJdPHOwo

To claim this, I am signing this object:

skipjac / find_promoted_artilces.hdbs
Created Dec 24, 2015
Find promoted articles in a single category using zendesk curly bars
View find_promoted_artilces.hdbs
{{#each categories}}
{{! CMS promoted articles }}
{{#is id 202178748}}
{{#each sections}}
{{#each articles}}
{{#if promoted}}
<a href="{{url}}">{{title}}</a>
skipjac / email_validate.js
Created Jul 20, 2015
Validate email in zendesk Help Center ticket forms.
View email_validate.js
var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
if( === 'request[anonymous_requester_email]'){
var match = re.test(;
skipjac / hideSubmitRequest
Created Jun 26, 2015
hide submit request for anonymous users
View hideSubmitRequest
var userRole = HelpCenter.user.role;
if (userRole === "anonymous") {
skipjac / setOrg.js
Last active Aug 29, 2015
Set the default org zendesk
View setOrg.js
function setDefaultValue(field, setDefault){
$('.'+field).one('DOMNodeInserted', function(d){
var inputTar = $(d.currentTarget).children('select')
var inputNest = $(d.currentTarget).children('a.nesty-input');
var TestObj = inputTar[0];
var TestNest = inputNest[0];
$('#''<option value="-">-</option>');
$('#'' option').removeAttr('selected').filter('[value='+setDefault+']').attr('selected', true);
skipjac / amy.js
Last active Aug 29, 2015
build to functions to run in a loop with the options you want to show and hide
View amy.js
//make a function to hide options as they are passed into it.
var skip1 = function(k){
$('.nesty-panel').on('DOMNodeInserted', function(e){
// call the function with the option value with a # in front
//make a function to show the option
View gist:7369800af18234cd8761
Object { identifier: "da39a3ee5e6b4b0d3255bfef95601890afd80709",
role: "anonymous",
avatar_url: "",
email: null,
name: null,
orgainizations: []
skipjac / gist:8783de387d23bf171645
Created Apr 3, 2015
Remove Ticket Form option from dropdown in Zendesk
View gist:8783de387d23bf171645
//remove the options from the select
$('#request_issue_type_select option[value="43517"]').remove();
//remove the option from the nesty-input after it's been created.
$('div').one('DOMNodeInserted', function(e){
$('.nesty-panel').one('DOMNodeInserted', function(e){