What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-11 03:00:52
jquery time counter
<!-- Display the countdown timer in an element --> <p id="demo"></p> <script> // Set the date we're counting down to var countDownDate = new Date("Jan 5, 2022 15:37:25").getTime(); // Update the count down eve... Add solution -
C++ 2022-02-02 22:01:36
distinct char string c++
#include<stdio.h> #include<string.h> // function to return the number of unique // characters in str[] int count_unique_char(char* str) { int hash[128] = { 0 }; int i, c = 0; // reading each character of str[] for (i = 0; i < strlen(... Add solution -
Python 2022-01-31 05:15:37
python wikipedia
import wikipediaapi wiki = wikipediaapi.Wikipedia("en") page = wiki.page("Python (programming language)") print(page.summary) # Python is an interpreted, high-level and general-purpose programming language. Python's design philosophy... Add solution -
Python 2022-01-30 17:46:14
'numpy.ndarray' object has no attribute 'count'
# Counting values from a numpy array import numpy as np a = np.array([0, 3, 0, 1, 0, 1, 2, 1, 0, 0, 0, 0, 1, 3, 4]) unique, counts = np.unique(a, return_counts=True) dict(zip(unique, counts)) output: {0: 7, 1: 4, 2: 1, 3: 2, 4: 1} # Counting values f... Add solution -
Shell/Bash 2022-01-24 17:00:24
how to copy data from github server to another server
$ git clone --mirror ssh://[email protected]/git/myorg/myrepo.git Cloning into bare repository 'myrepo.git'... remote: Counting objects: 109, done remote: Finding sources: 100% (109/109) remote: Total 109 (delta 19), reused 83 (delta 19) Receiving obj... Add solution -
Javascript 2022-01-23 06:20:56
javascript counting sort
const countingSort = arr => { const min = arr.reduce((acc, v) => (acc < v ? acc : v)) const max = arr.reduce((acc, v) => (acc > v ? acc : v)) const count = new Map() for (let i = min; i <= max; i++) { count[i] = 0 } for ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5