Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
commit 16ab1b6b97313fcfc43110d5ba9f1fd37d5b3939 | |
Author: Brendan Ashworth <[email protected]> | |
Date: Sat Dec 4 15:46:43 2021 -0500 | |
add getsockopt for last packet size | |
diff --git a/include/linux/tcp.h b/include/linux/tcp.h | |
index 48d8a3633..1bbb1398e 100644 | |
--- a/include/linux/tcp.h | |
+++ b/include/linux/tcp.h |
This file contains 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
const Minio = require('minio') | |
var client = new Minio({ ... }) | |
// Create the stream. | |
let stream = wkhtmltopdf('http://google.com/', { pageSize: 'letter' }) | |
// Upload it into minio. | |
client.putObject('bucket', 'google-page', stream, /* size of pdf */, (err, etag) => { | |
if (err) throw err |
This file contains 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'; | |
var callarrow = () => { return 1 }; | |
var arrow = () => { | |
var j = 0; | |
for (var i = 0; i < 100; i++) { | |
j += callarrow(); | |
} |
This file contains 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
// Simple one-function benchmark for node.js | |
// originally from http://mrale.ph/blog/2011/03/30/external-arrays-and-nodejs.html | |
// Pass n = number of iterations (only affects accuracy of ns/op) | |
// Pass f = function to call | |
function benchmark(n, f) { | |
var start = process.hrtime(); | |
for (var i = 0; i < n; i++) f(); | |
var end = process.hrtime(start); | |
This file contains 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'; | |
// switch them around to see difference in results | |
//const HTTPParser = process.binding('http_parser').HTTPParser; | |
const HTTPParser = require('_http_parser'); | |
var parser = new HTTPParser(HTTPParser.RESPONSE); | |
var buf; | |
if (1) { |
This file contains 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 <node.h> | |
#include <stdio.h> | |
using namespace v8; | |
void Exit(void* arg) { | |
printf("node::AtExit called\n"); | |
} | |
void Initialize(Handle<Object> exports) { |
This file contains 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
// Licensed io.js code | |
posix.relative = function(from, to) { | |
assertPath(from); | |
assertPath(to); | |
from = posix.resolve(from).substr(1); | |
to = posix.resolve(to).substr(1); | |
function trim(arr) { | |
var start = 0; |
NewerOlder