- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 79 for Trick (0.15 sec)
-
src/cmd/cgo/internal/test/issue42018_windows.go
*/ import "C" import ( "testing" "unsafe" ) func test42018(t *testing.T) { // Test that Windows handles are marked go:notinheap, by growing the // stack and checking for pointer adjustments. Trick from // test/fixedbugs/issue40954.go. var i int handle := C.HANDLE(unsafe.Pointer(uintptr(unsafe.Pointer(&i)))) recurseHANDLE(100, handle, uintptr(unsafe.Pointer(&i)))
Go - Registered: Tue Jan 16 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 1.1K bytes - Viewed (0) -
docs/en/docs/advanced/dataclasses.md
!!! info Keep in mind that dataclasses can't do everything Pydantic models can do. So, you might still need to use Pydantic models. But if you have a bunch of dataclasses laying around, this is a nice trick to use them to power a web API using FastAPI. 🤓 ## Dataclasses in `response_model` You can also use `dataclasses` in the `response_model` parameter: ```Python hl_lines="1 7-13 19"
Plain Text - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 4.1K bytes - Viewed (0) -
build-logic/jvm/src/main/kotlin/gradlebuild.launchable-jar.gradle.kts
val startScripts = tasks.register<GradleStartScriptGenerator>("startScripts") { startScriptsDir = layout.buildDirectory.dir("startScripts") launcherJar.from(tasks.jar) agentJars.from(agentsClasspath) // The trick below is to use the templates from the current code instead of the wrapper. It does not cover the case where the generation logic is updated though.
Plain Text - Registered: Wed Mar 27 11:36:08 GMT 2024 - Last Modified: Wed Feb 28 23:38:57 GMT 2024 - 2.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java
result = (byte) (result ^ checksum.getValue()); } return result; } // Helpers + main private byte runHashFunction(int reps, HashFunction hashFunction) { byte result = 0x01; // Trick the JVM to prevent it from using the hash function non-polymorphically result ^= Hashing.crc32().hashInt(reps).asBytes()[0]; result ^= Hashing.adler32().hashInt(reps).asBytes()[0]; for (int i = 0; i < reps; i++) {
Java - Registered: Fri Mar 29 12:43:10 GMT 2024 - Last Modified: Tue Jun 13 16:19:15 GMT 2023 - 2.9K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java
result = (byte) (result ^ checksum.getValue()); } return result; } // Helpers + main private byte runHashFunction(int reps, HashFunction hashFunction) { byte result = 0x01; // Trick the JVM to prevent it from using the hash function non-polymorphically result ^= Hashing.crc32().hashInt(reps).asBytes()[0]; result ^= Hashing.adler32().hashInt(reps).asBytes()[0]; for (int i = 0; i < reps; i++) {
Java - Registered: Fri Mar 29 12:43:10 GMT 2024 - Last Modified: Tue Jun 13 16:19:15 GMT 2023 - 2.9K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Crc32cHashFunction.java
* by Kadatch and Jenkins, 2010. */ Crc32cHasher() { super(16); } private boolean finished = false; /* * This trick allows us to avoid having separate states for "first four ints" and "all other * four int chunks." The state we want after the first four bytes is * * crc0 = ~int0 * crc1 = int1 * crc2 = int2
Java - Registered: Fri Mar 29 12:43:10 GMT 2024 - Last Modified: Tue Apr 20 18:43:59 GMT 2021 - 21.3K bytes - Viewed (0) -
docs/en/docs/advanced/path-operation-advanced-configuration.md
Nevertheless, we can declare the expected schema for the request body. ### Custom OpenAPI content type Using this same trick, you could use a Pydantic model to define the JSON Schema that is then included in the custom OpenAPI schema section for the *path operation*. And you could do this even if the data type in the request is not JSON.
Plain Text - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Sat Jan 13 11:49:05 GMT 2024 - 7.7K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params-numeric-validations.md
``` ## Order the parameters as you need, tricks !!! tip This is probably not as important or necessary if you use `Annotated`. Here's a **small trick** that can be handy, but you won't need it often. If you want to: * declare the `q` query parameter without a `Query` nor any default value * declare the path parameter `item_id` using `Path`
Plain Text - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 9.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
// an SSL context for an attacking webserver. It includes both these rogue certificates plus the // trusted good certificate above. The attack is that by including the good certificate in the // chain, we may trick the certificate pinner into accepting the rouge certificate. val compromisedIntermediateCa = HeldCertificate.Builder() .signedBy(rootCa) .certificateAuthority(0) .serialNumber(4L)
Plain Text - Registered: Fri Mar 29 11:42:11 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 23.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java
sort( insertionOrder, new Comparator<V>() { @Override public int compare(V left, V right) { // The indexes are small enough for the subtraction trick to be safe. return indexOfEntryWithValue(left) - indexOfEntryWithValue(right); } int indexOfEntryWithValue(V value) { for (int i = 0; i < orderedEntries.size(); i++) {
Java - Registered: Fri Mar 29 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 18.2K bytes - Viewed (0)