What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-16 19:55:22
set count down CLI php
<?php echo "Continue? (Y/N) - "; $stdin = fopen('php://stdin', 'r'); $response = fgetc($stdin); if ($response != 'Y') { echo "Aborted.\n"; exit; } $seconds = 5; for ($i = $seconds; $i > 0; --$i) { echo $i; usleep(... Add solution -
Python 2022-03-13 01:25:01
dlib.correlation_tracker()
#!/usr/bin/python # The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt # # This example shows how to use the correlation_tracker from the dlib Python # library. This object lets you track the position of an object as... Add solution -
C++ 2022-03-12 02:30:03
prims c++
#include <iostream> #include <vector> #include <queue> #include <functional> #include <utility> using namespace std; const int MAX = 1e4 + 5; typedef pair<long long, int> PII; bool marked[MAX]; vector <PII> adj[M... Add solution