What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-26 21:15:15
send email using javascript and mailtrap
function sendEmail() { Email.send({ Host : "smtp.mailtrap.io", Username : "<Mailtrap username>", Password : "<Mailtrap password>", To : '[email protected]', From : "[email protected]&... Add solution -
PHP 2022-02-26 18:05:14
custom post type with taxonomy
//hook into the init action and call create_book_taxonomies when it fires add_action( 'init', 'create_topics_hierarchical_taxonomy', 0 ); //create a custom taxonomy name it topics for your posts function create_topics_hierarchical_taxonomy() { // Ad... Add solution -
Other 2022-02-26 16:35:18
image upload from link in ckeditor 5
Inside the config.js of ckeditor add the following code CKEDITOR.editorConfig = function( config ) { .............. .............. .............. config.filebrowserUploadMethod = 'form', config.filebrowserUploadUrl = '/api/v1/ckeditor... Add solution -
TypeScript 2022-02-24 11:35:06
ERR_TOO_MANY_REDIRECTS wordpress
# update wp-config file define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com'); #also add define('FORCE_SSL_ADMIN', true); if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) $_SERVER['HTTPS']='on'; Add solution -
Python 2022-02-22 00:10:09
pyinstaller for spacy code
# HOOK FILE FOR SPACY from PyInstaller.utils.hooks import collect_all # ----------------------------- SPACY ----------------------------- data = collect_all('spacy') datas = data[0] binaries = data[1] hiddenimports = data[2] # -------------------------... Add solution -
Javascript 2022-02-20 06:25:16
javascript window.onpopstate example
window.onpopstate = function(event) { alert("location: " + document.location + ", state: " + JSON.stringify(event.state)); const urlParams = new URLSearchParams(window.location.search); const myParam = urlParams.get('myParam'); ... Add solution -
Javascript 2022-02-19 10:35:24
array map
const myArray = ['Sam', 'Alice', 'Nick', 'Matt']; // Appends text to each element of the array const newArray = myArray.map(name => { return 'My name is ' + name; }); console.log(newArray); // ['My name is Sam', 'My Name is Alice', ...] // Appends ... Add solution
Best helpers
Ranking is empty