Skip to content

Instantly share code, notes, and snippets.

View yask123's full-sized avatar
πŸ‘¨β€πŸ’»

Yask Srivastava yask123

πŸ‘¨β€πŸ’»
View GitHub Profile
# include <stdio.h>
int add(int a[][10],int b[][10],int n,int m,int r[10][10])
{
int i,j;
for(i=0;i<n;i++)
{
for(j=0;j<m;j++)
{
r[i][j]= a[i][j] + b[i][j];
# include <stdio.h>
double f(double x,double y)
{
return (x+y);
}
int main()
{
double h=0.2;
# include <stdio.h>
# include <math.h>
double f(double x)
{
return ( exp(x*x) );
}
int main()
{
double l1=0;
# include <stdio.h>
double f(double x,double y)
{
return (x+y);
}
int main()
{
double x0=0;
double y0=1;
double h=0.1;
#include <stdio.h>
double f(double x)
{
return (x*x*x - 2*x -5);
}
int main()
{
int i;
// By regula falsi
@yask123
yask123 / fstream.cpp
Last active August 29, 2015 14:22
c++ fstream and istream example
# include <iostream>
using namespace std;
class test
{
public:
static int f;
int x;
test()
{
f+=1;
{% extends theme("layout.html") %}
{% import "utils.html" as utils %}
{# map meta.action to font awesome classes #}
{% set awesome_class = {
'REVERT': 'fa fa-undo',
'SAVE': 'fa fa-save',
'RENAME': 'fa fa-pencil-square-o',
'TRASH': 'fa fa-trash-o',
} %}
{% extends theme("layout.html") %}
{% import "utils.html" as utils %}
{# map meta.action to font awesome classes #}
{% set awesome_class = {
'REVERT': 'fa fa-undo',
'SAVE': 'fa fa-save',
'RENAME': 'fa fa-pencil-square-o',
'TRASH': 'fa fa-trash-o',
} %}
a = document.getElementsByClassName('uiTextareaNoResize uiTextareaAutogrow _1rv');
for(var i = 0;i<10;i++)
{
a[0].value='Hey!';
b = document.getElementById("u_jsonp_6_6");// The id name will probably be different from you, check it out from dev-console.
b.click();
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<link rel="stylesheet" href="">
</head>
<body>
<h1>Hello</h1>