What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-06 23:47:02
event api spigot
import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent; //example public class MyListener implements Listener { @EventHandler public void onPlayerJoin(PlayerJoinEvent event) { //... Add solution -
Python 2021-09-06 23:16:02
pygame examples
1 # Simple pygame program 2 3 # Import and initialize the pygame library 4 import pygame 5 pygame.init() 6 7 # Set up the drawing window 8 screen = pygame.display.set_mode([500, 500]) 9 10 # Run until the user asks to quit 11 running = True 12... Add solution -
Javascript 2021-09-06 23:14:02
Angular 4 execute function from another component
//Angular 4 execute function from another component didn't get time to test it but similar solution worked for me. the code created for your need. Create a service like this import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/... Add solution -
PHP 2021-09-06 21:08:02
laravel download file from storage with progress bar
<script type="text/javascript"> $(".download").click(function(){ window.location.href = 'file/30mb.pdf'; //set your file url which want to download var data = []; for (var i = 0; i < 100000; i++) { var tmp... Add solution -
Javascript 2021-09-06 19:33:01
stop propagation event
$("span").click(function(event){ event.stopPropagation(); alert("The span element was clicked."); }); $("p").click(function(event){ alert("The p element was clicked."); }); $("div").click(function(){... Add solution -
Javascript 2021-09-06 14:57:02
ajax submit form data
// jQuery ajax form submit example, runs when form is submitted $("#myFormID").submit(function(e) { e.preventDefault(); // prevent actual form submit var form = $(this); var url = form.attr('action'); //get submit url [replace ur... Add solution -
Javascript 2021-09-06 14:44:02
how to add changes every time you route navigate to page in angular
// Place import at the top import { Router,NavigationStart} from '@angular/router'; //Place the code below inside your class constructor(private router: Router){} ngOnInit(){ this.router.events.subscribe(event =>{ if (event instanceof Naviga... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5