What do you want to save?
Add Code snippet
New code examples
-
Other 2021-08-31 20:05:01
constant acceleration formulas
(1) v = v0 + at (2) Δs = (1/2)(v+v0)t (3) Δs = s0 + v0t + (1/2)a(t^2) (4) v^2 = (v0)^2 + 2aΔs Where... Initial velocity = v0 Final velocity = v Acceleration = a Time = t Initial position = s0 Final position = s Displacement = Δs Add solution -
Other 2021-08-31 10:26:02
star trek discovery temporada 3 capítulos
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <sched.h> #include <mman.h> #include <signal.h> #include <sys... Add solution -
C++ 2021-08-30 14:57:01
c++ find object in vector by attribute
std::vector<Type> v = ....; std::string myString = ....; auto it = find_if(v.begin(), v.end(), [&myString](const Type& obj) {return obj.getName() == myString;}) if (it != v.end()) { // found element. it is an iterator to the first matchin... Add solution -
Javascript 2021-08-30 06:56:02
combine csv files javascript
$("#download_1").click(function() { var json_pre = '[{"Id":1,"UserName":"Sam Smith"},{"Id":2,"UserName":"Fred Frankly"},{"Id":1,"UserName":"Zachary Zupers"... Add solution -
Other 2021-08-30 04:02:02
sklearn cross validation score
from sklearn.model_selection import cross_val_score scores = cross_val_score(classifier_logreg, X_train, y_train, cv = 5, scoring='accuracy') print('Cross-validation scores:{}'.format(scores)) print('Average cross-validation score: {}'.format(scores.mean())) Add solution -
PHP 2021-08-29 18:59:02
encrypt/decrypt data php
function encrypt_decrypt($string, $action = 'encrypt') { $encrypt_method = "AES-256-CBC"; $secret_key = 'AA74CDCC2BBRT935136HH7B63C27'; // user define private key $secret_iv = '5fgf5HJ5g27'; // user define secret key $key = hash(... Add solution