Skip to content

Instantly share code, notes, and snippets.

View Kalimaha's full-sized avatar
🌒
not because they are easy, but because they are hard

Guido Barbaglia Kalimaha

🌒
not because they are easy, but because they are hard
View GitHub Profile
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<style>
.link {
stroke: #666;
opacity: 0.9;
stroke-width: 1.5px;
}
.node circle {
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
}
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
}
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<style>
.link {
stroke: #666;
opacity: 0.9;
stroke-width: 1.5px;
}
.node circle {
@Kalimaha
Kalimaha / downloader_test.py
Created November 3, 2014 13:21
Downloader Test
from geobricks_downloader.download.downloader import Downloader
from geobricks_modis.core.modis_core import list_layers_countries_subset
# Filters
product = 'MCD12Q1'
year = '2001'
day = '001'
country = '0'
"processing": [
{
"band": 1,
"process": [
{
"extract_bands": ""
}
]
},
{
@Kalimaha
Kalimaha / process.js
Created November 6, 2014 10:37
Process JS
var process_step = function(tab_id, steps, current_step, band_index, band_label, source_folder, target_folder, callback) {
steps[current_step].source_path = source_folder;
steps[current_step].output_path = target_folder;
steps[current_step].band = band_index;
$.ajax({
url: CONFIG.url_process + CONFIG.data_provider + '/',
type: 'POST',
dataType: 'json',
data: JSON.stringify(steps[current_step]),
contentType: 'application/json',
"processing": [
{
"band": 1,
"process": [
{
"extract_bands": ""
}
]
},
{
GHG_QA_QC.prototype.populate_agsoils_tables_faostat = function(country_code) {
var query_config = [
{item: '1709', element: '7231'},
{item: '5056', element: '7235'},
{item: '3102', element: '72353'},
{item: '1755', element: '72351'},
{item: '1712', element: '72352'},
{item: '6729', element: '72318'},
{item: '1755', element: '72350'},
{item: '5057', element: '7237'},
$(function () {
$('#container').highcharts({
chart: {
type: 'scatter',
zoomType: 'xy'
},
title: {
text: 'Media VS Deviazione Standard'
},
subtitle: {