Skip to content

Instantly share code, notes, and snippets.

View ps06756's full-sized avatar

Pratik Singhal ps06756

View GitHub Profile
import React from 'react';
import PropTypes from 'prop-types';
import { Document, Page } from 'react-pdf';
import { AutoSizer, List, WindowScroller } from 'react-virtualized';
class PdfViewer extends React.Component {
constructor(props) {
super(props);
this.state = {
@ps06756
ps06756 / style.css
Last active November 2, 2017 16:05
Sample Landing Page stylesheetz
html, body {
margin : 0px;
padding: 0px;
width: 100%;
height: 100%;
overflow-x: hidden;
}
.first-section, .second-section {
background-color: #f6f6f6;
@ps06756
ps06756 / index.html
Created November 2, 2017 15:34
sample-landing-page
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<header class="background"> </header>
<section class="first-section">
package com.example;
class PhysicsTeacher implements Teacher {
private String subject;
public PhysicsTeacher() {
this.subject = "Physics";
}
package com.example;
class PhysicsStudent implements Student {
private String description;
public PhysicsStudent() {
this.description = "I am a student who studies physics!";
}
package com.example;
import com.google.inject.Injector;
import com.google.inject.Guice;
public class Main {
public static void main(String[] args) {
Injector injector = Guice.createInjector(new PhysicsClassroomModule());
package com.example;
import com.google.inject.AbstractModule;
public class PhysicsClassroomModule extends AbstractModule {
@Override
protected void configure() {
bind(Student.class).to(PhysicsStudent.class);
bind(Teacher.class).to(PhysicsTeacher.class);
package com.example;
import javax.inject.Inject;
class Classroom {
private Student student;
private Teacher teacher;
@Inject
package com.example;
interface Teacher {
public String getSubject();
}
package com.example;
interface Student {
public String getDescription();
}