What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-24 15:40:03
php function to convert string to camelcase
public static function camelCase($str, array $noStrip = []) { // non-alpha and non-numeric characters become spaces $str = preg_replace('/[^a-z0-9' . implode("", $noStrip) . ']+/i', ' ', $str); $str = trim($str); ... Add solution -
CSS 2022-02-11 15:45:10
css capitalize first letter
.uppercase { text-transform: uppercase; } #example { text-transform: none; /* No capitalization, the text renders as it is (default) */ text-transform: capitalize; /* Transforms the first character of each word to uppercase */ text-transform: upp... Add solution -
VBA 2022-01-28 13:32:12
excel formula hyperlink to run a macro
'Execute VBA code from hyperlink on a worksheet that is the result 'of the HYPERLINK() worksheet function. 'Insert the following function in a standard code module: Function HyperlinkClick() Set HyperlinkClick = Selection 'Do whatever yo... Add solution -
Javascript 2022-01-28 01:06:48
convert string to float javascript
// parseFloat takes in a string value and converts it to a float // The parseFloat function will look at the first character of // the string and decided whether that character is a number or not // If not the parseFloat function will return Nan let str... 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 -
Javascript 2021-11-20 14:40:22
js parse decimal
// parseFloat takes in a string value and converts it to a float // The parseFloat function will look at the first character of // the string and decided whether that character is a number or not // If not the parseFloat function will return Nan let str... Add solution -
Rust 2021-11-13 02:56:14
regex to find and replace values
str = str.replace(/[^a-z0-9-]/g, ''); /* Everything between the indicates what your are looking for / is here to delimit your pattern so you have one to start and one to end [] indicates the pattern your are looking for on one specific character... Add solution -
Java 2021-11-03 22:59:07
java remove first character
String string = "Hello World"; //Remove first character string.substring(1); //ello World //Remove last character string.substring(0, string.length()-1); //Hello Worl //Remove first and last character string.substring(1, string.length()-1); /... Add solution -
C 2021-10-28 00:02:06
how to go to top of file in vim
Type "gg" in command mode. This brings the cursor to the first line NOTE: in linux terminal, open a file with vim like below. vim file.c In command mode (press Esc if you are not sure) you can use. type "gg", then cursor will point to... Add solution