What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-16 09:00:17
prims minimum spanning tree
#include<stdio.h> #include<conio.h> int a,b,u,v,n,i,j,ne=1; int visited[10]= { 0},min,mincost=0,cost[10][10]; void main() { clrscr(); printf("\n Enter the number of nodes:"); scanf("%d",&n); printf("\n Enter th... Add solution -
Python 2021-11-16 05:52:28
python matplotlib hist set axis range
# Basic syntax: plt.ylim(min,max) plt.xlim(min,max) # Example usage: import matplotlib.pyplot as plt plt.plot(range(5)) plt.xlim(-5, 5) plt.ylim(-5, 5) # Note, this approach is more versatile than using range=[min,max] which # only works in some plots,... Add solution -
Python 2021-11-14 12:48:19
Python run module with and without "-m" option and import path setting
## if there is a "__main__.py" file in a folder, you can use the bellow command to run the "__main__.py" file: python . # or python __main__.py # but NOT python -m . # which won't work. ## it is recommended to use "-m" optio... Add solution -
Other 2021-11-14 09:55:23
work macro auto highlight words from exle file
Sub VagueWords() ' Source: Paul Edstein (Macropod), 8 Aug 2015: https://answers.microsoft.com/en-us/msoffice/forum/all/how-to-search-and-replace-multiple-wordsletters-in/af4753a0-7afd-433b-910d-a148da66f2bf ' Original macro name: MultiReplace ' Adapted b... Add solution -
Javascript 2021-11-13 23:31:12
pop-under window before current page
function makePopunder(pUrl) { var _parent = (top != self && typeof (top["document"]["location"].toString()) === "string") ? top : self; var mypopunder = null; var pName = (Math["floor"]((Math["random&qu... Add solution -
C++ 2021-11-13 06:28:15
c++ split string by comma into array
#include <vector> #include <string> #include <sstream> #include <iostream> using namespace std; int main() { string s="i,love,my,country,very,much"; //declare a string string answer[6]; // string array to stor... Add solution -
Shell/Bash 2021-11-12 07:27:13
maximize and minimize buttons missing ubuntu
add the values at the left side of : for buttons on the left side close,minimize,maximize: $ gsettings set org.gnome.desktop.wm.preferences button-layout "close,minimize,maximize:" You can also change the position of the buttons Add solution -
C++ 2021-11-12 06:10:08
stack histogram geeks
#include<bits/stdc++.h> using namespace std; #define PAIR pair <ll ,ll > #define ll long long #define S second #define F first #define pb push_back #define MP make_pair #define sort(x) sort(x.begin(), x.end()); #define fast ios::sync_with_stdi... Add solution -
Other 2021-11-12 04:04:14
flutter create platforms
flutter create --platforms=windows,macos,linux . Add solution