What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-09-21 06:38:03
git clone specific commit
# make a new blank repository in the current directory git init # add a remote git remote add origin url://to/source/repository # fetch a commit (or branch or tag) of interest # Note: the full history up to this commit will be retrieved unless # ... Add solution -
Other 2021-09-16 22:34:01
how to make wordpress plugin step by step
<?php /* Plugin Name: My Plugin Plugin URI: plugin url Description: Basic WordPress Plugin Custom Post Type Version: 1.0 Author: Author name Author URI: Author URL License: GPL2 License URI: Licence URL */ function custom_setup_post_type() { $args... Add solution -
Other 2021-09-16 10:33:03
django viewset add urls
from django.urls import include, path from rest_framework import routers from tutorial.quickstart import views router = routers.DefaultRouter() router.register(r'users', views.UserViewSet) router.register(r'groups', views.GroupViewSet) # Wire up our API... Add solution -
PHP 2021-09-16 10:07:01
how to pass value from one php page to another using session
//There are three method to pass value in php. //By post //By get //By making session variable //These three method are used for different purpose.For example if we want to receive our value on next page then we can use 'post' ($_POST) method as:- $a=$_... Add solution -
Javascript 2021-09-10 20:43:02
javascript add update query parameter to url
function update_query_parameters(key, val) { uri = window.location.href .replace(RegExp("([?&]"+key+"(?=[=&#]|$)[^#&]*|(?=#|$))"), "&"+key+"="+encodeURIComponent(val)) .replace(/^([^?&... Add solution -
Python 2021-09-09 16:03:01
Following Links in Python
import urllib from BeautifulSoup import * URL = raw_input("Enter the URL:") #Enter main URL link_line = int(raw_input("Enter position:")) - 1 #The position of link relative to first link count = int(raw_input("Enter count:")... Add solution -
Python 2021-09-07 14:32:03
kiteconnect python api
import logging from kiteconnect import KiteConnect logging.basicConfig(level=logging.DEBUG) kite = KiteConnect(api_key="your_api_key") # Redirect the user to the login url obtained # from kite.login_url(), and receive the request_token # from... Add solution
Best helpers
Ranking is empty