For reference: http://postgis.net/install
The most reliable way to get PostGIS on OSX is to download and install Postgres.app. Great for development and testing. Do not mix with other installations. Select the extension when prompted.
For reference: http://postgis.net/install
The most reliable way to get PostGIS on OSX is to download and install Postgres.app. Great for development and testing. Do not mix with other installations. Select the extension when prompted.
class SearchesController < ApplicationController | |
def index | |
@tools = Tool.search do | |
keywords params[:query] | |
end.results | |
@inventories = Inventory.search do | |
keywords params[:query] | |
end.results |
package main | |
func main() { | |
>> car{}.Model() | |
} | |
type car struct { | |
vehicle | |
boat | |
} |
// original | |
function updateImage(){ | |
square_urls.map(function(urls){ | |
urls.map(function(u){ | |
console.log(u); | |
}); | |
}); | |
} | |
CREATE TABLE IF NOT EXISTS users ( | |
email varchar PRIMARY KEY NOT NULL, | |
started_on date NOT NULL | |
); | |
CREATE UNIQUE INDEX users_email_index ON users (email); |
require 'minitest' | |
require 'minitest/autorun' | |
class ReduceTest < Minitest::Test | |
def test_capitalize_keywords_in_phrase_one_fish_two_fish_red_fish_blue_fish | |
keywords = ["fish", "blue"] | |
phrase = 'one fish two fish red fish blue fish' | |
result = phrase.split.reduce do |updatedPhrase, word| | |
new_word = word |
machine: | |
services: | |
- docker | |
dependencies: | |
override: | |
- echo "no deps" | |
test: | |
post: |
# usage: cat ~/Downloads/log_foo-bar-baz.jsonl | ruby honeybadger_parser.rb | |
require 'json' | |
data = ARGF.read | |
lines = data.split("\n") | |
grouped = lines.group_by do |line| | |
JSON.parse(line)["request"]["context"]["project_id"] | |
end |
config.log_tags = [ | |
:request_id, | |
:subdomain, | |
->(req) { | |
session_key = (Rails.application.config.session_options || {})[:key] | |
session_data = req.cookie_jar.encrypted[session_key] || {} | |
user_id = session_data["user_id"] || "guest" | |
"user: #{user_id.to_s}" | |
} | |
] |
{ | |
viewer { | |
pullRequests(first: 10, orderBy: {field: UPDATED_AT, direction: DESC}) { | |
nodes { | |
title | |
closedAt | |
url | |
} | |
} | |
issues(first: 10, orderBy: {field: UPDATED_AT, direction: DESC}) { |