What do you want to save?
Add Code snippet
New code examples
-
C# 2021-09-16 09:26:02
how to make a webrequest in c#
Uri ourUri = new Uri(url); // Create a 'WebRequest' object with the specified url. WebRequest myWebRequest = WebRequest.Create(url); // Send the 'WebRequest' and wait for response. WebResponse myWebResponse = myWebRequest.GetResponse(); ... Add solution -
Javascript 2021-09-15 13:46:02
add new element to existing json object
// base code ---------------------------------------------------------- object["property"] = value; // or object.property = value; // exampel : ---------------------------------------------------------- var myJson = { name: "mamad"... Add solution -
Other 2021-09-15 05:27:02
modsecurity reverse dns whitelist googlebot
vi /etc/apache2/conf.d/modsec/modsec2.user.conf #At the end add HostnameLookups On SecRule REMOTE_HOST "@endsWith .googlebot.com" "allow,log,id:5000001,msg:'googlebot'" SecRule REMOTE_HOST "@endsWith .google.com" "allow,... Add solution -
C 2021-09-15 00:13:02
total of two times
#include <stdio.h> int main(void) { int s1,s2,s3,m1,m2,m3,h1,h2,h3,d1,d2,d3; printf("hello user ,welcome to the system :\n"); printf("data time 1 :\n"); printf("hours :"); scanf("%d",&h1); printf("... Add solution -
Javascript 2021-09-14 00:54:04
canvas cut path to image
// canvas related variables var canvas=document.getElementById("canvas"); var ctx=canvas.getContext("2d"); var cw,ch; var $canvas=$("#canvas"); var canvasOffset=$canvas.offset(); var offsetX=canvasOffset.left; var offsetY=can... Add solution -
C 2021-09-13 08:38:04
c program for prims algorithm
#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
Best helpers
Ranking is empty