Skip to content

Instantly share code, notes, and snippets.

Avatar

David Pich davidpich

View GitHub Profile
@davidpich
davidpich / sponsor-ethics-guidelines.txt
Last active May 15, 2019
Sponsor Ethics Guidelines
We couldn’t find that file to show.
@davidpich
davidpich / sample-slack-coc.md
Created Jul 31, 2017 — forked from annalee/sample-slack-coc.md
A sample code of conduct for social slack teams.
View sample-slack-coc.md

[SLACKNAME] Code of Conduct

Welcome!

[BRIEF DESCRIPTION OF THE SLACK AND ITS PURPOSE]

The current admins are:

  • [NAMES]
View keybase.md

Keybase proof

I hereby claim:

  • I am davidpich on github.
  • I am davidpich (https://keybase.io/davidpich) on keybase.
  • I have a public key whose fingerprint is EF7F 184E 688E 1278 46D7 18D1 24DD EC86 5B3A E944

To claim this, I am signing this object:

View api-provider.js
/**
* Example of using an angular provider to build an api service.
* @author Jeremy Elbourn (jelbourn@google.com)
*/
/** Namespace for the application. */
var app = {};
/******************************************************************************/
View http-response-interceptor.js
angular.module('myMdl', []).config(['$httpProvider', function($httpProvider) {
$httpProvider.responseInterceptors.push([
'$q', '$templateCache', 'activeProfile',
function($q, $templateCache, activeProfile) {
// Keep track which HTML templates have already been modified.
var modifiedTemplates = {};
// Tests if there are any keep/omit attributes.
var HAS_FLAGS_EXP = /data-(keep|omit)/;
You can’t perform that action at this time.