Command: heroku pgbackups:capture --remote production
Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712
Command: heroku pgbackups:url [db_key] --remote production
| package com.example; | |
| import com.fasterxml.jackson.core.JsonFactory; | |
| import com.fasterxml.jackson.core.JsonGenerator; | |
| import com.google.common.base.Strings; | |
| import io.dropwizard.Application; | |
| import io.dropwizard.setup.Environment; | |
| import org.eclipse.jetty.servlet.ServletHolder; | |
| import javax.servlet.ServletException; |
| # for use by collection_select and friends, to link a human-readable label with a db-friendly symbolic value | |
| # todo: ActiveRecord macros for setters (for allowing multiple values or just one) | |
| # Usage: | |
| # Table name: snacks | |
| # id :integer | |
| # ice_cream :string | |
| # class Snack < ActiveRecord::Base | |
| # FLAVORS = Enum.new [ | |
| # [:vanilla, "Vanilla"], | |
| # [:chocolate, "Chocolate"], |
| Go to menu: | |
| Find -> Find in Files... (windows: ctrl+shift+f) | |
| Switch on reg_ex button (windows: alt+r) | |
| Find: | |
| ^.*\S+.*$ | |
| Where: | |
| c:\your_folder\,*.php,*.js,*.inc,*.html,*.htm,*.scss, -*/folder_to_exclude/*, -*.min.js |
| @{ | |
| ViewBag.Title = "Server-Side Paging with PetaPoco DataTables"; | |
| } | |
| <table id="customers" class="table table-striped table-condensed"> | |
| <thead> | |
| <tr> | |
| <th style='width: 4%'>Id</th> | |
| <th>Last</th> | |
| <th>First</th> |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import org.mortbay.jetty.Connector; | |
| import org.mortbay.jetty.Server; | |
| import org.mortbay.jetty.handler.HandlerList; | |
| import org.mortbay.jetty.handler.ResourceHandler; | |
| import org.mortbay.jetty.nio.SelectChannelConnector; | |
| import org.mortbay.jetty.servlet.ServletHandler; | |
| import org.mortbay.jetty.servlet.ServletHolder; |
| SELECT DISTINCT (round(timestamp / 86400000.0 - 0.5) * 86400000.0) as time FROM timeline ORDER BY timestamp ASC | |
| --in AIR, set itemClass to Date | |
| --the returned dates are offset with the computer's timezone, so you need to reverse it: date.time += date.timezoneOffset * 60000; |