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
| def merge_dicts(x, y): | |
| z = x.copy() | |
| z.update(y) | |
| return z | |
| cxx_library( | |
| name = "apps", | |
| header_namespace= '', | |
| compiler_flags = ["-fPIC","-m64"], |
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_defs('//BUCKAROO_DEPS') | |
| def test_tree(name, path): | |
| genrule( | |
| name = name, | |
| out = ".", | |
| srcs = [path], | |
| cmd = "cp -r $SRCS/* $OUT" | |
| ) | |
| return ":"+name |
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
| load('//:BUCKAROO_DEPS', 'deps') | |
| load('@boost.helpers//:DEFS', 'test_tree', 'sh_cxx_test') | |
| cxx_library( | |
| name = "test", | |
| exported_headers = subdir_glob([ | |
| ("include", "**/*.hpp"), | |
| ("include", "**/*.ipp"), | |
| ]), | |
| exported_linker_flags=['-lpthread'], |
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
| def test_tree(name, path): | |
| genrule( | |
| name = name, | |
| out = ".", | |
| srcs = [path], | |
| cmd = "cp -r $SRCS/* $OUT" | |
| ) | |
| return ":"+name | |
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
| prebuilt_cxx_library( | |
| name = 'json', | |
| header_namespace = 'nlohmann', | |
| header_only = True, | |
| exported_headers = subdir_glob([ | |
| ('src', '*.hpp') | |
| ]), | |
| visibility = [ | |
| 'PUBLIC', | |
| ] |
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 Https = require('socks5-https-client/lib/Agent'); | |
| var Http = require('socks5-http-client/lib/Agent'); | |
| var openports = require('openports'); | |
| var net = require('net'); | |
| var tmp = require('tmp'); | |
| var request = require('request'); | |
| const { spawn } = require('child_process'); | |
| function spawnTor(port, port2) { | |
| const tmpobj = tmp.dirSync(); |
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
| <!doctype html> | |
| <html lang="en-us"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>Emscripten-Generated Code</title> | |
| <style> | |
| body { | |
| font-family: arial; | |
| margin: 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
| #define CREATE_VECTOR(D) \ | |
| struct Vector_##D {\ | |
| static constexpr int N = D;\ | |
| int data[N];\ | |
| \ | |
| Vector_##D (Vector_##D const& v) {\ | |
| for(int i=0; i<N ; ++i) {\ | |
| data[i] = v[i];\ | |
| }\ |
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
| template<int D> | |
| struct Vector { | |
| static constexpr unsigned N = D; | |
| int data[N]; | |
| Vector (Vector<D> const& v) { | |
| for(int i=0; i<N ; ++i) { | |
| data[i] = v[i]; | |
| } | |
| } |