Skip to content

Instantly share code, notes, and snippets.

View jaredholdcroft's full-sized avatar

Jared Holdcroft jaredholdcroft

View GitHub Profile

Overview

The Data Catalog API enables users to retrieve the contents of the data catalog along with data and metadata about individual datasets and their resources.

All API endpoints begin with the protocol and hostname: https://datacatalogapi.worldbank.org

Keybase proof

I hereby claim:

  • I am jaredholdcroft on github.
  • I am jaredholdcroft (https://keybase.io/jaredholdcroft) on keybase.
  • I have a public key ASAD9qDuSd5nD38mg8oiQxgtxIDElnMNGWR2fYvulx8FGgo

To claim this, I am signing this object:

@jaredholdcroft
jaredholdcroft / upgrade-php7.sh
Created February 19, 2018 09:07 — forked from heathdutton/upgrade-php7.sh
Upgrade PHP 7.0 to 7.1 on Amazon Linux (specifically for Elastic Beanstalk but should work elsewhere)
#!/usr/bin/env bash
# Upgrade an Amazon Linux PHP 7.0 EC2 to PHP 7.1
#
# Must be ran as sudo:
# sudo bash upgrade-php71.sh
#
# Can be added to ./.ebextensions/20_php.config like so:
# container_commands:
# 20_php71_upgrade:
# command: sudo bash scripts/upgrade-php71.sh
# $OpenBSD: ssh_config,v 1.28 2013/09/16 11:35:43 sthen Exp $
# This is the ssh client system-wide configuration file. See
# ssh_config(5) for more information. This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.
# Configuration data is parsed as follows:
# 1. command line options
# 2. user-specific file
package com.jag.middleware.core.mapper;
import java.math.BigDecimal;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
@jaredholdcroft
jaredholdcroft / .travis.yml
Created August 21, 2012 16:27
Travis CI config file for android project
language: java
before_install:
# download the latest android sdk and unzip
- wget http://dl.google.com/android/android-sdk_r18-linux.tgz
- tar -zxf android-sdk_r18-linux.tgz
# setup your ANDROID_HOME and PATH environment variables
# use ~/builds/[Github username]/[project]/android-sdk-linux
- export ANDROID_HOME=~/builds/leviwilson/android-travis-ci-example/android-sdk-linux
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
# only update the sdk for the tools and platform-tools (1,2) and whatever api level
@jaredholdcroft
jaredholdcroft / LICENSE.txt
Created June 18, 2012 12:14
MIT license for postmark-java
Copyright (C) 2012 Jared Holdcroft
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
@jaredholdcroft
jaredholdcroft / Guardfile
Created April 5, 2012 20:27 — forked from drnic/Guardfile
An example Guardfile with the works for a Rails app
guard 'rspec', :version => 2 do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
# Rails example
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
@jaredholdcroft
jaredholdcroft / gist:965285
Created May 10, 2011 20:15
Has_one problem
class Audit < ActiveRecord::Base
has_many :audit_items
belongs_to :auditor
belongs_to :contact
belongs_to :site
has_one :requested_by, :class_name => "Employee", :primary_key => "requested_by", :foreign_key => "id"
end
@jaredholdcroft
jaredholdcroft / gist:921660
Created April 15, 2011 13:08
RVM install Ruby
rvm install <RUBY> --with-iconv-dir=$rvm_path/usr \
--with-openssl-dir=$rvm_path/usr \
--with-zlib-dir=$rvm_path/usr \
--with-readline-dir=$rvm_path/usr