Skip to content

Instantly share code, notes, and snippets.

@jlblcc
jlblcc / fetchGCMD.pl
Last active November 19, 2016 06:05
A simple perl script that fetches and parses GCMD Keywords using LWP::UserAgent.
#!/usr/bin/env perl
select(STDERR);
$| = 1;
select(STDOUT); # default
$| = 1;
#
# Usage: perl fetchGCMD.pl [-s scheme:http://gcmdservices.gsfc.nasa.gov/kms/concept_schemes? ] [-d DELIMETER]
#
use strict;
use utf8;
echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.3 postgresql-server-dev-9.3 postgresql-contrib-9.3 -y
sudo su - postgres -c "psql template1 -p 5433 -c 'CREATE EXTENSION IF NOT EXISTS hstore;'"
sudo su - postgres -c "psql template1 -p 5433 -c 'CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";'"
sudo su - postgres -c "service postgresql stop"
sudo su - postgres -c '/usr/lib/postgresql/9.3/bin/pg_upgrade -b /usr/lib/postgresql/9.1/bin -B /usr/lib/postgresql/9.3/bin -d /var/lib/postgresql/9.1/main/ -D /var/lib/postgresql/9.3/main/ -O "-c config_file=/etc/postgresql/9.3/main/postgresql.conf" -o "-c config_file=/etc/postgresql/9.1/main/postgresql.conf"'
@jlblcc
jlblcc / export_mdJSON.bas
Last active May 18, 2018 17:06
Export mdJSON Dictionary from ACCESS
Attribute VB_Name = "Export mdJSON"
Option Compare Database
Public Function printf(mask As String, ParamArray tokens()) As String
Dim i As Long
For i = 0 To UBound(tokens)
mask = Replace$(mask, "{" & i & "}", tokens(i))
Next
printf = mask
End Function
''
@jlblcc
jlblcc / application.controller.js
Last active December 4, 2015 01:11
Ember Test
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Test POC Array'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
import Ember from 'ember';
const {
isArray,
typeOf,
isBlank
} = Ember;
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
let bar = {
@jlblcc
jlblcc / index.js
Created May 17, 2017 09:44
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
var codes = require('mdcodes/resources/js/iso_topicCategory');
console.log(codes);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jlblcc
jlblcc / 115th_Congress_Boundaries_simplified.json
Last active September 22, 2017 00:20
115th_Congress_Boundaries_simplified.json
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

mdJSON Data Dictionary

additionalDocumentation Other documents related to, but not defining, the resource such as factsheets, data catalog pages, award documents, proposals, and informational websites.
address Addresses for this contact.
addressee Not defined.
ageReference Citation for works providing detailed information about any element of the geologicAge.
allocation Funds contributed to support the development of the resource.