What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-08-29 16:57:02
open hashing basic operations
//open hashing , insertion,deletion,searching,displaying #include <iostream> using namespace std; #define n 5 class node { public: int data; node*next; }; node*hasharray[n]; void init() { for(int i=0;i<n;i++) { hasharray[... Add solution -
Javascript 2021-08-29 10:36:01
node wait 10 seconds
async function init() { console.log(1); await sleep(1000); console.log(2); } function sleep(ms) { return new Promise((resolve) => { setTimeout(resolve, ms); }); } // one liner let sleep = ms => new Promise(resolve => setTimeout(re... Add solution -
Python 2021-08-29 02:49:02
fractal tree python
import pygame, math pygame.init() screen = pygame.display.set_mode((750, 650)) pygame.display.set_caption("Fractal Tree") display = pygame.display.get_surface() def drawTree(a, b, pos, deepness): if deepness: c = a + int(math.cos(math.radians(... Add solution -
Shell/Bash 2021-08-27 22:59:01
curl get example
PHP cURL GET Request A GET request retrieves data from a server. This can be a website’s HTML, an API response or other resources. <?php $cURLConnection = curl_init(); curl_setopt($cURLConnection, CURLOPT_URL, 'https://hostname.tld/phone-list'... Add solution -
Other 2021-08-27 02:57:01
aos animation manual seting
CSS <link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet"> JS <script src="https://unpkg.com/[email protected]/dist/aos.js"></script> INITIALIZE AOS: <script> AOS.init(); </script> Add solution -
Javascript 2021-08-26 10:42:02
get current url angular
import { ActivatedRoute, Params } from '@angular/router'; @Component(...) export class MyComponent implements OnInit { constructor (private activatedRoute: ActivatedRoute){} ngOnInit() { this.activatedRoute.params.subscribe((params: Params)... Add solution