Skip to content

Instantly share code, notes, and snippets.

@sylouuu
sylouuu / app.js
Created June 2, 2015 14:00
AngularJS Custom HTTP Interceptor
app.config(function ($httpProvider) {
$httpProvider.interceptors.push('customHttpInterceptor');
});
@sylouuu
sylouuu / detect.js
Last active August 29, 2015 14:27
Detect if an input type (HTML5) is supported
var isInputSupported = function (type) {
var i = document.createElement('input');
i.setAttribute('type', type);
// The browser will replace your input type with text if not supported
return i.type !== 'text';
};
@sylouuu
sylouuu / paths.md
Last active July 16, 2016 07:31
Google Chrome internal favicons

Google Chrome internal favicons

In case you need to use Google Chrome internal favicons.

A note about suffixes:

  • @1x means 16x16 icon size
  • @2x means 32x32 icon size

You'll have to copy/paste these paths.