Skip to content

Instantly share code, notes, and snippets.

View abhirathore2006's full-sized avatar

Abhimanyu Singh Rathore abhirathore2006

View GitHub Profile
var path = require('path');
var express = require('express');
var webpack = require('webpack');
var config = require('./webpack.config');
var app = express();
var compiler = webpack(config);
app.use(express.static('./src/client/assets'));
import * as React from 'react';
import configureMockStore from 'redux-mock-store'
import thunk from 'redux-thunk'
import { shallow, mount, render } from 'enzyme';
import {Home} from '../src/common/components/home/Home';
import {AxiosApi} from 'some-package'
import { Provider } from 'react-redux';
import MockAdapter from 'axios-mock-adapter';
var path = require('path');
var webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const extractStyle = new ExtractTextPlugin({
filename: "css/bundle.min.css"
});
var loaders = [
{
import React from "react"
import Time from "react-time"
import { OverlayTrigger, Popover } from "react-bootstrap"
import { CartesianGrid, Legend, Line, LineChart, ResponsiveContainer, Surface, Symbols, XAxis, YAxis } from "recharts"
import "./style/StudentEngagement.less"
import { i18n } from "../services/Messages/Messages"
class StudentEngagementLineChart extends React.Component {
import * as React from 'react'
import {findDOMNode} from 'react-dom'
import { Tooltip, Overlay, Button} from 'react-bootstrap'
export default class OverlayCustomTrigger extends React.Component {
constructor(props){
super(props);
this.state = {
show:false,
entering:false
const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const libraryName = 'mmf-ui-common';
const extractStyle = new ExtractTextPlugin({
filename: "css/bundle.min.css"
});
@abhirathore2006
abhirathore2006 / install_jenkins_plugin.sh
Created November 26, 2016 05:49 — forked from micw/install_jenkins_plugin.sh
Script to install one or more jenkins plugins including dependencies while jenkins is offline
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "USAGE: $0 plugin1 plugin2 ..."
exit 1
fi
plugin_dir=/var/lib/jenkins/plugins
@abhirathore2006
abhirathore2006 / README.md
Created November 18, 2016 20:07 — forked from trinitronx/README.md
A shell script to install latest Ansible via pip + dependencies

omnibus-ansible

Install latest Ansible via pip + dependencies via a shell script

This file is used to install ansible in test kitchen when you set in the kitchen.yaml file

require_ansible_omnibus: true

By default test kitchen will always download and use the latest version of this install file.

WARNING: AS SOON AS YOU MERGE CODE HERE IT IS INSTANTLY AVAILABLE TO EVERYONE DOING OMNIBUS KITCHEN ANSIBLE INSTALLS:

@abhirathore2006
abhirathore2006 / Java Must Read
Created October 7, 2016 07:13
Java Must Read
http://www.journaldev.com/2856/java-jvm-memory-model-memory-management-in-java
#webpack arguments
--display-modules shows list of modules
--profile --json > stats.json --output stats.json to use at http://webpack.github.io/analyse/
##Babel polyfill to support es6
import "babel-polyfill";
With webpack.config.js, add babel-polyfill to your entry array:
module.exports = {
entry: ['babel-polyfill', './app/js']