This file contains hidden or 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
AddEncoding gzip .gz | |
RewriteEngine on | |
RewriteCond %{HTTP:Accept-encoding} gzip | |
RewriteCond %{HTTP_USER_AGENT} !Konqueror | |
RewriteCond %{REQUEST_FILENAME}.gz -f | |
RewriteRule ^(.*)\.css$ $1.css.gz [QSA,L] | |
RewriteRule ^(.*)\.js$ $1.js.gz [QSA,L] | |
RewriteRule ^(.*)\.html$ $1.html.gz [QSA,L] |
This file contains hidden or 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
# A simple expiring cache suitable for use with the :file_store cache store. | |
# Not particularly threadsafe, and can duplicate work if there are multiple | |
# requests for stale data at the same time. | |
# | |
# Usage: | |
# SimpleCache.fetch('my_data', 15.minutes) do | |
# MyModel.expensive_query | |
# end | |
# | |
# Make sure to set up the cache to use :file store in your environment.rb, |
This file contains hidden or 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
/* | |
Arduino program for animating LEDs for the GlowBack ceramic sculpture | |
http://benhollis.net/blog/2010/02/04/glowback-arduino-powered-glowing-ceramic-creature/ | |
Copyright (C) 2010 by Benjamin Hollis | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
NewerOlder