Skip to content

Instantly share code, notes, and snippets.

View pranay414's full-sized avatar
👨‍💻
Online

Pranay Ankit pranay414

👨‍💻
Online
  • India
View GitHub Profile
@pranay414
pranay414 / string.c
Created June 26, 2019 06:24
Demo Gist
#include<stdio.h>
#include<string.h>
int main(void) {
char str[500] = "HackerRank";
char str1[500];
scanf("%[^\n]%*c", str1);
strcat(str, str1);
printf("%s", str);
return 0;
@pranay414
pranay414 / bitonic.c
Created November 15, 2018 17:55
Bitonic Sort MPI
#include <stdio.h> // Printf
#include <time.h> // Timer
#include <math.h> // Logarithm
#include <stdlib.h> // Malloc
#include "mpi.h" // MPI Library
#include "bitonic.h"
#define MASTER 0 // Who should do the final processing?
#define OUTPUT_NUM 10 // Number of elements to display in output
@pranay414
pranay414 / bitonic.h
Created November 15, 2018 17:54
Bitonic Sort MPI
void SequentialSort(void);
void CompareLow(int bit);
void CompareHigh(int bit);
int ComparisonFunc(const void * a, const void * b);
@pranay414
pranay414 / bitonic_openmp.cpp
Created October 22, 2018 18:13
OpenMP implementation of bitonic sort
#include <iostream> //for std::cout ,std::cin
#include <cstdlib>
#include <time.h>
#include <omp.h>
using namespace std;
void ascendingSwap(int index1, int index2, int *ar) // Swap two values such that they appear in ascending order in the array
{
if (ar[index2] < ar[index1])
{
@pranay414
pranay414 / index.html
Last active June 13, 2018 15:45
tensorflow-test
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.11.6"></script>
</head>
<body>
<div id="output"></div>
</body>
<script>
@pranay414
pranay414 / index.html
Created June 13, 2018 08:15
tensorflowjs-train
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.11.6"></script>
</head>
<body>
<div id="output"></div>
</body>
<script>
@pranay414
pranay414 / index.html
Created June 13, 2018 08:11
tensorflowjs-model
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.11.6"></script>
</head>
<body>
<div id="output"></div>
</body>
<script>
@pranay414
pranay414 / index.html
Last active June 13, 2018 09:02
tensorflowjs-dataset
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.11.6"></script>
</head>
<body>
</body>
<script>
// Your script goes here!
@pranay414
pranay414 / index.html
Last active June 13, 2018 09:01
tensorflowjs-setup1
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.11.6"></script>
</head>
<body>
</body>
<script>
// Your script goes here!
@pranay414
pranay414 / python-telegarm-bot-1b.py
Last active December 23, 2017 04:56
python-telegram-bot1.1
# - *- coding: utf- 8 - *-
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
def start(bot, update):
update.message.reply_text("I'm a bot, Nice to meet you!")
def convert_uppercase(bot, update):
update.message.reply_text(update.message.text.upper())
def main():