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
[craig@fsociety] ~ % iperf3 -c iperf.he.net | |
Connecting to host iperf.he.net, port 5201 | |
[ 6] local 2602:306:b894:1b10:11c1:e51:778:c258 port 51273 connected to 2001:470:0:238::2 port 5201 | |
[ ID] Interval Transfer Bandwidth | |
[ 6] 0.00-1.00 sec 81.7 MBytes 685 Mbits/sec | |
[ 6] 1.00-2.00 sec 96.3 MBytes 808 Mbits/sec | |
[ 6] 2.00-3.00 sec 101 MBytes 849 Mbits/sec | |
[ 6] 3.00-4.00 sec 104 MBytes 874 Mbits/sec | |
[ 6] 4.00-5.00 sec 106 MBytes 885 Mbits/sec | |
[ 6] 5.00-6.00 sec 88.5 MBytes 742 Mbits/sec |
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
// Question. Given this class, write code to return the max value on the stack | |
class Stack | |
{ | |
public: | |
void push(int a); //<-- O(1) | |
int pop(); //<-- O(1), pop can throw if stack is empty | |
int top(); //<--- O(1), throws if stack is empty | |
bool is_empty(); //<--- O(1) | |
}; |
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
int global = 0; | |
void t() | |
{ | |
for (int i = 0; i < 5; i++) | |
global++; | |
} | |
main() | |
{ | |
for (int i = 0; i < 5; 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
#include <stdio.h> | |
#include <stdlib.h> | |
int nbits(unsigned char value); | |
int testtab[] = { | |
0x53, | |
0xaa, | |
0x55, | |
0x01, |
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 <iostream> | |
using namespace std; | |
namespace { | |
bool A = false; | |
bool B = false; | |
struct C { |
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
/* Base64_EncodeLength: Returns the maximum number of bytes that 'src' | |
will be encoded to (not including any NULL-termination). Cannot fail. */ | |
int | |
Base64_EncodedLength(const uint8 *src, uint32 srclength); | |
/* Base64_Encode: Encoded 'src' into 'target'. Does not NULL-terminate. Returns | |
the size of the encoded string on success or -1 on failure. Behavior undefined | |
if 'srclength' is 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
/* | |
* int i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hell\ | |
* o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);} | |
*/ | |
int i; | |
main() | |
{ | |
for(; i["]<i;++i){--i;}"]; read('-'-'-',i+++"hello, world!\n",'/'/'/')) |
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
if [[ $OSTYPE == darwin* ]] ; then PCOLOR=yellow | |
else PCOLOR=red | |
fi | |
PROMPT="%{$fg_no_bold[green]%}%24<..<%~%{$fg_no_bold[default]%} %(2L!%#%#!%#) " |
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
/* | |
* int i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hell\ | |
* o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);} | |
*/ | |
int i; | |
main() | |
{ | |
for(; i["]<i;++i){--i;}"]; read('-'-'-',i+++"hello, world!\n",'/'/'/')) |
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
int i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hell\ | |
o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);} |
NewerOlder