Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for onresize (0.2 sec)

  1. src/main/webapp/js/suggestor.js

                  }
                );
    
                this.resize();
                suggestor = this;
                $(window).resize(function() {
                  suggestor.resize();
                });
    
                $("body").append($boxElement);
              },
    
              suggest: function() {
                suggestingSts = true;
    
                this.resize();
    
                var suggestor = this;
    JavaScript
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Mar 30 05:45:24 GMT 2023
    - 13.3K bytes
    - Viewed (2)
  2. docs/debugging/inspect/decrypt-v1.go

    	}
    
    	stream, err := sio.AES_256_GCM.Stream(key)
    	if err != nil {
    		return err
    	}
    	// Zero nonce, we only use each key once, and 32 bytes is plenty.
    	nonce := make([]byte, stream.NonceSize())
    	encr := stream.DecryptReader(r, nonce, nil)
    	_, err = io.Copy(w, encr)
    	if err == nil {
    		fmt.Println(okMsg)
    	}
    	return err
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  3. internal/config/crypto.go

    	key, err := k.GenerateKey(context.Background(), "", ctx)
    	if err != nil {
    		return nil, err
    	}
    	stream, err := algorithm.Stream(key.Plaintext)
    	if err != nil {
    		return nil, err
    	}
    	nonce := make([]byte, stream.NonceSize())
    	if _, err := rand.Read(nonce); err != nil {
    		return nil, err
    	}
    
    	const (
    		MaxMetadataSize = 1 << 20 // max. size of the metadata
    		Version         = 1
    	)
    	var (
    		header [5]byte
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  4. internal/kms/single-key.go

    			HTTPStatusCode: http.StatusBadRequest,
    			APICode:        "KMS.InternalException",
    			Err:            errors.New("invalid algorithm: " + algorithm),
    		}
    	}
    
    	nonce, err := sioutil.Random(aead.NonceSize())
    	if err != nil {
    		return DEK{}, err
    	}
    
    	plaintext, err := sioutil.Random(32)
    	if err != nil {
    		return DEK{}, err
    	}
    	associatedData, _ := context.MarshalText()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  5. tensorflow/c/eager/dlpack.cc

      dlm_tensor->dl_tensor.dtype = tf_dlm_type;
    
      std::vector<int64_t>* shape_arr = &tf_dlm_tensor_ctx->shape;
      std::vector<int64_t>* stride_arr = &tf_dlm_tensor_ctx->strides;
      shape_arr->resize(ndim);
      stride_arr->resize(ndim, 1);
      for (int i = 0; i < ndim; i++) {
        (*shape_arr)[i] = tensor->dim_size(i);
      }
      for (int i = ndim - 2; i >= 0; --i) {
        (*stride_arr)[i] = (*shape_arr)[i + 1] * (*stride_arr)[i + 1];
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

            Optional<Long> size = byteSource.sizeIfKnown();
            // if we know the size and it fits in an int
            if (size.isPresent() && size.get().longValue() == size.get().intValue()) {
              // otherwise try to presize a StringBuilder
              // it is kind of lame that we need to construct a decoder to access this value.
              // if this is a concern we could add special cases for some known charsets (like utf8)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

            Optional<Long> size = byteSource.sizeIfKnown();
            // if we know the size and it fits in an int
            if (size.isPresent() && size.get().longValue() == size.get().intValue()) {
              // otherwise try to presize a StringBuilder
              // it is kind of lame that we need to construct a decoder to access this value.
              // if this is a concern we could add special cases for some known charsets (like utf8)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  8. tensorflow/c/c_test_util.cc

      outputs_.clear();
      for (TF_Operation* o : outputs) {
        outputs_.emplace_back(TF_Output{o, 0});
      }
      output_values_.resize(outputs_.size());
    }
    
    void CSession::SetOutputs(const std::vector<TF_Output>& outputs) {
      ResetOutputValues();
      outputs_ = outputs;
      output_values_.resize(outputs_.size());
    }
    
    void CSession::SetTargets(std::initializer_list<TF_Operation*> targets) {
      targets_.clear();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  9. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

      }
    
      public void testBuilder_presize_zero() {
        ImmutableDoubleArray.Builder builder = ImmutableDoubleArray.builder(0);
        builder.add(5.0);
        ImmutableDoubleArray array = builder.build();
        assertThat(array.asList()).containsExactly(5.0);
      }
    
      public void testBuilder_presize_negative() {
        try {
          ImmutableDoubleArray.builder(-1);
          fail();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 15:23:21 GMT 2023
    - 20K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

        assertThat(iia.asList()).containsExactly(0, 1, 3).inOrder();
      }
    
      public void testBuilder_presize_zero() {
        ImmutableIntArray.Builder builder = ImmutableIntArray.builder(0);
        builder.add(5);
        ImmutableIntArray array = builder.build();
        assertThat(array.asList()).containsExactly(5);
      }
    
      public void testBuilder_presize_negative() {
        try {
          ImmutableIntArray.builder(-1);
          fail();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 18.9K bytes
    - Viewed (0)
Back to top