Skip to content

Instantly share code, notes, and snippets.

View hasandiwan's full-sized avatar
💭
Fixing bugs, always

Hasan Diwan hasandiwan

💭
Fixing bugs, always
View GitHub Profile
@hasandiwan
hasandiwan / sqltime.c
Last active February 6, 2019 05:06
SQLTime
/*
* World-time, by Hasan Diwan <hasandiwan+sqlTime@gmail.com>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libpq-fe.h>
static int
@hasandiwan
hasandiwan / GeoErrorControllerTest.java
Last active December 26, 2018 05:53
Geonotes Unit Tests
package hello;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>default-cli</id>
<phase>package</phase>
<configuration>
<target>
<java classname="hello.GistMap">