Skip to content

Instantly share code, notes, and snippets.

View erikzrekz's full-sized avatar
🤹
Working

Eriks Reks erikzrekz

🤹
Working
View GitHub Profile
app.factory('PollingService', function($http, $timeout) {
var data = { response: {} };
var poller = function() {
$http.get('data.json').then(function(r) {
data.response = r.data;
$timeout(poller, 1000);
});
};
poller();
///////////////////////////////////////////////////
// Source: http://marcel.turi.co/up/favicon.html //
///////////////////////////////////////////////////
var favIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABrUlEQVR42mNkwAOepOgxMTD9mwhk...";
var docHead = document.getElementsByTagName('head')[0];
var newLink = document.createElement('link');
newLink.rel = 'shortcut icon';
newLink.href = favIcon;
@erikzrekz
erikzrekz / zendesk-hc-template-and-components-doc.md
Last active April 26, 2022 17:08
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
#source
http://code-worrier.com/blog/autocomplete-git/
#download
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
#add to .bash_profile
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
@erikzrekz
erikzrekz / assetPipeline.js
Last active August 29, 2015 14:12
Asset Pipeline for Express
'use strict';
var _ = require('underscore');
var path = require('path');
var rack = require('smaller-asset-rack');
var MANIFEST = path.join(config.root, 'public', 'assets.json');
var STYLESHEETS = [
'application.css.less'