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
var React = require("react"); | |
var bs = require("react-bootstrap"); | |
var RHInput = React.createClass({ | |
//contextTypes: { getValue: React.PropTypes.func.isRequired }, | |
natEnglishFormCamelCase: function (val) { | |
//make this work | |
return val.toUpperCase(); |
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
co.wrap(function*() { | |
try { | |
var salt = yield bcrypt.genSalt(); | |
var hash = yield bcrypt.hash(this.password, salt); | |
this.password = hash; | |
done(); | |
} | |
catch (err) { | |
done(err); | |
} |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.synced_folder "./", "/vagrant_share", create: true | |
config.vm.provision "shell" do |s| | |
s.path = "provision/setup.sh" | |
end | |
end |
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
FROM mf/nodebox | |
# Maintainer | |
MAINTAINER Raif Harik <reharik@gmail.com> | |
# Expose the node.js port to the Docker host. | |
EXPOSE 3000 | |
# Entrypoint to docker shell | |
ENTRYPOINT ["docker-shell"] |
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 for a base node installation with NVM | |
FROM debian:wheezy | |
USER root | |
RUN \ | |
mkdir -p /opt/app/current && \ | |
mkdir -p /var/log/nodejs && \ | |
mkdir -p /var/run/nodejs && \ | |
echo DIRECTORIES BUILT && \ |
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
user www-data; | |
worker_processes 4; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} | |
http { |
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
"internalDependencies": { | |
"logger": "/src/logger" | |
} |
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
module.exports = function(TestClassBase, pointlessDependency, logger) { | |
return class TestClass extends TestClassBase { | |
constructor(someOtherProp) { | |
super(); | |
this._someOtherProp = someOtherProp; | |
//do something here | |
} | |
setSomeOtherProp(val) { | |
this._someOtherProp = val; |
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
module.exports = { | |
container: container ? container | |
: new _container(x=> | |
x.pathToPackageJson('../package.json') | |
.forDependencyParam('logger').requireThisInternalModule('./loggerMock') | |
.replace('lodash').withThis('_') | |
.replace('bluebird').withThis('Promise') | |
.complete()) | |
}; |
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
var invariant = require('invariant'); | |
var path = require('path'); | |
var helpers = require('./DSLHelpers'); | |
module.exports = (function () { | |
function RegistryDSL() { | |
_classCallCheck(this, RegistryDSL); | |
this.dependencyDeclarations = []; | |
... |
OlderNewer