This file contains hidden or 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
#include <iostream> | |
#include <PROJ/proj_api.h> | |
int bng_1m_accuracy() { | |
// e.g. x = -1.8, y = 51.18; => Easting: 414075.69 Northing: 142326.96 | |
projPJ pj_src, pj_dst; | |
double x, y; | |
int p; | |
This file contains hidden or 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
Simulator Calculations | |
We assume ~12 racks (but power below is probably for 6 - 12 HPC racks depending on load) | |
P = IV [power = amps x volts] | |
rack = 30A x ~240V [note: some racks might use two 30A] | |
rack = 7200 | |
E(kWh/day) = P(W) × t(h/day) / 1000(W/kW) | |
Energy per rack per day = 7200 x 24 / 1000 | |
rack = 172.8 kWh/day |
This file contains hidden or 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 rx.Observable; | |
import rx.Subscriber; | |
import rx.functions.Func1; | |
import rx.functions.Func2; | |
import java.util.concurrent.TimeUnit; | |
public class RxJavaMergeWith { | |
public static void main(String[] args) throws InterruptedException { |
This file contains hidden or 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"?> | |
<resources> | |
<!-- Material Colours --> | |
<color name="red50">#FFEBEE</color> | |
<color name="red100">#FFCDD2</color> | |
<color name="red200">#EF9A9A</color> | |
<color name="red300">#E57373</color> | |
<color name="red400">#EF5350</color> |
This file contains hidden or 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/python | |
import os, os.path, re | |
counterAll = 0 | |
counterRenamed = 0 | |
for root, _, files in os.walk("./data"): | |
for f in files: | |
counterAll += 1 |
This file contains hidden or 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 os, os.path, re | |
for root, _, files in os.walk("./"): | |
for f in files: | |
fullpath = os.path.join(root, f) | |
replaced = re.sub("_OST50GRID\w*", "", f) | |
newfullpath = os.path.join(root, replaced) | |
print fullpath | |
print newfullpath | |
os.rename(fullpath, newfullpath) |
This file contains hidden or 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
compile 'com.google.appengine:appengine:1.9.7' | |
compile 'com.google.appengine:appengine-endpoints:1.9.7' | |
compile 'com.google.appengine:appengine-testing:1.9.7' | |
compile 'com.google.appengine:appengine-maven-plugin:1.9.7' | |
compile 'com.google.appengine:appengine-java-sdk:1.9.7' | |
compile 'com.google.appengine:appengine-local-endpoints:1.9.7' | |
compile 'com.google.appengine:appengine-endpoints-deps:1.9.7' | |
compile 'com.google.appengine:appengine-remote-api:1.9.7' | |
compile 'com.google.appengine:appengine-tools-sdk:1.9.7' | |
compile 'com.google.appengine:appengine-jsr107cache:1.9.7' |
NewerOlder