Skip to content

Instantly share code, notes, and snippets.

Avatar

Parhum Khoshbakht parhumm

View GitHub Profile
@whizark
whizark / SassMeister-input.scss
Last active Aug 29, 2015
Sass: Resolving component dependencies #sass
View SassMeister-input.scss
// Sass: Resolving component dependencies
// Other ideas: https://github.com/whizark/xass#ideas
// The storage for dependency management
$container: (
-components: (),
-frozen: ()
);
@whizark
whizark / SassMeister-input.scss
Last active Aug 29, 2015
Sass: Resolving component dependencies (an improved version) #sass
View SassMeister-input.scss
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
// Sass: Resolving component dependencies
// An improved version of https://gist.github.com/whizark/51ccdfbf57dbcb73953f
// Other ideas: https://github.com/whizark/xass#ideas
@par6n
par6n / gulpfile.js
Created Aug 3, 2015
Git handler through Gulp, read hive.ir or contact me for more details.
View gulpfile.js
// Example for handling git through gulp. Useful receipt for sometimes ;)
// hive.ir - made by Ehsaan <iehsan.ir@gmail.com>
// gulpfile.js
var gulp = require( 'gulp' );
var git = require( 'gulp-git' );
var minifyCss = require( 'gulp-minify-css' );
var uglify = require( 'gulp-uglify' );
var concat = require( 'gulp-concat' );
var fs = require( 'fs' );
@kaishin
kaishin / NSColor+isLight.h
Last active Mar 1, 2021
Programmatically determine the perceived lightness of a color. More details on: http://robots.thoughtbot.com/closer-look-color-lightness + Online tool: http://thoughtbot.github.io/color-lightness-test/
View NSColor+isLight.h
#import <Cocoa/Cocoa.h>
@interface NSColor (isLight)
- (BOOL)isLight;
@end