Skip to content

Instantly share code, notes, and snippets.

View marioblas's full-sized avatar
🏠
Working from home

Mario Blas Gil Cárdenes marioblas

🏠
Working from home
View GitHub Profile
@marioblas
marioblas / animation-transition-end.js
Last active August 29, 2015 14:12
jQuery - Detect the completion of an animation/transition
$('#foo').on('webkitAnimationEnd mozAnimationEnd animationend', function() {
// Do something after animation...
});
// Note: transitionend fires for each property transitioned!
// mozTransitionEnd?
// oTransitionEnd for old Opera
$('#bar').on('webkitTransitionEnd mozTransitionEnd otransitionend oTransitionEnd transitionend', function() {
// Do something after transition...
});
@marioblas
marioblas / bash-cheatsheet.sh
Last active December 19, 2025 16:34 — forked from LeCoupa/bash-cheatsheet.sh
The ultimate bash cheatsheet
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@marioblas
marioblas / shp-to-geojson.sh
Last active August 29, 2015 14:18 — forked from ayozebarrera/geo.json
🌍 ogr2ogr - Get a GeoJSON with 4326 projection from a shapefile
# Get a geojson with 4326 projection from a shapefile
ogr2ogr -f GeoJSON -t_srs crs:84 name.geojson name.shp
# -f format_name: GeoJSON (ESRI Shapefile, GML, MapInfo file...)
# -t_srs: Reproject/transform to this SRS on output (crs:84 is WGS84)
@marioblas
marioblas / array-to-comma-separated.js
Created June 10, 2016 12:51
Javascript - Turn array into comma-separated list
/**
* Turn array into comma-separated list
* @param {Array} list
* @return {String}
*/
const arrayToCommaSeparated = (list) => {
return list.join(', ');
};