What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-27 20:58:02
is Cross policy an issue with puppeteer / headless chrome?
const fetch = require('node-fetch') const requestInterceptor = async (request) => { try { const url = request.url() const requestHeaders = request.headers() const acceptHeader = requestHeaders.accept || '' if (url.includes("exam... Add solution -
Shell/Bash 2021-08-27 20:17:01
ubuntu higher displayer resolution
1. Open a Terminal by CTRL+ALT+T 2. Type xrandr and ENTER 3. Note the display name usually VGA-1 or HDMI-1 or DP-1 4. Type cvt 1920 1080 (to get the --newmode args for the next step) and ENTER 5. Type sudo xrandr --newmode "1920x1080_60.00" 173... Add solution -
PHP 2021-08-27 17:48:02
display content in table in drupal 7
<?php echo show_table('blocks', 50); function show_table($table = NULL, $rows_per_page = 20) { if (!$table || !db_table_exists($table)) { drupal_set_message(t('You must supply a valid database table name.'), 'error'); drupal_access_denied(); ... Add solution -
SQL 2021-08-27 17:15:02
connect to sql server with python
import pyodbc # Some other example server values are # server = 'localhost\sqlexpress' # for a named instance # server = 'myserver,port' # to specify an alternate port server = 'tcp:myserver.database.windows.net' database = 'mydb' username = 'myusernam... Add solution -
Shell/Bash 2021-08-27 14:55:01
install spotify ubuntu
#On ubuntu can just type following command: snap install spotify #if that not works you can also try to install the debian package #you will need for this 'curl' so install that first sudo apt install curl #after installing curl or you already have instal... Add solution -
Javascript 2021-08-27 14:53:02
javascript javascript
/* JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js, Ap... Add solution -
Java 2021-08-27 13:45:01
Mergesort parallelization using Spark
import random import time from pyspark import SparkContext def execute_merge_sort(generated_list): start_time = time.time() sorted_list = merge_sort(generated_list) elapsed = time.time() - start_time print('Simple merge sort: %f sec' % el... Add solution
Best helpers
Ranking is empty