Skip to content

Instantly share code, notes, and snippets.

View parhumm's full-sized avatar

Parhum Khoshbakht parhumm

View GitHub Profile
@kaishin
kaishin / NSColor+isLight.h
Last active October 14, 2022 01:09
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/
#import <Cocoa/Cocoa.h>
@interface NSColor (isLight)
- (BOOL)isLight;
@end
@whizark
whizark / SassMeister-input.scss
Last active August 29, 2015 14:06
Sass: Resolving component dependencies #sass
// 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 August 29, 2015 14:06
Sass: Resolving component dependencies (an improved version) #sass
// ----
// 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 August 3, 2015 13:16
Git handler through Gulp, read hive.ir or contact me for more details.
// 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' );