Skip to content

Instantly share code, notes, and snippets.

View mateodelnorte's full-sized avatar

Matt Walters mateodelnorte

View GitHub Profile
type Contract {
_id: ID!
createdAt: DateTime!
updatedAt: DateTime!
startDate: DateTime
endDate: DateTime
meta: JSON
contractType: Contracttype
files(sort: String, limit: Int, start: Int, where: JSON): [UploadFile]
}
{
"data": {
"__schema": {
"queryType": {
"name": "Query"
},
"mutationType": null,
"subscriptionType": null,
"types": [{
"kind": "OBJECT",
@mateodelnorte
mateodelnorte / gist:5475b1d28f902e501a29686cf7c91082
Created June 9, 2017 22:34
error when using node-gyp rebuild --msvs_version=2013
$ node-gyp rebuild --msvs_version=2013
gyp info it worked if it ends with ok
gyp info using node-gyp@3.5.0
gyp info using node@6.9.1 | win32 | x64
gyp info spawn C:\Python27\python.EXE
gyp info spawn args [ 'C:\\Program Files (x86)\\Nodist\\v-x64\\6.9.1\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
@mateodelnorte
mateodelnorte / gist:67f124196377a0ca0815c66644bf1082
Created June 9, 2017 22:33
error when using node-gyp rebuild --msvs_version=2012
$ node-gyp rebuild --msvs_version=2012
gyp info it worked if it ends with ok
gyp info using node-gyp@3.5.0
gyp info using node@6.9.1 | win32 | x64
gyp info spawn C:\Python27\python.EXE
gyp info spawn args [ 'C:\\Program Files (x86)\\Nodist\\v-x64\\6.9.1\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
@mateodelnorte
mateodelnorte / gist:8c49520a883d7fb20ef8be784ac10a9a
Created June 9, 2017 22:26
error when using node-gyp rebuild --msvs_version=2015
$ npm install
> sophis-c-client@0.0.0 install C:\development\ged\sophis-c-client
> node-gyp rebuild --msvs_version=2015
C:\development\ged\sophis-c-client>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\Nodist\npmv\3.10.8\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --msvs_version=2015 ) else (node "" rebuild --msvs_version=2015 )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
node_api.cc
c:\users\waltem7\.node-gyp\6.9.4\include\node\v8.h(345): error C2988: unrecognizable template declaration/definition [C:\development\ged\sophis-c-c lient\node_modules\node-addon-api\src\node-api.vcxproj]
$ node-gyp rebuild --msvs_version=2013
gyp info it worked if it ends with ok
gyp info using node-gyp@3.5.0
gyp info using node@6.9.1 | win32 | x64
gyp info spawn C:\Python27\python.EXE
gyp info spawn args [ 'C:\\Program Files (x86)\\Nodist\\v-x64\\6.9.1\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
A clean way to structure your git branches!
Git-flow is a process for managing changes in Git that was created by Vincent Driessen and accompanied by some Git extensions
for managing that flow.
The general idea behind git-flow is to have several separate branches that always exist, each for a different purpose: master,
development, feature, release, and hotfix.
The process of feature or bug development flows from one branch into another before it’s finally released.
var EventEmitter = require('events').EventEmitter;
var log = require('debug')('mongo');
var client = require('mongodb').MongoClient;
var util = require('util');
function Mongo () {
EventEmitter.call(this);
}
util.inherits(Mongo, EventEmitter);
import mongoose from '../mongo';
import bcrypt from 'bcrypt';
var userSchema = mongoose.Schema({
email: { type: String, index: true },
fullName: String,
isAdmin: { type: Boolean, index: true },
password: { type: String, index: true }
});
@mateodelnorte
mateodelnorte / yarn-error.log
Created November 20, 2016 05:41
error running `yarn install`
Arguments:
/usr/local/bin/node /usr/local/bin/yarn install
PATH:
/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/Cellar/rabbitmq/3.6.1/sbin
Yarn version:
0.17.6
Node version: