What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-03-15 04:15:12
c++ void to avoid functions
/*The following example collects user data and formats it using seperate void statements */ #include <iostream> #include <string> #include <stdio.h> #include <stdlib.h> using namespace std; // function declarations void inputData... Add solution -
Javascript 2022-02-15 20:40:11
defer parsing of javascript avada
function defer_parsing_of_js( $url ) { if ( is_user_logged_in() ) return $url; //don't break WP Admin if ( FALSE === strpos( $url, '.js' ) ) return $url; if ( strpos( $url, 'jquery.js' ) ) return $url; return str_replace( ' src', ' defer s... Add solution -
C++ 2022-02-02 23:00:41
gcd of two numbers c++
// gcd function definition below: int gcd(int a, int b) { if (b == 0) return a; return gcd(b, a % b); } int a = 105, b = 30; cout<<"GCD of "<< a <<" and "<< b <<&quo... Add solution -
Other 2022-01-24 05:20:37
PntIDNumbers
#include <iostream> #include <fstream> #include <cstdlib> #include <string> #include <sstream> #define MAX 200 using namespace std; // Function receive address of the first element of an array // Reads file contents and store... Add solution -
TypeScript 2021-11-06 06:42:11
class-transformer default value
import { Transform, Expose } from 'class-transformer' import { cloneDeep } from 'lodash' export function Default(defaultValue: unknown): PropertyDecorator { return Transform((value: unknown) => value ?? cloneDeep(defaultValue)) } ... Add solution -
Python 2021-11-04 11:19:10
torch timeseries
# Load dependencies from sklearn.preprocessing import MinMaxScaler # Instantiate a scaler """ This has to be done outside the function definition so that we can inverse_transform the prediction set later on. """ scaler = Min... Add solution -
C++ 2021-10-27 09:34:14
how to define function prototypes in c++
/* C++ Function Prototype and C++ Function Definition */ #include<iostream.h> #include<conio.h> #include<stdlib.h> int add(int, int); // function prototype int subtract(int, int); // function prototype int multiply(int, int)... Add solution -
C++ 2021-10-25 12:09:08
c++ crash windows
#include <Windows.h> #include <ntstatus.h> #define SHUTDOWN_PRIVILEGE 19 #define OPTION_SHUTDOWN 6 // function definitions typedef NTSTATUS(NTAPI *pdef_RtlAdjustPrivilege) ( ULONG privilege, BOOLEAN enable, BOOLEAN current_thread, PBOOLE... Add solution -
Other 2021-10-23 01:39:09
field ‘’ declared as a function
struct stack { char x[LIMIT][10]; int top; void (*push)(struct stack *, char *); char *(*pop)(struct stack *self); void (*init)(struct stack *self); bool (*is_empty)(struct stack *self); }; struct stack object; object.push = push_... Add solution