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
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential | |
| apt-get -y install git-core | |
| # Extras for RubyGems and Rails: | |
| apt-get -y install zlib1g-dev | |
| apt-get -y install libssl-dev libsqlite3-dev | |
| apt-get -y install libreadline5-dev |
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 'webrick' | |
| require 'webrick/accesslog' | |
| include WEBrick | |
| require 'thread' | |
| require 'pp' | |
| root_dir = "./" | |
| http_dir = File.expand_path(root_dir) |
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 'rubygems' | |
| require 'spork' | |
| Spork.prefork do | |
| # Loading more in this block will cause your tests to run faster. However, | |
| # if you change any configuration or code from libraries loaded here, you'll | |
| # need to restart spork for it take effect. | |
| # This file is copied to spec/ when you run 'rails generate rspec:install' |
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
| 127.0.0.1 hl2rcv.adobe.com | |
| 127.0.0.1 t3dns.adobe.com | |
| 127.0.0.1 3dns-1.adobe.com | |
| 127.0.0.1 3dns-2.adobe.com | |
| 127.0.0.1 3dns-3.adobe.com | |
| 127.0.0.1 3dns-4.adobe.com | |
| 127.0.0.1 activate.adobe.com | |
| 127.0.0.1 activate-sea.adobe.com | |
| 127.0.0.1 activate-sjc0.adobe.com | |
| 127.0.0.1 activate.wip.adobe.com |
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 Vim <Formula | |
| url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2' | |
| homepage 'http://www.vim.org/' | |
| md5 '5b9510a17074e2b37d8bb38ae09edbf2' | |
| version '7.3.135' | |
| def patchlevel; 135 end | |
| def features; %w(tiny small normal big huge) 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
| require 'rubygems' | |
| require 'mechanize' | |
| require 'mysql' | |
| agent = Mechanize.new { |agent| | |
| agent.user_agent_alias = 'Mac Safari' | |
| } |
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
| comandi setup: | |
| rails g cucumber:install --capybara | |
| rails g rspec:install | |
| rails g devise:install | |
| rails g jquery:install | |
| rails generate devise user | |
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
| Some brief instructions on how to use Sprocket 2 in Rails to get CoffeeScript | |
| powered JS and SASS powered CSS with YUI compression all via the magic of rack. | |
| This stuff will be native in Rails 3.1 and the layout of the files on the | |
| filesystem will be different but this guide will get you working with it | |
| while we wait for all that to finalize. | |
| Ignore the number prefixes on each file. This is just to ensure proper order in the Gist. | |
| It's based on eric1234 gist https://gist.github.com/911003. ijust made it 3.1 compliant in terms of convention |
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
| (((calculate_working_days(20.days.ago ,Time.now, [0,6])/60)/60)/24).to_i | |
| # wdays is an array with the days of the week | |
| # to exclude (eg: [0,6] for sunday and saturday ) | |
| def calculate_working_days(d1,d2,wdays) | |
| diff = d2 - d1 | |
| holidays = 0 | |
| ret = (d2-d1).divmod(7) |
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
| var bitmama = (function($){ | |
| var bitmama = window.bitmama || {}; | |
| var VIEWPORT = '.carousel_contents_bitmama, .carousel_contents_long_bitmama', | |
| SLIDE = '.carousel_scroll_block_bitmama', | |
| CONTENT = '.bol_box_threecols, .bol_box_fourcols', | |
| CONTENT_BLOCK = '.bol_box_threecols div, .bol_box_fourcols div', | |
| PAGERS = '.carousel_pager_bitmama a', | |
| ACTIVE = 'active', |