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
| use std::collections::HashMap; | |
| use std::sync::mpsc; | |
| use std::thread; | |
| // running 6 tests | |
| // test bench_large_parallel ... bench: 3,278,357 ns/iter (+/- 296,577) | |
| // test bench_large_sequential ... bench: 1,013,777 ns/iter (+/- 137,290) | |
| // test bench_small_parallel ... bench: 129,665 ns/iter (+/- 5,313) | |
| // test bench_small_sequential ... bench: 34,755 ns/iter (+/- 6,094) | |
| // test bench_tiny_parallel ... bench: 39,002 ns/iter (+/- 1,230) |
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
| use futures::future::join_all; | |
| use std::env; | |
| use std::fs::File; | |
| use std::io::{BufRead, BufReader}; | |
| use trust_dns_client::client::{Client, SyncClient}; | |
| use trust_dns_client::op::DnsResponse; | |
| use trust_dns_client::rr::{DNSClass, Name, RData, Record, RecordType}; | |
| use trust_dns_client::udp::UdpClientConnection; | |
| async fn lookup(cfqdn: String, fqdn: String) -> Result<(String, Vec<String>), failure::Error> { |
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
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "strconv" | |
| "sync" | |
| // external libraries last | |
| "github.com/gorilla/mux" |
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
| from celery import chain | |
| from django.core.management.base import BaseCommand | |
| from . import tasks | |
| class Command(BaseCommand): | |
| def handle(self, *args, **kwargs): |
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
| sudo apt-get install texlive-base texlive-fonts-extra texlive-latex-base texlive-fonts-recommended |