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
require 'formula' | |
class ProjDatumgrid < Formula | |
url 'http://download.osgeo.org/proj/proj-datumgrid-1.5.zip' | |
sha1 '4429ba1a8c764d5c0e6724d868f6874f452f7440' | |
end | |
class Proj < Formula | |
url 'http://download.osgeo.org/proj/proj-4.7.0.tar.gz' | |
homepage 'http://trac.osgeo.org/proj/' |
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
<%= render :partial => "/refinery/admin/image_picker", :locals => { | |
:f => f, | |
:field => :image_id, | |
:image => f.object.image, | |
:toggle_image_display => false | |
} %> |
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
class AddSummaryToNewsItems < ActiveRecord::Migration | |
def up | |
Refinery::News::Item.drop_translation_table! #waaaah | |
Refinery::News::Item.create_translation_table!({ | |
:title => :string, :summary => :text, :body => :text}, | |
{ | |
:migrate_data => true | |
}) | |
end |
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
# encoding: utf-8 | |
Refinery::I18n.configure do |config| | |
config.enabled = true | |
config.default_locale = :en | |
config.current_locale = :en | |
config.default_frontend_locale = :en |
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
#!/bin/bash | |
#A little shell script which uses wget to download | |
#all the requisites for a page, and returns the amount | |
#of time, the 'weight' of the page in K and the number | |
#of files, along with the HTTP code of the original request | |
#requires curl, bc, wget (version 1.13), awk and bash. | |
#expects the url (including http://) to be passed from STDIN |