Skip to content

Instantly share code, notes, and snippets.

View fourcube's full-sized avatar

Chris Grieger fourcube

View GitHub Profile
@fourcube
fourcube / foo.js
Created April 21, 2017 09:29
nodejs-es6
module.exports = class Foo {
constructor() {
console.log('foo');
}
}
@fourcube
fourcube / main.go
Last active August 29, 2015 14:20
Go Echo Server
package main
import (
"io"
"log"
"net"
)
func EchoServer(addr string, done chan struct{}) net.Listener {
listener, err := net.Listen("tcp", addr)
@fourcube
fourcube / UseCase-Template
Created January 7, 2015 10:51
Markdown Template for describing Use Cases
Use Case 1: (Target) Title (Type)
=================================
**Primary Actor**: User
**Scope**: Software system
**Level**: Summary / User Goal
Main success scenario:
----------------------
1. ...
2. ...
@fourcube
fourcube / demo.js
Created September 2, 2014 04:37
Embedding Code in Medium Articles
'use strict';
var status = "Embedding Gists works perfectly.";
console.log(status);
package svv;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import static org.mockito.Mockito.*;
package svv;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package de.grieger.ws11_mockito;
import java.io.Reader;
import java.util.Map;