Skip to content

Instantly share code, notes, and snippets.

View biojazzard's full-sized avatar
😇
I´m a Saint

Alfredo Llanos biojazzard

😇
I´m a Saint
View GitHub Profile
(() => {
'use strict';
/**************** Gulp.js 3 configuration ****************/
const
// development or production
devBuild = ((process.env.NODE_ENV || 'development').trim().toLowerCase() === 'development'),
### BREW UPGRADE MYSQL
DocumentRoot is /usr/local/var/www.
The default ports have been set in /usr/local/etc/httpd/httpd.conf to 8080 and in
/usr/local/etc/httpd/extra/httpd-ssl.conf to 8443 so that httpd can run without sudo.
To have launchd start httpd now and restart at login:
brew services start httpd
Or, if you don't want/need a background service you can just run:
smoothscroll = require 'smoothscroll-polyfill'
smoothscroll.polyfill();
_ss_to_links = ($el)->
$el.each ()->
$(@).on 'click', (e)->
#console.log $(@)
e.preventDefault()
anchor = $(@).attr('href')
@biojazzard
biojazzard / extra-box.less
Created June 12, 2018 10:09
Boxes with table, table-cell... display
/* extra homepage */
.extra-img {
z-index: 0;
position: relative;
//display: table;
width: 100%;
//min-height: 20rem;
background-repeat: no-repeat;
background-position: 50% 50%;
@biojazzard
biojazzard / arlequin-shift-pattern-email.css
Created May 28, 2018 06:44
Email Pattern: Arlequin Order Shift Layout Pattern CSS
/* Arlequin Order Shift Layout Pattern CSS */
@media only screen and (max-width: 599px) {
td[class="arlequin2col"] .product_image img {
width: 100%;
height: auto !important;
}
}
@media only screen and (max-width: 460px) {
td[class="arlequin2col"] .product { padding: 0 !important; }
.templateColumns {
margin: 0 auto;
}
@media only screen and (max-width: 630px){
.templateColumns{
width:100% !important;
}
.templateColumnContainer{
display:block !important;
table.templateColumns.bgcolor(border='0', cellpadding='0', cellspacing='0', width='630')
// Mailchimp 2 Col
tr
td.templateColumnContainer(align='center', valign='top', width='50%')
table(border='0', cellpadding='0', cellspacing='0', width='100%')
tr
td.leftColumnContent
img.columnImage(src='http://placekitten.com/g/480/300', width='315')
h1 L1LLLLLLL
tr
@biojazzard
biojazzard / video2mp3.sh
Created May 5, 2017 14:27
video2mp3 -b:320[insane]
# Sacar el audio de cualquier mpeg, mov, avi... a mp3 -b:320(insane):
find ./ -name "*.mpeg" -exec ffmpeg -i {} -acodec:a libmp3lame -qscale:a 0 {}.mp3 \;
find ./ -name "*.mov" -exec ffmpeg -i {} -acodec:a libmp3lame -qscale:a 0 {}.mp3 \;
find ./ -name "*.avi" -exec ffmpeg -i {} -acodec:a libmp3lame -qscale:a 0 {}.mp3 \;
find ./ -name "*.m4v" -exec ffmpeg -i {} -acodec:a libmp3lame -qscale:a 0 {}.mp3 \;
# ...
# sustituye mpeg por tu extensión...
@biojazzard
biojazzard / ga-autotrack.html
Last active April 5, 2019 23:25
autotrack.js | Google Analytics
<!-- by 1un.es: with love -->
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', '<!-- your google_analytics_tracking_id -->', 'auto');
// Autotrack plugins available
ga('require', 'urlChangeTracker');
ga('require', 'cleanUrlTracker');
ga('require', 'eventTracker');
ga('require', 'maxScrollTracker');
ga('require', 'outboundLinkTracker');