Skip to content

Instantly share code, notes, and snippets.

View mmintel's full-sized avatar
👋
Looking for awesome opportunities

Marc Mintel mmintel

👋
Looking for awesome opportunities
View GitHub Profile
@mmintel
mmintel / SassMeister-input.scss
Created May 23, 2014 15:59
Generated by SassMeister.com.
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
$elementSeparator: '__';
$modifierSeparator: '--';
$listBullets: (
'.list--bullets': (
list-style: none,
@mmintel
mmintel / gist:045ffce76b00b327bfc0
Last active October 12, 2020 10:34
BEM mixins in Sass 3.4
$elementSeparator: '__';
$modifierSeparator: '--';
@function containsModifier($selector) {
$selector: selectorToString($selector);
@if str-index($selector, $modifierSeparator) {
@return true;
} @else {
@return false;
}
@mmintel
mmintel / SassMeister-input-HTML.html
Created August 24, 2014 09:35
Generated by SassMeister.com.
<div class="class">asd</div>
@mmintel
mmintel / SassMeister-input.scss
Last active August 29, 2015 14:05
Generated by SassMeister.com.
// ----
// Sass (v3.4.1)
// Compass (v1.0.1)
// ----
/**
* Tests whether `$var` is bool.
* ---
* @access public
* ---
@mmintel
mmintel / SassMeister-input.scss
Created September 4, 2014 10:05
Generated by SassMeister.com.
// ----
// Sass (v3.4.1)
// Compass (v1.0.1)
// ----
$UNITS: 'px' 'cm' 'mm' '%' 'ch' 'pica' 'in' 'em' 'rem' 'pt' 'pc' 'ex' 'vw' 'vh' 'vmin' 'vmax';
/**
* Tests whether `$var` is bool.
* ---
* @access public
@mmintel
mmintel / SassMeister-input-HTML.html
Created September 12, 2014 11:26
Generated by SassMeister.com.
<div class="class">asd</div>
@mmintel
mmintel / SassMeister-input-HTML.html
Created September 24, 2014 14:35
Generated by SassMeister.com.
<div class="class">asd</div>
@mmintel
mmintel / 0_reuse_code.js
Last active August 29, 2015 14:07
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
var createThumb = function(fileObj, readStream, writeStream) {
gm(readStream, fileObj.name()).resize('256', '256').stream().pipe(writeStream);
};
var createMedium = function(fileObj, readStream, writeStream) {
gm(readStream, fileObj.name()).resize('800', '800').stream().pipe(writeStream);
};
Images = new FS.Collection("images", {
stores: [
Images.allow({
'insert': function() {
// add custom authentication code here
return true;
},
'update': function() {
// add custom authentication code here
return true;
},
'remove': function() {