This file contains 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
# Stop PostgreSQL from auto starting | |
sudo launchctl unload -w /Library/LaunchDaemons/com.edb.launchd.postgresql-9.3.plist | |
# Enable PostgreSQL to auto start | |
sudo launchctl load -w /Library/LaunchDaemons/com.edb.launchd.postgresql-9.3.plist | |
# Start postgres | |
$ sudo su postgres | |
Password: | |
bash-3.2$ pg_ctl -D /Library/PostgreSQL/9.3/data/ start |
We can't make this file beautiful and searchable because it's too large.
This file contains 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
cell_barcode read_count gene_count seurat_cluster UMAP_1 UMAP_2 UMAP3d_1 UMAP3d_2 UMAP3d_3 tSNE_1 tSNE_2 tSNE3d_1 tSNE3d_2 tSNE3d_3 PC_1 PC_2 PC_3 PC_4 PC_5 PC_6 PC_7 PC_8 PC_9 PC_10 | |
AAACCCAAGCGTATGG 13714 3571 1 -12.1495344458314 4.42496242156771 7.20892985107213 -1.23383448573862 -7.35562045730376 -19.4074653945561 -0.443408135045504 0.376314537997374 -35.3325977217411 3.48147021976243 25.2920023025616 -0.658515731723782 3.06150436686541 2.52919178948326 -0.186151850932257 -2.32978829685547 10.1636210224137 -1.40010633935736 -1.38572876460037 -0.39109649878621 | |
AAACCCAGTCCTACAA 12639 3436 1 -11.8351165155547 0.843483158596083 8.53364491599944 -0.563231812153522 -4.47490268071354 -34.9319002048894 1.25502519562013 1.59549930200006 -31.8056037185048 -15.7966977268859 27.2224461502458 -1.45304288750018 2.54817314720591 0.909215663569011 -0.348479676626618 0.662038088924922 -3.55878545434062 2.10722147285633 1.11416989654527 0.683756049927217 | |
AAACCCATCACCTCAC 1012 354 3 1.83932652199933 -2.27629410095361 0.01707 |
This file contains 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
const generateRandomString = (length = 6, chars = '0123456789abcdefghijklmnOPQRSTUVWXYZ') => | |
Array.apply(null, {length}).reduce(hash => hash.concat(chars[Math.round(Math.random() * (chars.length - 1))]), ''); |
This file contains 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 {UI} from './initialStates'; | |
import {REHYDRATE} from 'redux-persist/constants'; | |
import {searchFilters} from '../helpers/'; | |
export const isToggled = (state, toggle) => { | |
switch(toggle) { | |
case 'collapsed': | |
return state.collapsed; | |
case 'expanded': | |
return state.expanded; |
This file contains 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
// Main reducer | |
import {combineReducers} from 'redux'; | |
import {routerReducer} from 'react-router-redux'; | |
import WhateverReducer, * as fromWhateverReducer from './reducer-Whatever'; | |
import UIReducer, * as fromUIReducer from './reducer-UI'; | |
import {storeSelector} from 'helpers/'; | |
export const rootReducer = combineReducers({ | |
uiState: UIReducer, | |
whatever: WhateverReducer, |
This file contains 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 {createStore, applyMiddleware} from 'redux'; | |
import {routerMiddleware} from 'react-router-redux'; | |
import {composeWithDevTools} from 'redux-devtools-extension'; | |
import {persistStore, autoRehydrate} from 'redux-persist'; | |
import {createFilter} from 'redux-persist-transform-filter'; | |
// TODO crosstab persistance sync | |
//import crosstabSync from 'redux-persist-crosstab'; | |
import createHistory from 'history/createBrowserHistory'; | |
import localForage from 'localforage'; | |
import thunk from 'redux-thunk'; |
This file contains 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 from 'react'; | |
import ReactDOM from 'react-dom'; | |
import {Provider} from 'react-redux'; | |
import {AppContainer} from 'react-hot-loader'; | |
import configureStore from './configureStore'; | |
import {Route} from 'react-router'; | |
import {ConnectedRouter} from 'react-router-redux'; | |
import {debounce} from 'lodash'; | |
import {uiActions} from 'actions/'; | |
import Stage from 'containers/stage'; |
This file contains 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
{ | |
"name": "template", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"start": "SET NODE_ENV=development && webpack-dev-server --progress --color --env=development", | |
"iis": "SET NODE_ENV=development && rimraf ./dist/* && webpack --progress --watch --color --env=production", | |
"build": "SET NODE_ENV=production && SET BABEL_ENV=production && rimraf ./dist/* && webpack -p --progress --color --env=production", | |
"buildDev": "SET NODE_ENV=development && SET BABEL_ENV=development && rimraf ./dist/* && webpack --progress --color --env=development", |
This file contains 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
public static JObject GetWebpackAssetsJson(string applicationBasePath) | |
{ | |
JObject webpackAssetsJson = null; | |
string packageJsonFilePath = $"{applicationBasePath}\\{"package.json"}"; | |
using (StreamReader packageJsonFile = File.OpenText(packageJsonFilePath)) | |
{ | |
using (JsonTextReader packageJsonReader = new JsonTextReader(packageJsonFile)) | |
{ | |
JObject packageJson = (JObject)JToken.ReadFrom(packageJsonReader); |
This file contains 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
const webpack = require('webpack'); | |
const path = require('path'); | |
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin'); | |
const HtmlWebpack = require('html-webpack-plugin'); | |
const HtmlWebpackAssetsPlugin = require('html-webpack-include-assets-plugin'); | |
const WebpackNotifierPlugin = require('webpack-notifier'); | |
const AssetsPlugin = require('assets-webpack-plugin'); | |
const Visualizer = require('webpack-visualizer-plugin') | |
const BUILD_DIRECTORY = 'src'; |
NewerOlder