Skip to content

Instantly share code, notes, and snippets.

View rajeevs1992's full-sized avatar

Rajeev Sreedharan rajeevs1992

View GitHub Profile
@rajeevs1992
rajeevs1992 / JsonExtensions.cs
Created November 9, 2020 09:59
Case insensitive JSON reading in C#
public static class JsonExtensions
{
public static JToken GetPropertyFromPath(this JToken token, string path)
{
if (token == null)
{
return null;
}
string[] pathParts = path.Split(".");
JToken current = token;
List ID list1.domain.org
List name list1
Mail host domain.org
List Settings:
=============
owner_address list1-owner@domain.org
default_nonmember_action hold
default_member_action defer
posting_address list1@domain.org
@rajeevs1992
rajeevs1992 / domain
Created June 16, 2014 17:51
Output Domains
Base URL http://domain.org
Contact Address postmaster@domain.org
Mail Host domain.org
URL Host domain.org
Description
=============
Lists
@rajeevs1992
rajeevs1992 / user
Last active August 29, 2015 14:02
Describe instance output
User ID 2102996190881791497766726106225541397
Display Name None
Created on 2014-06-12T02:54:34.246797
Self Link http://localhost:8001/3.0/users/2102996190881791497766726106225541397
User Preferences
================
receive_list_copy None
hide_address None
preferred_language en
#include<fstream.h>
#include<stdlib.h>
int main()
{
cout<<"\nPassword generator ";
void password()
{
ifstream i;
float pd;
i.open("K:\\pd"); //my pendrive
i.read((char*)&pd,sizeof pd);
i.close();
int flag;
flag=pd/66; //the decryption of password
flag=flag+523;
#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
float res,x=19;
res=(x*x)+(18*x)+93;
cout<<res<<endl;
}
clear
g++ function.cpp
clear
./a.out
g++ temp.cpp
clear
./a.out
#include<iostream>
#include<fstream>
#include<stdio.h>
using namespace std;
int main()
{
char exp[50],x[10];
cout<<"\nEnter the function ";
gets(exp);
cout<<"\nEnter the value of x ";
#include<stdio.h>
#include<string.h>
#include<iostream.h>
#include<process.h>
#include<conio.h>
void search(int n);
void print(char temp[50],int i,int n);
char str[50][50];
int main()
{