Skip to content

Instantly share code, notes, and snippets.

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

Miguel Palau shelldandy

🏠
Working from home
View GitHub Profile
@shelldandy
shelldandy / SassMeister-input.sass
Created October 29, 2015 21:35
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
$grid__max-width : 960px
$grid__col-number : 12
$breakpoints : (sm: 48em, md: 700px, lg: 1000px)
%col-generales
@shelldandy
shelldandy / SassMeister-input-HTML.jade
Last active October 30, 2015 20:14
Generated by SassMeister.com.
.row
.offset-md-4.col-md-3
h1 Hola amigos
.col-md-4
p Inspirado por <a href="http://www.flexboxgrid.com/" target="_blank">Flexbox Grid</a>
.row
.col-md-2
img(src="http://www.fillmurray.com/300/300")
.col-md-8
function chunkArrayInGroups(arr, size) {
var chunky = [];
var arraySize = arr.length;
for(var i = 0; i < arraySize; i+= size) {
chunky.push(arr.slice(i, i+size));
}
function destroyer(arr) {
var args = Array.prototype.slice.call(arguments, 1);
var filtered = [];
function filter (number) {
var check = args.indexOf(number) === -1;
return check;
}
function getIndexToIns(arr, num) {
var sort = function(a,b) {
return a - b;
};
var sortedArray = arr.sort(sort);
@shelldandy
shelldandy / custom-select.scss
Created February 22, 2017 05:41
Bullet proof custom selects with css only
$caret: url(BASE_64_PNG);
.custom-select {
appearance: none;
border-radius: 0; // Safari Mac/iOS
border: none; // Safari Mac/iOS/Firefox
display: block;
width: 100%;
background: {
size: 12px; // Size of your caret
@shelldandy
shelldandy / slick-custom.scss
Last active March 7, 2018 23:16
depends on my manila mixins or just replace the size mixin for width and height
.slick-slider {
margin-bottom: 40px;
}
// Custom Dots
.slick-dots {
text-align: center;
font-size: 0;
line-height: 0;
position: absolute;
width: 100%;
@shelldandy
shelldandy / gulpfile.js
Last active April 12, 2017 01:16 — forked from tmslnz/gulpfile.js
Complete example gulpfile.js for gulp-shopify-theme
/*
Streamlined Shopify theme development.
npm install --save-dev yargs gulp gulp-sass gulp-changed gulp-sourcemaps gulp-autoprefixer gulp-uglify gulp-concat gulp-replace gulp-plumber gulp-babel browser-sync gulp-if del gulp-add-src gulp-rename gulp-yaml gulp-shopify-theme
Highlights:
- https proxying via BrowserSync
- autoreload
- sourcemaps support
@shelldandy
shelldandy / typekit.html
Last active April 27, 2018 15:25
Master Race Typekit Solution by Glen Maddern
<head>
<script>
if (window.localStorage && window.localStorage._tk_cache) {
document.documentElement.classList.add('wf-active');
var script = document.createElement('script');
script.innerHTML = localStorage._tk_cache + ";(function () {var timeout = setTimeout(function () {document.documentElement.classList.remove('wf-active');}, 300); Typekit.load({ async: false, active: function () { clearTimeout(timeout); }});})();";
document.head.appendChild(script);
}
window._tk_onload = function () {
var req = new XMLHttpRequest()