This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './set-public-path'; | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import singleSpaReact from 'single-spa-react'; | |
import Root from './root.component'; | |
const lifecycles = singleSpaReact({ | |
React, | |
ReactDOM, | |
rootComponent: Root, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-undef */ | |
const path = require('path'); | |
const CleanWebpackPlugin = require('clean-webpack-plugin').CleanWebpackPlugin; | |
module.exports = { | |
entry: path.resolve(process.cwd(), `src/test-spa.js`), | |
output: { | |
path: path.resolve(process.cwd(), 'dist'), | |
libraryTarget: 'system', | |
filename: 'bundle.js', | |
jsonpFunction: `webpackJsonp_smarthands`, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'create_connection.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter App', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// FeatureViewController.swift | |
// IOS11AppStoreClone | |
// | |
// Created by Ajay Singh on 24/7/18. | |
// Copyright © 2018 Ajay Singh. All rights reserved. | |
// | |
import UIKit | |
class FeatureViewController: UIViewController,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// TodayViewController.swift | |
// IOS11AppStoreClone | |
// | |
// Created by Ajay Singh on 26/10/17. | |
// Copyright © 2017 Ajay Singh. All rights reserved. | |
// | |
import UIKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class Bar extends StatelessWidget { | |
final double height; | |
final Color color; | |
const Bar({this.height,this.color}) : super(); | |
@override | |
Widget build(BuildContext context) { | |
return Container( | |
width: 4.0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'barcontainer.dart'; | |
import 'dart:async'; | |
class BarContainerAnimation extends StatefulWidget { | |
@override | |
_BarContainerAnimationState createState() => | |
new _BarContainerAnimationState(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'bar.dart'; | |
class BarContainer extends StatelessWidget { | |
BarContainer({Key key, this.controller}) : super(key: key); | |
final Animation<double> controller; | |
Animation<double> get stepOne => | |
new Tween<double>(begin: 1.0, end: 1.5).animate( | |
new CurvedAnimation( | |
parent: controller, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is sample gist to handle wallet updates and workflow of wallet | |
var express = require('express'); | |
var app = express(); | |
var bodyParser = require('body-parser'); | |
var mongoose = require('mongoose'); | |
mongoose.connect('url'); | |
var Schema = mongoose.Schema, | |
ObjectId = Schema.ObjectId; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React,{Component} from 'react'; | |
import { createRedux } from 'redux'; | |
import Router from './router'; | |
import { Provider } from 'redux/react'; | |
import * as stores from './indexstore'; | |
const redux = createRedux(stores); | |
export default class App extends Component { | |
constructor(props){ | |
super(props); | |
this.state={Handler: null}; |