This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.input_tiny { | |
width: 50px; | |
} | |
.input_small { | |
width: 100px; | |
} | |
.input_medium { | |
width: 150px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package_assets: on # (on, off, always) | |
embed_assets: on # (on, off, datauri) | |
compress_assets: on # (on, off) | |
gzip_assets: on # (on, off) | |
template_function: _.template # (defaults to the built-in micro-templating) | |
package_path: packages # (defaults to assets) | |
javascript_compressor: closure # (yui, closure) | |
compressor_options: | |
compilation_level: ADVANCED_OPTIMIZATIONS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.loadNpmTasks('grunt-shell'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.initConfig({ | |
watch: { | |
sourceFiles: { | |
files: ['themes/**','scaffolds/**','scripts/**','source/**','app.js'], | |
tasks: 'shell:hexoGen' | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Thumb extends Backbone.Model | |
defaults: | |
uri: '' | |
state: '' | |
select: (state) -> | |
st = '' | |
st = 'selected' if state | |
@set('state' : st) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Task: attach_heads | |
* Description: Set the heads for all themes declared in themes.json | |
*/ | |
module.exports = function(grunt) { | |
'use strict'; | |
var fs = require('fs'); | |
var path = require('path'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Action compile-sass /git/phpsass/compile-apache.php | |
AddHandler compile-sass .sass .scss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.get('/', function(req, res){ | |
var ua = req.header('user-agent'); | |
if(/mobile/i.test(ua)) { | |
res.render('mobile.html'); | |
} else { | |
res.render('desktop.html'); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Module Dependencies | |
# | |
{exec} = require 'child_process' | |
fs = require 'fs' | |
path = require 'path' | |
jade = require 'jade' | |
stylus = require 'stylus' | |
nib = require 'nib' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1: To export the PNGs in different sizes I used Slicy - http://macrabbit.com/slicy/ - a mac app that looks into your PSD and if it finds any layer with .png extention will export that layer to PNG. You can also add a tag to the main group layer to export retina version too. A bit pricy, but it's fine if you value your time. | |
// 2: I added the icons in two folders (retina and normal) You just have to make sure that both folders contain the same number of files and they both have the same file name inside. | |
// 3: I added this code after long time of searchin, testing, and mashing my head into the wall. | |
$naviconsNormal: sprite-map("navicons/normal/*.png", $spacing: 10px); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CSS OFF | |
Volume 3—September 2013 | |
Positioning Relatives | |
In 1958, English pictorial photographer Henry Peach Robinson created the world's first photomontage by combining five different negatives to make one complete print of a young girl on her deathbed. “Fading Away”—Robinson's first and most famous composite photo—depicts a young girl dying of consumption and was controversial when it was exhibited, with many believing it was not a suitable subject for photography. | |
Box Model | |
The Barbie doll was invented in 1959 by Ruth Handler (co-founder of Mattel), whose own daughter was called Barbara. Barbie was introduced to the world at the American Toy Fair in New York City. Barbie's job was teenage fashion doll. The full name of the first doll was Barbie Millicent Roberts, from Willows, Wisconsin. | |
Staying afloat |
OlderNewer