This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env/python | |
import psycopg2 | |
# Get a database connection | |
dsn = "dbname=%s user=%s password=%s host=%s port=%s" % ('db_name','username','password','remote_host_ip','port') | |
conn = psycopg2.connect(dsn) | |
query = "COPY public.hiringpattern_new FROM stdin WITH CSV HEADER DELIMITER as ',' " | |
fp = open('csv_file_path', 'r') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(var i=0; i<input.length; i++){ | |
var somepath = decodePolyline(input[i].polyline) | |
var spath = [] | |
for(var i=0; i<somepath.length; i++){ | |
spath.push(new google.maps.LatLng(somepath[i].latitude, somepath[i].longitude)); | |
} | |
var cascadiaFault = new google.maps.Polyline({ | |
path: spath | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<title>Directions service</title> | |
<script src="https://code.jquery.com/jquery-2.2.3.min.js"></script> | |
<style> | |
html, body { | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<title>Directions service</title> | |
<script src="https://code.jquery.com/jquery-2.2.3.min.js"></script> | |
<style> | |
html, body { | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# built application files | |
*.apk | |
*.ap_ | |
# files for the dex VM | |
*.dex | |
# Java class files | |
*.class |