git init
git remote add origin url://to/source/repository
git fetch origin # SHA #
-----> Node.js app detected | |
-----> Creating runtime environment | |
NPM_CONFIG_LOGLEVEL=error | |
NPM_CONFIG_PRODUCTION=false | |
NODE_ENV=production | |
NODE_MODULES_CACHE=true | |
-----> Installing binaries | |
engines.node (package.json): >=4.2.0 | |
engines.npm (package.json): ^3.0.0 |
import angular from 'angular'; | |
// fn | |
const normaliz = ( entities ) => ( { | |
entities: entities.reduce( (r, e) => Object.assign( r, { [e._id]: e } ), {} ), | |
ids: entities.map( d => d._id ) | |
} ); | |
const storeItem = ( item ) => ( value ) => |
import firebase from 'firebase'; | |
firebase.initializeApp({ | |
serviceAccount: `${__dirname}/../../server/config/firebase.json`, | |
databaseURL: 'https://pontuali-dev.firebaseio.com/', | |
}); | |
const db = firebase.database(); | |
const dataRef = db.ref('/data'); | |
dataRef.on('child_added', (snapshot) => { | |
console.log('addedded, child', snapshot.val()); | |
}); |
import React from 'react' | |
import FormValidate, { ErrorComponent, identity, ruleValidate, validator } from '../Form_HOC' | |
import { mount } from 'enzyme' | |
import { withHandlers } from 'recompose' | |
import { Stateful } from 'react-mock' | |
describe('FormValidate', () => { | |
let Form | |
let wrapper | |
let stateful |
export default { | |
'users': 'User' | |
} |
import React from 'react' | |
import 'prop-types' | |
import GridFactory, { GridContainerFactory } from '../GridContainer' | |
import { mount } from 'enzyme' | |
const mockRequestAction = { type: 'REQUEST_ACTION_TEST' } | |
const List = ({ records }) => <ul records={records}></ul> | |
const props = { | |
addFormUniqueName: 'form1', | |
reducerName: 'form-test-x', |
subprojects { | |
afterEvaluate {project -> | |
if (project.hasProperty("android")) { | |
android { | |
compileSdkVersion 25 | |
buildToolsVersion '25.0.0' | |
} | |
} | |
} | |
} |
var count = 0; | |
function autoScrolling() { | |
var interval = 200; | |
window.scrollTo(0, document.body.scrollHeight); | |
$('.ProfileCard-content').each(function() { | |
var status = $(this) | |
.find('.FollowStatus') | |
.text(); | |
var unfollowButton = $(this).find('.user-actions-follow-button'); | |
if (status != 'Follows you') { |
version: '2' | |
services: | |
replica1: | |
image: mongo:3.0 | |
container_name: mongo1 | |
ports: | |
- "27017:27017" | |
volumes: | |
- ./mongodata/replica1:/data/db | |
command: mongod --smallfiles --replSet "mrmtx" |