Skip to content

Instantly share code, notes, and snippets.

View SanthoshVijayabaskar's full-sized avatar
🎯
Focusing

Santhosh Vijayabaskar SanthoshVijayabaskar

🎯
Focusing
View GitHub Profile
@SanthoshVijayabaskar
SanthoshVijayabaskar / css.txt
Last active February 20, 2019 19:38
HelpLink
<link href="https://fonts.googleapis.com/css?family=Quicksand:300,500" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { AboutComponent } from './about/about.component';
const routes: Routes = [
{
path: '',
component: HomeComponent
},
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {HomeComponent } from './home/home.component';
import {AboutComponent} from './about/about.component';
import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
const routes: Routes = [
{
path: '',
component: HomeComponent
@SanthoshVijayabaskar
SanthoshVijayabaskar / mock-movie-data.json
Created February 14, 2019 04:08
Mock Movie JSON. Use "Mockoon" mac os app to mock the server endpoint.
[
{
"title": "Incredibles 2",
"poster": "https://i.ibb.co/xFpX2vw/incredibles2.jpg",
"rating": 7.8,
"runtime": 118,
"description": "When a new toy called Forky joins Woody and the gang, a road trip alongside old and new friends reveals how big the world can be for a toy.",
"year": 2018
},
{
@SanthoshVijayabaskar
SanthoshVijayabaskar / movie-board.component.css
Last active February 14, 2019 04:05
Angular 6 HelpFiles
.card-padding{
padding-right: 10px;
}
UPI DEMO APP :- https://github.com/juspay/upi-sdk
UPI SDK Documentation :- http://merchant-doc-v3.bitballoon.com/
repositories {
mavenCentral()
maven {
url "https://s3-ap-south-1.amazonaws.com/staging-assets-test"
}
}
@SanthoshVijayabaskar
SanthoshVijayabaskar / react_fiber.md
Created January 29, 2017 17:20 — forked from geoffreydhuyvetters/react_fiber.md
What is React Fiber? And how can I try it out today?
@SanthoshVijayabaskar
SanthoshVijayabaskar / gulpfile-with-webpack.js
Created January 5, 2017 21:00
Gulp file which uses Webpack to Build
var gulp = require('gulp');
var webpack = require('webpack-stream');
var serve = require('gulp-serve');
// Webpack
gulp.task('webpack', function() {
return gulp.src('./app.js')
.pipe(webpack(require('./webpack.config.js')))
.pipe(gulp.dest('./'));
});
@SanthoshVijayabaskar
SanthoshVijayabaskar / gulpfile.js
Created January 5, 2017 20:44
This is a sample Gulpfile for React Training
var gulp = require('gulp'); //importing the gulp package
var browserify = require('browserify'); //module load-order management using 'require'
var babelify = require('babelify');//importing babel support for transforming JSX to HTML
var source = require('vinyl-source-stream'); // converts the readable file from browserify to vinyl stream - virtual file format which gulp requires
gulp.task('build', function () {
return browserify({entries: './app.jsx', extensions: ['.jsx'], debug: true})
.transform('babelify', {presets: ['es2015', 'react']})
.bundle()
.pipe(source('bundle.js'))
var path = require('path');
module.exports = {
entry: "./app.js",
output: {
filename: "./bundle.js",
sourceMapFilename: "./bundle.map"
},
devtool: '#source-map',
module: {