Work through an exercise of processing a CSV file containing time series data on amount of sunshine.
TODO
- Plan conceptual steps together to create a flowchart on whiteboard
- how to find and use existing code
from netCDF4 import Dataset | |
from mpl_toolkits.basemap import Basemap |
PKG_CONFIG := pkg-config | |
#SDL_CONFIG := sdl2-config | |
SDL_CONFIG := /usr/x86_64-w64-mingw32/bin/sdl2-config | |
SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags) | |
SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs) | |
CAIRO_CFLAGS := $(shell $(PKG_CONFIG) cairo --cflags) | |
CAIRO_LDFLAGS := $(shell $(PKG_CONFIG) cairo --libs) | |
cairotest: cairotest.c | |
clang $(SDL_CFLAGS) $(SDL_LDFLAGS) $(CAIRO_CFLAGS) $(CAIRO_LDFLAGS) -o cairotest cairotest.c |
package foo; | |
import static java.lang.invoke.MethodHandles.catchException; | |
import static java.lang.invoke.MethodHandles.publicLookup; | |
import static java.lang.invoke.MethodType.methodType; | |
public class Foo { | |
public void sayHello(String name) throws RuntimeException { | |
System.out.println("hello " + name); | |
throw new RuntimeException("boom!"); |
package foo; | |
import static java.util.EnumSet.of; | |
import java.io.File; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.ClosedChannelException; | |
import java.nio.channels.FileChannel; | |
import java.nio.channels.ReadableByteChannel; |
import static org.hamcrest.MatcherAssert.assertThat; | |
import static org.hamcrest.Matchers.both; | |
import static org.hamcrest.Matchers.greaterThan; | |
import static org.hamcrest.Matchers.lessThan; | |
import org.junit.Test; | |
public class AllOfTest { | |
@Test | |
public void doesPrintMismatch() { |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-release-plugin</artifactId> | |
<version>2.2.2</version> | |
<configuration> | |
<arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments> | |
</configuration> | |
</plugin> |
<scm> | |
<connection>scm:git:git://github.com/hertzsprung/redis-launcher.git</connection> | |
<developerConnection>scm:git:git@github.com:hertzsprung/redis-launcher.git</developerConnection> | |
<url>http://github.com/hertzsprung/redis-launcher</url> | |
</scm> |
<distributionManagement> | |
<snapshotRepository> | |
<id>sonatype-nexus-snapshots</id> | |
<name>Sonatype Nexus snapshot repository</name> | |
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | |
</snapshotRepository> | |
<repository> | |
<id>sonatype-nexus-staging</id> | |
<name>Sonatype Nexus release repository</name> | |
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
<profiles> | |
<profile> | |
<id>release-sign-artifacts</id> | |
<activation> | |
<property> | |
<name>performRelease</name> | |
<value>true</value> | |
</property> | |
</activation> | |
<build> |