I hereby claim:
- I am glittershark on github.
- I am glittershark (https://keybase.io/glittershark) on keybase.
- I have a public key whose fingerprint is 0F11 A989 879E 8BBB FDC1 E236 44EF 5B5E 861C 09A7
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# In spec_helper: | |
# RSpec.configure do |config| | |
# ... | |
# config.include(MockGeocoder) | |
# end | |
# | |
# In your tests: | |
# it 'mock geocoding' do | |
# # You may pass additional params to override defaults | |
# # (i.e. :coordinates => [10, 20]) |
6,14s/^\s*'\(.\{-}\)'\s*=> ['"]\(.*\)['"]\(,\{,1}\)/\2 AS \1\3 |
import os | |
for index_variable in range(len(os.listdir('.'))): | |
if os.listdir('.')[index_variable][os.listdir('.')[index_variable].find('.'):] == '.txt': | |
print "found text file" | |
import shutil | |
import sys | |
shutil.copyfile('./' + os.listdir('.')[index_variable], sys.argv[1] + '/' + os.listdir('.')[index_variable]) | |
for i in range(len(sys.argv) - 2): | |
if sys.argv[i + 2] == '--and': | |
shutil.copyfile('.' + os.listdir('.')[index_variable], sys.argv[i + 3]) |
CREATE OR REPLACE FUNCTION concat_tsvectors(tsv1 tsvector, tsv2 tsvector) | |
RETURNS tsvector AS $$ | |
BEGIN | |
RETURN coalesce(tsv1, to_tsvector('default', '')) | |
|| coalesce(tsv2, to_tsvector('default', '')); | |
END; | |
$$ LANGUAGE plpgsql; | |
CREATE AGGREGATE tsvector_agg ( | |
BASETYPE = tsvector, |