Skip to content

Instantly share code, notes, and snippets.

View miquelbeltran's full-sized avatar

Miguel Beltran miquelbeltran

View GitHub Profile
taskOne.dependsOn build
taskTwo.mustRunAfter build
taskThree.shouldRunAfter taskTwo
build.finalizedBy copyImages
project(':project1'){}
project(':project2') {
dependencies {
compile project(':project1')
}
}
apply plugin: 'java'
repositories {
jcenter()
}
dependencies {
testCompile 'junit:junit:4.12'
compile 'com.google.dagger:dagger:2.0'
compile 'com.google.dagger:dagger-compiler:2.0'
public class GameData {
public final String hello = "Hello Dagger";
}
public class GameData {
public final String hello = "Hello Dagger";
}
import dagger.Component;
@Component(modules = GameModule.class)
public interface GameComponent {
void inject(GameSession obj);
}
import org.junit.Test;
import static org.junit.Assert.*;
public class GameSessionTest {
@Test
public void testGameSession() {
GameSession session = new GameSession();
DaggerGameComponent.create().inject(session);
assertEquals("Hello Dagger", session.data.hello);
}
\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[grey]{classic}
\moderncvicons{awesome}
\usepackage[T1]{fontenc}
% character encoding
\usepackage[utf8x]{inputenc}
\usepackage[english]{babel}
\usepackage{eurosym}
'use strict';
import React, {
AppRegistry,
Component
} from 'react-native';
import Scroller from './app/scroller.js';
class AppTest2 extends Component {
render() {
return (
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
ListView,
View,
Image
} from 'react-native';