This file contains hidden or 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
// generate random unsigned 64bit integer | |
#ifdef _WIN32 | |
#define __alignof__ __alignof | |
#define snprintf(buf, bufSize, format, arg) _snprintf_s(buf, bufSize, _TRUNCATE, format, arg) | |
#define strtoll _strtoi64 | |
#define strtoull _strtoui64 | |
#define PRId64 "lld" | |
#define PRIu64 "llu" |
This file contains hidden or 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'; | |
const Joi = require('joi'); | |
const schema = Joi.string(); | |
const attempt = Joi.attempt({}, schema); | |
This file contains hidden or 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
D:\Modules\node-taglib2>cmake-js build | |
(node:15560) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. | |
info TOOL Using Visual Studio 14 2015 Win64 generator. | |
info CMD CONFIGURE | |
info RUN cmake "D:\Modules\node-taglib2" --no-warn-unused-cli -G"Visual Studio 14 2015 Win64" -DCMAKE_JS_VERSION="3.2.1" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_JS_INC="C:\Users\Simon\.cmake-js\node-x64\v6.3.1\include\node;D:\Modules\node-taglib2\node_modules\nan" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="6.3.1" -DNODE_ARCH="x64" -DCMAKE_JS_LIB="C:\Users\Simon\.cmake-js\node-x64\v6.3.1\win-x64\node.lib" | |
Not searching for unused variables given on the command line. | |
-- The C compiler identification is MSVC 19.0.24210.0 | |
-- The CXX compiler identification is MSVC 19.0.24210.0 | |
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe | |
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Vi |
This file contains hidden or 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":"cui","encodedLicence":"someString","_id":"MQOifltLiOJh68oJ"} | |
{"name":"cui","encodedLicence":"someString","_id":"MQOifltLiOJh68oJ"} |
This file contains hidden or 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
internals.Schema = Joi.object({ | |
metaSchema: Joi.object().keys({ | |
description: Joi.string(), | |
type: Joi.string().required().valid('collection', 'definition', 'record'), | |
base: Joi.alternatives().when('type', { | |
is: ['record'], | |
then: Joi.string().required() | |
}), | |
jsonSchema: Joi.string(), | |
name: Joi.string().required(), |
This file contains hidden or 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
#!/bin/sh | |
# MongoDB Version | |
MONGODB_VER='3.0.6' | |
# Get all the dependencies up to date | |
yum -y update | |
yum -y install scons gcc-c++ glibc-devel | |
# Get the source |
This file contains hidden or 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
5 tests complete | |
Test duration: 27 ms | |
Assertions count: 9 (verbosity: 1.80) | |
No global variable leaks detected | |
Coverage: 100.00% | |
Linting results: No issues |
This file contains hidden or 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
it('should validate data against schema async', function (done) { | |
var plus = new Plus({ | |
directory: [Path.resolve(__dirname, './schemata')] | |
}); | |
var data = new Plus({ | |
directory: [Path.resolve(__dirname, './fixtures/lookup')] | |
}); |
This file contains hidden or 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
keys: Joi.alternatives().when('type', { | |
is: ['collection', 'record'], | |
then: Joi.array().items(Joi.object({ | |
name: Joi.string(), | |
flds: Joi.object(), | |
options: Joi.object() | |
})) | |
}) |
This file contains hidden or 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
#!/bin/sh | |
wget https://webshare.uchicago.edu/orgs/ITServices/itsec/Downloads/GHOST.c | |
gcc GHOST.c -o GHOST | |
./GHOST |