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
| // Compile with: | |
| // g++ -std=c++11 -O3 -mavx 1.cc && ./a.out | |
| #include <vector> | |
| #include <memory> | |
| #include <cstdint> | |
| using namespace std; | |
| __attribute__ ((noinline)) | |
| void SerializeTo(const vector<uint64_t>& v, uint8_t* dest) { |
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
| #!/usr/bin/env python | |
| import boto | |
| import moto, sys | |
| from moto import mock_s3 | |
| def my_prod_code(bucket): | |
| for k in bucket.list(prefix='foo'): | |
| print k.name, k.get_contents_as_string() |
NewerOlder