Skip to content

Instantly share code, notes, and snippets.

View jarrodmedrano's full-sized avatar
🌜

Jarrod Medrano - Senior Software Engineer jarrodmedrano

🌜
View GitHub Profile
@jarrodmedrano
jarrodmedrano / ecs.yml
Created April 20, 2023 22:03 — forked from tkgregory/ecs.yml
An example CloudFormation template for deployment of a container to ECS.
AWSTemplateFormatVersion: "2010-09-09"
Parameters:
SubnetID:
Type: String
Resources:
Cluster:
Type: AWS::ECS::Cluster
Properties:
ClusterName: deployment-example-cluster
LogGroup:
@jarrodmedrano
jarrodmedrano / assertions-compareScreenshot.js
Created February 25, 2016 22:18 — forked from richard-flosi/assertions-compareScreenshot.js
Nightwatch with Visual Regression testing
// assertions/compareScreenshot.js
var resemble = require('resemble'),
fs = require('fs');
exports.assertion = function(filename, expected) {
var screenshotPath = 'test/screenshots/',
baselinePath = screenshotPath + 'baseline/' + filename,
resultPath = screenshotPath + 'results/' + filename,
diffPath = screenshotPath + 'diffs/' + filename;
@jarrodmedrano
jarrodmedrano / 0_reuse_code.js
Last active August 29, 2015 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jarrodmedrano
jarrodmedrano / SASS_rouded_corner_mixins.sass
Last active August 29, 2015 14:14 — forked from victorbstan/SASS_rouded_corner_mixins.sass
Mixin for rounded corners in Sass.
$default_rounded_amount: 5px
// Round corner at position by amount.
@mixin round-corner($position, $amount: $default_rounded_amount)
border-#{$position}-radius: $amount
-webkit-border-#{$position}-radius: $amount
@mixin round-corner-mozilla($position, $amount: $default_rounded_amount)
-moz-border-radius-#{$position}: $amount
// Round left corners by amount
function urlFromHash() {
if (location.hash.substr(0, 2) != '#!') {
return null;
}
// why not location.hash? => http://stackoverflow.com/q/4835784/298479
return location.href.split('#')[1].substr(1);
}
$('#gallery').magnificPopup({
type: 'image',
/**
* Borrowed from https://github.com/addyosmani/jquery-ui-bootstrap
* Styles the datepicker popup for gravityforms used with bootstrap
*/
/*
* jQuery UI Datepicker
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
.gform_wrapper {
ul {
@extend .list-unstyled;
}
li {
@extend .form-group;
}
@jarrodmedrano
jarrodmedrano / wp-enqueue-gravity-forms-css.php
Last active June 13, 2023 19:26 — forked from isGabe/wp-enqueue-gravity-forms-css.php
Enqueue the css from Gravity Forms in WordPress.
// Gravity Forms style sheet
wp_register_style( 'gravity-forms', get_stylesheet_directory_uri() . '/library/css/gravity-forms.css', array(), '' );
// only load on contact page
if(is_page('contact')){
wp_enqueue_style('gravity-forms');
}
@jarrodmedrano
jarrodmedrano / dabblet.css
Created July 14, 2013 17:07
tetrahedron gallery (tested in Chrome)
/**
* tetrahedron gallery (tested in Chrome)
*/
* { margin: 0; padding: 0; }
.gallery {
position: absolute;
top: 50%; left: 50%;
margin: -10em;
width: 20em; height: 20em;
transform-style: preserve-3d;
@jarrodmedrano
jarrodmedrano / dabblet.css
Created July 14, 2013 17:07
css gradient for triangle shaped arrow (SO)
/**
* css gradient for triangle shaped arrow (SO)
* http://stackoverflow.com/q/12431596/1397351
*/
.shape {
float: left;
position: relative;
border: 1px solid #ccc;
border-right: none;
width: 240px; height: 80px;