Skip to content

Instantly share code, notes, and snippets.

@MarioAraque
MarioAraque / index.js
Last active Apr 18, 2017
Detect when hubspot form is submitted successfully
View index.js
hbspt.forms.create({
portalId: '', //Your portal ID
formId: '', // Your form ID
css: '',
onFormReady: function(form, ctx) {
form.parents('.hbspt-form:first').on('DOMSubtreeModified', function() {
var hsForm = $(this);
if(hsForm.find('.submitted-message').length) {
//Your code.
}
View SassMeister-input-HTML.html
<div class="wrap">
<div class="sidebar">Sidebar</div>
<div class="content">Content</div>
</div>
@MarioAraque
MarioAraque / SassMeister-input.scss
Created Nov 20, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// Bourbon (v4.0.2)
// ----
@import "bourbon/bourbon";
@include font-face("Avenir", '../fonts/avenir/avenir-regular');
@MarioAraque
MarioAraque / bash_profile
Created Aug 2, 2014
Include it in your ~/.bash_profile to aliases grunt install plugins
View bash_profile
function gi() {
npm install --save-dev grunt-"$@"
}
function gci() {
npm install --save-dev grunt-contrib-"$@"
}
@MarioAraque
MarioAraque / index.html
Last active Aug 29, 2015
Vertical center with 3 lines of code
View index.html
<div class="content">
<div class="vertical-center">Example content</div>
</div>