What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-10-17 18:04:06
console colors in C++
//This is a header file taken from cplusplus.com //http://www.cplusplus.com/articles/Eyhv0pDG/ //concol.h #ifndef _INC_EKU_IO_CONCOL #define _INC_EKU_IO_CONCOL /*Header file to color text and background in windows console applications Global variables - ... Add solution -
Javascript 2021-10-14 11:44:08
change a variable outside a function js
var global = "Global Variable"; //Define global variable outside of function function setGlobal(){ global = "Hello World!"; }; setGlobal(); console.log(global); //This will print out "Hello World" Add solution -
Javascript 2021-10-13 13:15:07
bind in javascript
"Variables has local and global scopes. Let's suppose that we have two variables with the same name. One is globally defined and the other is defined inside a function closure and we want to get the variable value which is inside the function closure... Add solution -
Javascript 2021-10-11 08:05:19
Authentication handling in javascript
var token_ // variable will store the token var userName = "clientID"; // app clientID var passWord = "secretKey"; // app clientSecret var caspioTokenUrl = "https://xxx123.caspio.com/oauth/token"; // Your application token en... Add solution -
TypeScript 2021-10-09 08:27:09
Using mod_rewrite Configuration to Change Requests from NON-SSL to SSL
Using mod_rewrite Configuration to Change Requests from NON-SSL to SSL Oracle HTTP Server - Version 12.2.1.4.0 and later Information in this document applies to any platform. SYMPTOMS Using mod_rewrite configuration to change requests from non-ssl to ssl... Add solution -
Python 2021-10-05 00:43:04
python global variables
trying to assign a global variable in a function will result in the function creating a new variable with that name even if theres a global one. ensure to declare a as global in the function before any assignment. a = 7 def setA(value): global a # ... Add solution -
Other 2021-10-04 18:10:04
gotoxy function in c in code blocks
#include <windows.h> // header file for gotoxy // Gotoxy function COORD coord= {0,0}; // this is global variable void gotoxy(int x,int y) { coord.X=x; coord.Y=y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),coord); } Add solution -
Other 2021-09-29 09:21:02
how to use threads to add items to a list- RC
#include <iostream> #include <thread> #include <list> #include <algorithm> #include <mutex> using namespace std; // a global variable std::list<int>myList; // a global instance of std::mutex to protect global variabl... Add solution