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
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom"> | |
<Document> | |
<name>Venice Sea Level Rise</name> | |
<open>1</open> | |
<Style> | |
<ListStyle> | |
<listItemType>radioFolder</listItemType> | |
<bgColor>00ffffff</bgColor> | |
<maxSnippetLines>2</maxSnippetLines> |
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
library(httr) | |
library(jsonlite) | |
#points = as.matrix(read.csv("test_data/6555.csv")) | |
#points = matrix(c(-36.8772519,174.7654017,-36.877,174.444), ncol=2, byrow=T) | |
#points = matrix(c(-39.2832938, 174.0509033), ncol=2, byrow=T) | |
points = matrix(c(6213008.810261,2600707.709306), ncol=2, byrow=T) | |
resp = POST("http://elevation.auckland-cer.cloud.edu.au", body = list(points = toJSON(points), proj = "EPSG:27200"), encode = "form") | |
elevations = fromJSON(content(resp, "text")) | |
print(elevations) |
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
import bpy | |
import sys | |
import time | |
argv = sys.argv | |
argv = argv[argv.index("--") + 1:] # get all args after "--" | |
if len(argv) < 2: | |
print("Give arguments -- fbx_file decimate_ratio") |
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
// ==UserScript== | |
// @id iitc-player-tracker-names-alt | |
// @name IITC Player Tracker Names | |
// @category Tweaks | |
// @version 1.0 | |
// @description This plugin displays player names for player tracker | |
// @include https://www.ingress.com/intel* | |
// @include http://www.ingress.com/intel* | |
// @match https://www.ingress.com/intel* | |
// @match http://www.ingress.com/intel* |
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
// ==UserScript== | |
// @id iitc-player-tracker-names | |
// @name IITC Player Tracker Names | |
// @category Tweaks | |
// @version 1.0 | |
// @description This plugin displays player names for player tracker | |
// @include https://www.ingress.com/intel* | |
// @include http://www.ingress.com/intel* | |
// @match https://www.ingress.com/intel* | |
// @match http://www.ingress.com/intel* |
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
from bs4 import BeautifulSoup | |
f = open("page.html", "r") | |
soup = BeautifulSoup(f, 'html.parser') | |
people = soup.find_all("div", class_="xTc") | |
for person in people: | |
name = person.find("span", class_="VCc").text | |
image = "https:" + person.find("img").get("src") | |
link = "https://plus.google.com/u/0/" + person.get("data-id") | |
print "{}\t{}\t{}".format(image,name.encode('utf-8'),link) |
NewerOlder