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 std::io; | |
fn main() { | |
// Iterate over the lines in io::stdin() | |
for line in io::stdin().lines() { | |
// Now print the line (line.unwrap() first) via the println!() macro | |
println!("{}", line.unwrap()); | |
} | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 <brendan.ashworth@me.com> | |
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
Podfile | |
Capfile | |
Gemfile | |
Gomfile | |
Makefile | |
Thorfile | |
Cakefile | |
Caskfile | |
Jakefile | |
Doxyfile |
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
<?php | |
$ip = "10.0.11.145"; | |
$array = explode(".", $ip); | |
$numbers = $array[0] . "." . $array[1] . "." . $array[2]; | |
$numbers .= "."; | |
for($i = 0; $i < strlen($array[3]); $i++) { |
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); | |
NewerOlder