What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-25 11:25:22
timer pythongame
import pygame pygame.init() screen = pygame.display.set_mode((128, 128)) clock = pygame.time.Clock() counter, text = 10, '10'.rjust(3) pygame.time.set_timer(pygame.USEREVENT, 1000) font = pygame.font.SysFont('Consolas', 30) while True: for e in pyga... Add solution -
Other 2022-01-24 17:45:33
how to theme spacemacs
There are several steps to customising a theme in spacemacs, with some parallells to customising the standard emacs build. The GUI elements typically relevant to customizing spacemancs appearance are: 1. Colour themes 2. Fonts & Icons ... Add solution -
Python 2022-01-23 08:56:00
python measure volum from audio file
import os, sys, pygst pygst.require('0.10') import gst, gobject gobject.threads_init() def get_peaks(filename): global do_run pipeline_txt = ( 'filesrc location="%s" ! decodebin ! audioconvert ! ' 'audio/x-raw-int,chann... Add solution -
Html 2022-01-22 18:36:18
aos library
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 -
Python 2021-12-23 17:44:14
IPTC text classification example
CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(curl, CURLOPT_URL, "https://api.meaningcloud.com/class-1.1?key=<your_key>&txt=&l... Add solution -
PHP 2021-11-22 08:34:24
ddos protection by cloudflare blocks extensions in opencart admin
/* This is an opencart issue, specifically with the annoying promotional advert that pops up above the extensions when you load them up. To fix this: 1) Go to this file: admin/controller/extension/extension/promotion.php 2) add this cod... Add solution