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
/* | |
* cocos2d for iPhone: http://www.cocos2d-iphone.org | |
* | |
* Copyright (c) 2008-2010 Ricardo Quesada | |
* Copyright (c) 2011 Zynga Inc. | |
* Copyright (c) 2013-2014 Cocos2D Authors | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights |
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
if (process.argv.length < 3) { | |
console.log('Usage: node run.js PORT [ID1] [ID2]'); | |
return; | |
} | |
var device = process.argv[2]; | |
var SerialPort = require('serialport').SerialPort; | |
var bluetoothCubelet = new SerialPort(device, { baudrate: 38400 }); | |
var cubelets = require('cubelets'); |
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 assert = require('assert'); | |
var SerialPort = require('serialport').SerialPort; | |
var device = require('./config.json')['device']; | |
describe('opening and closing a serial port', function() { | |
var serialport; | |
this.timeout(10000); | |
before(function() { |
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
astyle --style=1tbs --indent=spaces=4 --indent-classes --indent-switches --break-blocks --pad-oper --pad-header --delete-empty-lines --fill-empty-lines --align-pointer=name --align-reference=name --break-closing-brackets --add-brackets --add-one-line-brackets --close-templates --convert-tabs --max-code-length=120 --break-after-logical --unpad-paren *.hpp *.cpp |
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
REM | |
REM Usage: | |
REM dns-dhcp.bat | |
REM | |
REM Description: | |
REM Configures DNS Servers with DHCP on interfaces listed below. | |
REM | |
REM To change interfaces, replace "name" with your interface names, or use "index" instead. | |
REM | |
REM To list the names and indices of your interfaces, run: |
NewerOlder