What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-12 10:20:18
openlayers satellite imagery
import 'ol/ol.css'; import BingMaps from 'ol/source/BingMaps'; import Map from 'ol/Map'; import TileLayer from 'ol/layer/Tile'; import View from 'ol/View'; var styles = [ 'RoadOnDemand', 'Aerial', 'AerialWithLabelsOnDemand', 'CanvasDark', 'Ordn... Add solution -
Python 2021-10-20 10:41:08
how to get x-csrf-token in python
import sys import requests URL = 'https://portal.bitcasa.com/login' client = requests.session() # Retrieve the CSRF token first client.get(URL) # sets cookie if 'csrftoken' in client.cookies: # Django 1.6 and up csrftoken = client.cookies['csrft... Add solution -
Javascript 2021-10-14 01:07:03
angular two datepickers
<div class="item item-1" fxFlex="50%" fxFlexOrder="1"> <mat-form-field> <input matInput [matDatepicker]="picker" placeholder="{{'PORTAL.STARTDATE' | translate}}" type="... Add solution -
PHP 2021-09-27 16:36:02
drupal 9 custom blocks dependency injection
/** * @file * Contains \Drupal\mymod\Plugin\Block\MyModMyStoreProductsStatusBlock */ namespace Drupal\mymod\Plugin\Block; use Drupal\Core\Block\BlockBase; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\mymod\StoreService; use Symf... Add solution -
Other 2021-08-31 02:35:02
paygate payment gateway integration
Points for paygate payment gateway integration 1. Your PayGateID assigned by PayGate. If the ID is not provided, then it will default to the testing ID ( 10011072130 ). 2. The encryption key set in the Merchant Access Portal. If the encryption key is ... Add solution