This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Modernizr.load([ | |
{ | |
load: '//platform.twitter.com/widgets.js' | |
}, { | |
load: '//apis.google.com/js/plusone.js' | |
}, { | |
load: '//connect.facebook.net/en_US/all.js', | |
complete: function() { | |
return FB.init({ | |
appId: '482807518397041', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var __; | |
__ = function(selector, filter) { | |
'use strict'; | |
var response; | |
function filtering(selectors, filter) { | |
switch (filter) { | |
case "first": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def svg_use file, options = {} | |
content_tag :svg, options do | |
content_tag :use, nil, :'xlink:href' => asset_path(file) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ApplicationHelper | |
def page_label | |
"#{controller_name} #{params[:action].gsub(/_/, " ")}" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//***************// | |
// Reset // | |
//***************// | |
:root { | |
box-sizing: border-box; | |
cursor: default; | |
font: 16px/1.5 sans-serif; | |
text-rendering: optimizeLegibility; | |
text-size-adjust: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
linters: | |
EmptyLineBetweenBlocks: | |
enabled: true | |
ignore_single_line_blocks: false | |
HexLength: | |
enabled: true | |
style: long | |
LeadingZero: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// -------------------------------------------------------------------------- // | |
// CONTACT FORM 7 -> MAILCHIMP // | |
// -------------------------------------------------------------------------- // | |
// © 2015 Caio Tarifa. All Rights Reserved. // | |
// -------------------------------------------------------------------------- // | |
function wpcf7_send_to_mailchimp() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Template = (function (selector) { | |
'use strict'; | |
function render(data) { | |
var node = this.node; | |
if (data) { | |
for (var variable in data) { | |
node = node.split('{{' + variable + '}}').join(data[variable]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Dispatcher = (function() { | |
'use strict'; | |
var route, namespaceName, controllerName, controller, actionName, action; | |
function capitalize(string) { | |
return string.charAt(0).toUpperCase() + string.substring(1); | |
} | |
route = $('body').data('route').split('#'); |
OlderNewer