What do you want to save?
Add Code snippet
New code examples
-
C# 2021-08-31 07:31:01
capitalize c#
string text = "john smith"; // "John smith" string firstLetterOfString = text.Substring(0, 1).ToUpper() + text.Substring(1); // "John Smith" // Requires Linq! using System.Linq; string firstLetterOfEachWord = string.Join(... Add solution -
Java 2021-08-30 17:32:01
java convert hex to binary method
/** * Method receives String hexadecimal value (of any range) and returns a String of a binary representation * hexadecimal string format (ex.:"2FFA") * Use of if-than-else statement inside for loop * Use the Integer.toBinaryString(int i) me... Add solution -
Shell/Bash 2021-08-30 11:10:01
bash make directories using specific text from filenames
# Basic syntax: for file in /input/directory/search_pattern; do substring=${file:start#:length} mkdir "/output/directory/prepended_text_${substring}_appended_text" done # Where: # - The search_pattern should return the set of files you want t... Add solution -
Javascript 2021-08-30 10:22:01
window.location.search get parameters react
import { useLocation } from 'react-router'; import queryString from 'query-string'; const Dashboard: React.FC = React.memo((props) => { const location = useLocation(); console.log(queryString.parse(location.search)); // {__firebase_reque... Add solution -
Python 2021-08-29 23:36:01
firestore search query flutter
import 'package:flutter/material.dart'; import 'package:firebase_database/firebase_database.dart'; import 'package:firebase_database/ui/firebase_animated_list.dart'; class Db extends StatefulWidget { @override HomeState createState() => HomeState(... Add solution -
C++ 2021-08-29 20:21:02
Register code c++
#include <iostream> #include <string> #include <stdlib.h> #include <fstream> using namespace std; void mainmenu(); int choice; bool cinfail; int confirmation; string username, password, password2; void writetofile(string u... Add solution