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
// Example of usage | |
import { selectors } from './rootReducer'; | |
import { selectors } from '../../reducers/rootReducer'; | |
const mapStateToProps = (state: State, ownProps: any) => ({ | |
theseObjects: selectors.getTheseObjects(state), | |
thoseObjects: selectors.getThoseObjects(state), | |
showSomethinginUi: selectors.getSomethingFromUiSelectors(state), |
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
ReactSiteConfiguration.Configuration.AddScriptWithoutTransform("~/wwwroot/ng-server.bundle.js"); | |
ReactSiteConfiguration.Configuration.JsonSerializerSettings = new Newtonsoft.Json.JsonSerializerSettings | |
{ | |
ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore, | |
}; | |
// Don't use slower IE engine | |
ReactSiteConfiguration.Configuration.AllowMsieEngine = false; |
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
// converts commonJS requires to es6 imports | |
// var foo = require('foo'); | |
// -> | |
// import foo from 'foo'; | |
// | |
// jscodeshift -t requiresToImports.js src/**/*.js* | |
'use strict'; | |
module.exports = function(fileInfo, api) { | |
var j = api.jscodeshift; |
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
'use strict'; | |
//External | |
var Reflux = require('reflux'); | |
//Local | |
var CommentActions = require('./CommentActions'); | |
var CommentStore = Reflux.createStore({ |
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
# Dockerfile to run node app | |
# VERSION 1 - EDITION 2 | |
# Base image used is Ubuntu 14.04 LTS | |
FROM ubuntu:14.04 | |
MAINTAINER me | |
# Install wget | |
RUN apt-get update && apt-get install -y \ |
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
#!py | |
def run(): | |
''' | |
Manage sudo enabled user adds/removes | |
''' | |
# temp fix for regression https://github.com/saltstack/salt/issues/7693 | |
if '__pillar__' in globals(): | |
globals()['pillar'] = globals()['__pillar__'] |
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
Log { | |
Level = Error | |
NoSilencer = false | |
AlwaysLogUnhandledExceptions = true | |
RuntimeErrorReportingLevel = 8191 | |
Header = false | |
InjectedStackTrace = true | |
NativeStackTrace = true | |
MaxMessagesPerRequest = -1 | |
# error log settings |
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
Data failed to compile: | |
---------- | |
Traceback (most recent call last): | |
File "/usr/lib/pymodules/python2.7/salt/state.py", line 2293, in call_highstate | |
top = self.get_top() | |
File "/usr/lib/pymodules/python2.7/salt/state.py", line 1880, in get_top | |
return self.merge_tops(tops) | |
File "/usr/lib/pymodules/python2.7/salt/state.py", line 1814, in merge_tops | |
top[env][tgt] = ctop[env][tgt] | |
TypeError: list indices must be integers, not str |
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
Currently we can do this for file system mapping: | |
file_roots: | |
base: | |
- /srv/salt/base | |
dev: | |
- /srv/salt/dev | |
qa: | |
- /srv/salt/qa | |
prod: |
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
Processing 1 | |
Processing 2 | |
Processing 3 | |
Processing 4 | |
Processing 5 | |
[Error: Exploding on 5] | |
Processing 6 | |
Processing 7 | |
Processing 8 | |
Processing 9 |
NewerOlder