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
# | |
# What user gets created when `cookbook_c` is applied? | |
# | |
# cookbook_a/attributes/default.rb | |
node[cookbook_a][user] = 'a' | |
# cookbook_a/recipes/default.rb | |
user node[cookbook_a][user] |
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/bash | |
set -e | |
# Deploy built site to this branch | |
TARGET_BRANCH=master | |
# Sync the contents of this directory where the site should have been built | |
SOURCE_DIR=_site | |
if [ ! -d "$SOURCE_DIR" ]; then | |
echo "SOURCE_DIR ($SOURCE_DIR) does not exist, build the source directory before deploying" |
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
var http = require('http'); | |
var spawn = require('child_process').spawn; | |
var child = spawn( | |
'CMD', [ | |
'/S', | |
'/C', | |
'node', | |
'./child.js' | |
] | |
); |
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
var http = require('http'); | |
var PORT = 8080; | |
var server = http.createServer(function(request, response) { | |
response.end(); | |
}); | |
server.listen(PORT, function() { | |
console.log('Listening on port ' + PORT); | |
}); |
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
var http = require('http'), | |
tls = require('tls'), | |
fs = require('fs'), | |
crypto = require('crypto'); | |
var PORT = 8080, | |
SERVER_KEY = fs.readFileSync('./test/keys/server-key.pem'), | |
SERVER_CERT = fs.readFileSync('./test/keys/server-cert.pem'), | |
CLIENT_KEY = fs.readFileSync('./test/keys/client-key.pem'), | |
CLIENT_CERT = fs.readFileSync('./test/keys/client-cert.pem'); |
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
module.exports = function(grunt) { | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.initConfig({ | |
lint: { | |
files: ['grunt.js', 'src/**/*.js'] | |
}, | |
watch: { | |
scripts: { |
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
module.exports = function(grunt) { | |
// Add our custom tasks. | |
// These include: | |
// test - Run unit tests with Mocha (overrides the nodeunit test task) | |
grunt.loadTasks('grunt/tasks'); | |
// Project configuration. | |
grunt.initConfig({ | |
lint: { |
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
var mongoose = require('./testUtils/mongooseTestWrapper.js'), | |
Greetee; | |
exports.setUp = function(callback) { | |
// reset the schemas to ensure that any changes are picked up by the mongoose singleton | |
mongoose.resetSchemas(); | |
// add the schemas back again | |
Greetee = require('./greetee.js'); |
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
#include "OOOUnitTestDefines.h" | |
#include "MyClass.h" | |
OOOTest(MyClass) | |
{ | |
MyClass * pMyClass = OOOConstruct(MyClass, 5); | |
MyClass * pMyClassCopy = OOOCall(pMyClass, copy); | |
/* Check stuff here */ | |
OOOCheck(OOOCall(pMyClass, getMyField) == 5); |
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
#ifndef IMYINTERFACE_H_ | |
#define IMYINTERFACE_H_ | |
#include "OOOCode.h" | |
#define OOOInterface IMyInterface | |
OOOVirtuals | |
OOOVirtual(int, getData); | |
OOOVirtualsEnd | |
#undef OOOInterface |
NewerOlder