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
//#!/usr/bin/env node | |
const mdns = require('mdns'); | |
function getServiceWithBrowser(browser, timeout) { | |
if (!timeout) timeout = 500; | |
return new Promise(function (resolve, reject) { | |
const ret = []; | |
browser.on('serviceUp', function(service) { |
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
diff --git a/deps/mruby-require/mrblib/require.rb b/deps/mruby-require/mrblib/require.rb | |
index 2a8160b..a0e0291 100644 | |
--- a/deps/mruby-require/mrblib/require.rb | |
+++ b/deps/mruby-require/mrblib/require.rb | |
@@ -4,11 +4,11 @@ module Kernel | |
begin | |
eval "1", nil | |
def _eval_load(*args) | |
- Kernel.eval(*args) | |
+ eval(*args) |
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
#!/usr/bin/env ruby | |
require 'serialport' | |
class MH_Z19 | |
STARTING_BYTE = 0xff | |
CMD_GAS_CONCENTRATION = 0x86 | |
CMD_CALIBRATE_ZERO_POINT = 0x87 | |
CMD_CALIBRATE_SPAN_POINT = 0x88 |
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
/** | |
* Modifled by cho45 for tolerance support | |
* | |
* | |
Original Copyright: | |
Copyright (C) 2012-2015 by Autodesk, Inc. | |
All rights reserved. | |
LinuxCNC (EMC2) post processor configuration. |
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
document.body.textContent = new Date().getTime(); |
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
// empty |
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 string = ""; | |
for (var i = 0; i < 1000; i++) { | |
string += Math.random().toString(32); | |
} |
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
document.body.getElementsByTagName("*")[0] |
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
<script> | |
var array = []; | |
for (var i = 0; i < 1000; i++) { | |
array[i] = i; | |
} | |
</script> |
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 text = document.body.textContent; |