Skip to content

Instantly share code, notes, and snippets.

View supnate's full-sized avatar
🎯
Muse.

Nate Wang supnate

🎯
Muse.
View GitHub Profile
@supnate
supnate / rekit_root.js
Created March 16, 2018 07:52
Rekit: src/Root.js
/* This is the Root component mainly initializes Redux and React Router. */
import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import { Switch, Route } from 'react-router-dom';
import { ConnectedRouter } from 'react-router-redux';
import history from './common/history';
function renderRouteConfigV3(routes, contextPath) {
const path = require('path');
const http = require('http');
const express = require('express');
const rekitStudioMiddleWare = require('rekit-studio/middleware');
const fallback = require('express-history-api-fallback');
const pkgJson = require('../package.json');
function startStudioServer() {
console.log('Starting Rekit Studio...');
const app = express();
@supnate
supnate / index.html
Created September 11, 2014 03:47
[add your bin description] // source http://jsbin.com/fubuza/9
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[add your bin description]" />
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://fb.me/react-0.11.0.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
@supnate
supnate / 0_reuse_code.js
Created January 10, 2014 06:01
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console