What do you want to save?
Add Code snippet
New code examples
-
Dart 2021-09-22 14:04:06
dart char is uppercase
extension CapExtension on String { String get inCaps => '${this[0].toUpperCase()}${this.substring(1)}'; String get allInCaps => this.toUpperCase(); String get capitalizeFirstofEach => this.split(" ").map((str) => str.capitalize... Add solution -
Javascript 2021-09-22 06:51:01
Web3 Example
// Here's how we would access our contract: var abi = /* abi generated by the compiler */ var ZombieFactoryContract = web3.eth.contract(abi) var contractAddress = /* our contract address on Ethereum after deploying */ var ZombieFactory = ZombieFactoryCont... Add solution -
Java 2021-09-21 15:12:02
getting java code for hashing files
private static String getFileChecksum(MessageDigest digest, File file) throws IOException { //Get file input stream for reading the file content FileInputStream fis = new FileInputStream(file); &... Add solution -
C# 2021-09-21 10:21:04
mapping dictionary to object c#
using System.Collections.Generic; using System.Linq; using System.Reflection; namespace WebOpsApi.Shared.Helpers { public static class MappingExtension { public static T ToObject<T>(this IDictionary<string, object> source) ... Add solution -
Javascript 2021-09-21 06:33:02
javascript add to string
function addStr(str, index, stringToAdd){ return str.substring(0, index) + stringToAdd + str.substring(index, str.length); } let str = "This is a string"; let stringToAdd = "modyfied "; console.log(addStr(str, 10, stringToAdd)); /... Add solution
Best helpers
Ranking is empty