View style.less
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
/* | |
NOTE: There's some magic going on in .cols() to add a negative right margin. | |
This resolves the the inline-block issue for uncompressed html. However, | |
it shouldn't be here - you should minify your html instead. This will | |
be removed in the immediate future. | |
This is the core framework for the site. | |
It implements the baseline LESS CSS Mixins and general style rules. |
View gist:2782431
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
# ######################################################## | |
# s3filefield.py | |
# Extended FileField and ImageField for use with Django and Boto. | |
# | |
# Required settings: | |
# AWS_BUCKET_NAME - String, represents the default bucket name to use if one isn't provided | |
# AWS_ACCESS_KEY - String | |
# AWS_SECRET_KEY - String | |
# | |
# From here: http://djangosnippets.org/snippets/1976/ |
View gallery-core
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
<!-- Check out the latest version: | |
https://gist.github.com/2906984 | |
--> | |
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
View comcast.stylish
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
#nav .nav_main { | |
margin-top: 0px; | |
width: auto; | |
} | |
#nav .nav_main li { | |
font-size: inherit; | |
} | |
#nav .nav_main li a { |
View UploadHandler.js
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
/* UploadHandler.js | |
REQUIRES: jQuery | |
USAGE: | |
new UploadHandler(DivName, ArgsHash); | |
new UploadHandler('#my_div_to_watch', { 'upload_url': '/gallery/post/', 'debug': true }); | |
new UploadHandler(['#div1', '#div2'], { 'upload_url': '/gallery/post/' }); |
View bettergradient.less
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
/* | |
Better Gradient | |
Better gradient LESS CSS mixin. Lets you start and | |
stop gradients at arbitrary distances, rather than 100%. | |
This expands on what is done by lesselements | |
(which is an awesome package!) | |
http://lesselements.com |
View typography.less
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
/******************* TYPOGRAPHY *******************/ | |
/* Variables & Mixins */ | |
/* Fonts & weights */ | |
@font-stack-main: "franklin-gothic-urw-cond", "Helvetica Neue", "Helvetica", "Arial", sans-serif; | |
@font-weight-book: 400; | |
@font-weight-medium: 500; | |
@font-weight-demi: 700; |
View gmaps_api_hax.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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<style type="text/css"> | |
html { height: 100% } | |
body { height: 100%; margin: 0; padding: 0 } | |
#map_canvas { height: 100% } | |
</style> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> |
View cr2tojpeg
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
for i in *.CR2; do dcraw -c -a -w -v $i | convert - -resize '1000x1000' -colorspace gray $i.jpg; done; |
View featuredposts.php
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
<ul class="gallery-list"> | |
<?php /* Featured galleries */ | |
$parent_id = $post->ID; | |
$featured_args = array( | |
'post_type' => 'page', | |
'meta_key' => 'featured', | |
'meta_value' => 1, |
OlderNewer