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
// ---- | |
// Sass (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// ---- | |
$sections: red, gold, orange, grey; | |
@each $i in $sections { | |
.section-#{$i} { |
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
require 'net/http' | |
require 'json' | |
# For now you must use a trusted API client, never place your API credentials | |
# for a trusted client in an insecure location. Especially not in JavaScript on | |
# the client side. | |
client_key = "YOUR_API_CLIENT_KEY" | |
client_secret = "YOUR_API_CLIENT_SECRET" | |
host = "YOUR_SUBDOMAIN.uservoice.com" |
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
# Extension in my Rails lib dir | |
require 'lib/extensions/sass_widget_image_url' | |
# This configuration file works with both the Compass command line tool and within Rails. | |
project_type = :rails | |
# Require any additional compass plugins here. | |
require 'susy' |
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
// | |
// Sass rotation mixin for IE6+ | |
// | |
@mixin ms-rotate($degrees) { | |
@if (not unitless($degrees)) { $degrees: $degrees / 1deg } | |
$deg2rad: pi() * 2 / 360; | |
$radians: $degrees * $deg2rad; | |
$costheta: cos($radians); | |
$sintheta: sin($radians); |
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
// Contrived example: | |
@mixin text-shadow($value, !important) { | |
text-shadow: $value $important; | |
} | |
a { | |
@include text-shadow(none) !important; | |
} |
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
// Grids | |
=grids($max-columns: 10) | |
#{enumerate(".grid", 2, $max-columns)} | |
+clearfix | |
@for $columns from 2 through $max-columns | |
.grid-#{$columns} | |
+grid($columns) | |
#{enumerate('.span', 1, $max-columns)} |
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
diff --git a/source/docs/index.html b/source/docs/index.html | |
index da07196..e81e6ac 100644 | |
--- a/source/docs/index.html | |
+++ b/source/docs/index.html | |
@@ -45,7 +45,7 @@ sidebar: false | |
$('.articles li').each(function() { | |
var li = $(this), a = li.find('a'); | |
- if (expression.test(li.text()) || expression.test(a.attr('data-search-meta'))) { | |
+ if ((li.text().search(expression) > -1) || (('' + a.attr('data-search-meta')).search(expression) > -1)) { |
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
#! /usr/bin/env ruby | |
require 'rubygems' | |
require "oauth" | |
require 'json' | |
# Trusted Client | |
KEY = 'CLIENT KEY' | |
SECRET = 'CLIENT SECRET' | |
SITE = 'http://your_subdomain.uservoice.com' |
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
# helper method | |
def symbolize_hash(hash) | |
symbolized_hash = {} | |
# puts hash.inspect | |
hash.each do |key, value| | |
symbolized_hash[key.to_sym] = value | |
end | |
return symbolized_hash | |
end |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require "oauth" | |
require 'json' | |
def symbolize_hash(hash) | |
symbolized_hash = {} | |
puts hash.inspect | |