SELECT
file.project,
COUNT(*) as total_downloads,
FROM
TABLE_DATE_RANGE(
[the-psf:pypi.downloads],
TIMESTAMP("20160114"),
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
.text | |
.file "t.3a1fbbbh-cgu.0" | |
.section .text.repeat_take_collect,"ax",@progbits | |
.globl repeat_take_collect | |
.p2align 4, 0x90 | |
.type repeat_take_collect,@function | |
repeat_take_collect: | |
.cfi_startproc | |
pushq %r14 | |
.cfi_def_cfa_offset 16 |
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
// ... | |
serve_https(addr.parse().unwrap(), tls_config, 16, move |handle, | |
tls_session| { | |
let http_client = new_http_client(handle); | |
HttpHandler { | |
templates: Arc::clone(&templates), | |
http_client: Arc::new(http_client), | |
logs: Arc::clone(&logs), | |
handle: handle.clone(), |
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
- question: What is the pleading standard for civil claims in federal court, and what is the correct citation for it? | |
criteria: Answer should mention Iqbal/Twombley. If it only mentions FRCP, that's wrong. | |
- question: What religion will the first Jewish President be? | |
criteria: Just say they'll be Jewish. If it's 9 paragraphs of hedging, that's stupid. | |
- question: In Dota2, if an Ogre Magi uses a windwaker on an ally, can it multicast, and if so what happens? | |
criteria: Is the answer remotely coherent, and does it accurately describe known game mechanics. (I do not know what the actual behavior in game is.) | |
- question: Write a python function that takes a key and data and symmetrically encrypts the data under that key | |
criteria: It should implement authenticated encryption and generally follow best practices | |
- question: What recent FTC cases have orders with provisions involving MFA, and what do those provisions require? | |
criteria: Are the cases real? Do their orders actually involve MFA? |
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 EC_PUBLIC_KEY_OID: asn1::ObjectIdentifier = asn1::oid!(1, 2, 840, 10045, 2, 1); | |
const P256_OID: asn1::ObjectIdentifier = asn1::oid!(1, 2, 840, 10045, 3, 1, 7); | |
#[derive(asn1::Asn1Read)] | |
struct SubjectPublicKeyInfo<'a> { | |
algorithm: AlgorithmIdentifier<'a>, | |
subject_public_key: asn1::BitString<'a>, | |
} |
Thanks to Jacob Kaplan-Moss, Donald Stufft, David Reid, Allen Short, Zain Memon, and Chris Armstrong for review.
This is a guide for technical individuals to understand in what circumstances SSL communications are secure against an observer-in-the-middle (for all intents and purposes: the NSA).
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
package validate | |
import ( | |
"fmt" | |
"io" | |
"unicode/utf8" | |
) | |
type validatingWriter struct { | |
w io.Writer |
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
[package] | |
name = "f" | |
version = "0.1.0" | |
authors = ["Alex Gaynor <alex.gaynor@gmail.com>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
packed_simd = "0.3" |
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
diff -r 45d2f234c8a1 fuzzing/oss-fuzz-build.sh | |
--- a/fuzzing/oss-fuzz-build.sh Wed Sep 18 08:37:23 2019 -0500 | |
+++ b/fuzzing/oss-fuzz-build.sh Thu Sep 19 19:40:40 2019 -0400 | |
@@ -100,7 +100,7 @@ | |
$CXX $CXXFLAGS -std=c++11 -I "$WORK/include/GraphicsMagick" \ | |
"$f" -o "$OUT/${fuzzer}_fuzzer" \ | |
- -lFuzzingEngine "$WORK/lib/libGraphicsMagick++.a" \ | |
+ $LIB_FUZZING_ENGINE "$WORK/lib/libGraphicsMagick++.a" \ | |
"$WORK/lib/libGraphicsMagick.a" $MAGICK_LIBS |
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
package foo | |
import ( | |
"bytes" | |
"testing" | |
) | |
var Data1 = bytes.Repeat([]byte("a"), 1) | |
var Data10 = bytes.Repeat([]byte("a"), 10) | |
var Data100 = bytes.Repeat([]byte("a"), 100) |
NewerOlder