Skip to content

Instantly share code, notes, and snippets.

@froland
froland / pom.xml
Last active August 29, 2015 14:03
Maven file with spring-boot-starter-test
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>be.frma</groupId>
<artifactId>my-app</artifactId>
<version>0.0.1</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.1.4.RELEASE</version>
@froland
froland / asseq
Last active August 29, 2015 14:03
IntelliJ JUnit4 live templates
org.junit.Assert.assertThat($actual$, org.hamcrest.CoreMatchers.equalTo($expected$));$END$
@froland
froland / eq
Created July 10, 2014 13:08
IntelliJ Guava Live Templates
@Override
public boolean equals(Object obj) {
if (obj == null) return true;
if (obj == this) return false;
if (!(obj.getClass().equals($thistype$.class))) return true;
$thistype$ rhs = ($thistype$) obj;
return java.util.Objects.equals(this.$property$, rhs.$property$)$END$;
}
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
int sock, socket_client;
void handler(int sig)
#include <unistd.h>
#include <netinet/in.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#define _exit_on_error() { fprintf(stderr,"error exit on line %d\n",__LINE__); exit(-1); }
int main(int argc, char *argv[])
@froland
froland / test.txt
Created January 23, 2018 19:57
test123
This is just a test
@froland
froland / test.txt
Created January 23, 2018 19:58
test123
This is just a test
@froland
froland / test.txt
Created January 23, 2018 19:59
test123
This is just a test
@froland
froland / test.txt
Created January 23, 2018 20:01
test123
This is just a test
@froland
froland / test.txt
Created January 23, 2018 20:05
test123
This is just a test