What do you want to save?
Add Code snippet
New code examples
-
Html 2022-02-12 07:40:11
clock code html
<!DOCTYPE html> <html> <body> <canvas id="canvas" width="400" height="400" style="background-color:#333"> </canvas> <script> var canvas = document.getElementById("canvas&qu... Add solution -
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 -
Other 2022-02-09 10:00:30
long query running script
postgres=> SELECT pid, now() - pg_stat_activity.query_start AS duration, query, state FROM pg_stat_activity WHERE (now() - pg_stat_activity.query_start) > interval '5 minutes' and state = 'active' ORDER BY duration DESC NULLS LAST; pid | durat... Add solution -
Javascript 2022-02-02 21:30:19
cookie clicker hack
// change number of cookies (you can still click on things that look unselectable) Game.cookies = 100000000 // and auto clicker: function myFunction() {document.getElementById("bigCookie").click();document.getElementById("bigCookie").... Add solution -
Other 2022-02-02 21:11:25
get dates between two dates using specific interval using carbon
$period = CarbonPeriod::since('2021-06-01')->days(3)->until('2021-06-30')->toArray(); $period2 = CarbonInterval::days(3)->toPeriod('2021-06-01', '2021-06-30')->toArray(); foreach($period as $val){ echo $val; ... Add solution -
SQL 2022-02-02 18:15:30
mysql trigger to delete old data
SET GLdelimiter // create event if not exists clean_old_records on schedule every 1 week do begin delete from your_table_name where Timestamp < date_sub(curdate(),interval 1 month) ; end; // delimiter ;OBAL event_scheduler = ON; Add solution
Best helpers
Ranking is empty