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
import React, { Component, Fragment } from 'react'; | |
import PropTypes from 'prop-types'; | |
import qs from 'qs'; | |
import SearchFilter from '../../SearchFilter'; | |
/* import TimeRangeFilter from '../../TimeRangeFilter'; */ | |
function getQueryFilters() { | |
return qs.parse(window.location.search.slice(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
upstream gtportugal { | |
# Path to Unicorn SOCK file, as defined previously | |
server unix:/tmp/unicorn.gtportugal.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
#server_name gtportugal.simaobelchior.net; | |
server_name localhost; | |
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
class ChangeType < ActiveRecord::Base | |
attr_accessible :listing_change_id, :name | |
include Dictionary | |
build_dictionary :addition, :deletion, :reservation, :reservation_withdrawal | |
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
<%#PATH: app/views/products/ %> | |
<% if !product.first? %> | |
<%= link_to image_tag("ordering_icons/up.gif", :alt => "up", :title => "Move up"), move_up_product_path(product), :method => :put, :remote => true %> | |
<% end %> | |
<% if !product.last? %> | |
<%= link_to image_tag("ordering_icons/down.gif", :alt => "down", :title => "Move down"), move_down_product_path(product), :method => :put, :remote => true %> | |
<% 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
<div class="attachment fields"> | |
<%= f.label :caption %> | |
<%= f.file_field :document %> | |
<%= link_to_remove_fields "remove", f %> | |
</div> |
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
#application.js | |
//= require jquery | |
//= require jquery_ujs | |
//= require_self | |
//= require_tree . | |
/* rest of file omitted */ | |
#application.css |
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
# Begin Whenever generated tasks for: backups | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games | |
32 11 * * * /bin/bash -l -c 'backup perform -t db_name -c ~/Backup/db_name.rb >> ~/Backup/log/whenever_cron.log 2>&1' | |
0 0 1 12 * /bin/bash -l -c 'backup perform -t db_name -c ~/Backup/db_name_yearly.rb >> ~/Backup/log/whenever_cron.log 2>&1' | |
0 0 1 * * /bin/bash -l -c 'backup perform -t db_name -c ~/Backup/db_name_monthly.rb >> ~/Backup/log/whenever_cron.log 2>&1' | |