Skip to content

Instantly share code, notes, and snippets.

Gabriel Neutzling gneutzling

Block or report user

Report or block gneutzling

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gneutzling
gneutzling / fonts.jsx
Last active Nov 8, 2016
Show fonts used in a Photoshop file.
View fonts.jsx
// Salvar o script dentro de Photoshop > Presets > Scripts
// http://superuser.com/questions/268785/find-all-the-fonts-used-in-a-photoshop-file
var p = new ActionReference();
function arrayUnique(a){
var t = []
i = a.length;
while(i--) {
@gneutzling
gneutzling / getBrowseActive
Created Jul 15, 2014
Verify if the Browser is active
View getBrowseActive
// Verify if the Browser is active
getBrowseActive = function (browserName) {
if (navigator.userAgent.indexOf(browserName) > -1)
return true;
return false;
};
View tallerAcordion
/**
* A simple accordion.
*/
(function (jQuery) {
Drupal.behaviors.FiescAccordion = {
attach: function () {
this.init();
},
@gneutzling
gneutzling / searchDirective
Last active Aug 29, 2015
search directive
View searchDirective
<div class="search">
<div class="search__field" data-ng-class="{opened: isOpened}">
<input type="text" id="{{name}}" name="{{name}}" placeholder="{{placeholder}}" ng-model="ngModel">
</div>
<label for="{{name}}" sb-tap="toggle()">
<span class="icon icon-search"></span>
</label>
</div>
@gneutzling
gneutzling / basicRouter.js
Created Mar 24, 2014
a simple router used in a basic project.
View basicRouter.js
/**
* Router
* @class Router
* @author gneutzling
* @date 2013-12-20
*
* Class.js by John Resig is needed. (http://ejohn.org/blog/simple-javascript-inheritance/)
*/
APP.core.Router = Class.extend({
@gneutzling
gneutzling / gaSimpleEventTrack.js
Last active Apr 22, 2019
This is a simple class to track custom events on Google Analytics.
View gaSimpleEventTrack.js
/* gaSimpleEventTrack.js */
var tracking = function (settings) {
this.settings = settings;
this.init = function () {
this.setup();
this.bind();
};
View meta-tags.md

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
View .jshintrc
{
"bitwise": true,
"eqeqeq": true,
"eqnull": true,
"immed": true,
"newcap": true,
"esnext": true,
"latedef": true,
"noarg": true,
"node": true,
@gneutzling
gneutzling / custom-input-file.html
Last active Dec 18, 2015
Exemplo de custom input file para o post no http://dailydevtips.com/
View custom-input-file.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Custom Input File</title>
<style type="text/css">
* {margin: 0; padding: 0;}
.input-file {
position: relative;
width: 200px;
You can’t perform that action at this time.