Skip to content

Instantly share code, notes, and snippets.

View logicaroma's full-sized avatar

Ramin Mohammadi logicaroma

View GitHub Profile
# The Script
```sh
git log v2.1.0...v2.1.1 --pretty=format:'<li> <a href="http://github.com/jerel/<project>/commit/%H">view commit &bull;</a> %s</li> ' --reverse | grep "#changelog"
```
# A git alias for the command:
@logicaroma
logicaroma / Bootstrap Background mixins.scss
Created August 5, 2013 08:58
Definition Spec of a Wizard Like View Component
// BACKGROUNDS
// --------------------------------------------------
// Add an alphatransparency value to any background or border color (via Elyse Holladay)
@mixin translucent-background($color: $white, $alpha: 1) {
background-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
}
@mixin translucent-border($color: $white, $alpha: 1) {
border-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
@logicaroma
logicaroma / pseudo-btn-states
Created August 5, 2013 06:54
less function for creating pseudo class stylig for a button object
// Button pseudo states
// -------------------------
// Easily pump out default styles, as well as :hover, :focus, :active,
// and disabled options for all buttons
.btn-pseudo-states(@color; @background; @border) {
color: @color;
background-color: @background;
border-color: @border;
&:hover,
@logicaroma
logicaroma / Gruntfile.json
Created August 4, 2013 13:57
Grunt phonegap-build
// Project configuration.
grunt.initConfig({
"phonegap-build": {
debug: {
options: {
archive: "app.zip",
"appId": "1234",
"user": {
"email": "[email protected]",
"password": "yourPassw0rd"

by Dale Sande

CSS has had a long and sordid past. A developer never sets out with the goal of making a complete and total mess of things. Their intention is not to build something that is practically illegible, impractical to maintain and is limited in scale. But somehow, this is where many inevitably end up. Luckily, all is not lost. With some simple strategies, organizational methods and out-of-the box tools, we can really help get that junk-drawer inline.

For many of us getting started with Sass, at one time or another have created a junk-drawer of files. For most, this was a rookie mistake, but for others, this is a continuing issue with our architecture and file management techniques. Sass doesn't come with any real rules for file management so developers are pretty much left to their own devices.

Large CSS files and increased complexity

CSS started out with very simple intentions, but as [tableless web design][1.1] began to really take a foothold, o

---
- :colors_4:
- "#EAABA3"
- "#CE4232"
- "#473332"
- "#C6AB60"
:colors_5:
- "#CE4232"
- "#7A937F"
- "#473332"
'use strict';
module.exports = function(grunt) {
function readOptionalJSON(filepath) {
var data = {};
try {
data = grunt.file.readJSON(filepath);
grunt.log.write('Reading data from ' + filepath + '...').ok();
} catch(e) {}
config.init({
meta: {
title: 'Premier Dental Implant Practices',
name: "Christopher Webb",
homepage: 'http://conspirator.co',
twitter: 'conspirator',
banner: '/* \n' +
' * \tAuthor:\t\t{{meta.name}}\n' +
' * \tWebsite:\t{{meta.homepage}}\n' +
' * \tTwitter:\thttp://twitter.com/{{meta.twitter}}\n' +
@logicaroma
logicaroma / resizeRetinaIMGFolder
Created July 26, 2012 22:43
This script will take an input folder full of images and assuming they're all retina sized, output the second folder to have retina and standard sized images.
#!/bin/sh
echo "This script will take an input folder full of images and assuming they're all retina sized, output the second folder to have retina and standard sized images."
if [ ! $# == 2 ]; then
echo "Usage: $0 in out"
exit
fi
if [ ! -d $1 ]
@logicaroma
logicaroma / process.sh
Created June 25, 2012 22:04 — forked from benvium/process.sh
Mac OSX Bash Script to convert tree of images to tree of retina and normal images. for Apple iOS iPhone/iPad
#!/bin/sh
echo "This script will take an input folder full of images and assuming they're all retina sized, output the second folder to have retina and standard sized images."
if [ ! $# == 2 ]; then
echo "Usage: $0 in out"
exit
fi
if [ ! -d $1 ]