Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View mishal23's full-sized avatar
👨‍💻
Available

Mishal Shah mishal23

👨‍💻
Available
View GitHub Profile
@mishal23
mishal23 / l2fwd-l3fwd-lpm.lua
Created July 14, 2020 18:55
Pktgen-DPDK Lua Scripts
--
-- L2fwd, L3fwd-LPM test script
-- Send packets for x seconds; return how many packets has been sent.
--
-- Copyright (c) 2020 mishal23. All rights reserved.
--
package.path = package.path ..";?.lua;test/?.lua;app/?.lua;"
require "Pktgen";
@mishal23
mishal23 / blockstack.txt
Last active October 28, 2019 20:33
Blockstack Gist
Verifying my Blockstack ID is secured with the address 1GiLy1W4nUxu74ds7bgFqA1bz3D3HvvbaS https://explorer.blockstack.org/address/1GiLy1W4nUxu74ds7bgFqA1bz3D3HvvbaS
<!DOCTYPE html>
<html>
<head>
<title>First</title>
</head>
<body>
<h1>My first Reop</h1>
</body>
</html>
@mishal23
mishal23 / subarray-atleast-k-numbers.cpp
Last active May 27, 2018 17:07
Find subarray containing atleast k numbers with maximum sum
#include "bits/stdc++.h"
using namespace std;
int main()
{
int n,i,k;
cin>>n;
vector<int> v;
for(i=0;i<n;i++)
{
/*
Problem:- Save Gotham!
Link:- https://practice.geeksforgeeks.org/problems/save-gotham/0
Author:- Mishal Shah
*/
#include "bits/stdc++.h"
#define MOD 1000000001
using namespace std;
int main()
{
#include "bits/stdc++.h"
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int n,m,x,i,j;
cin>>n>>m;
@mishal23
mishal23 / .travis.yml
Created April 22, 2018 15:26
travis ci for virtual clinic
language: python
python:
- 3.5
services: postgresql
env:
- DJANGO=2.0.4
- DB=postresql
@mishal23
mishal23 / matrix-addition.cu
Last active November 30, 2017 14:40
Matrix Addition
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <cuda.h>
#define row 10000
#define col 10000
int matrixA[row][col], matrixB[row][col], matrixC[row][col], matrixD[row][col];
@mishal23
mishal23 / matrixMul.cu
Created November 26, 2017 05:10
Matrix Multiplication in CUDA
/**
* Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related documentation outside the terms of the EULA
* is strictly prohibited.
*
*/
@mishal23
mishal23 / reverse stack using recursion.c
Created September 25, 2017 06:06
reverse stack using recursion
/*
Program:- Reverse Stack using recursion
*/
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
struct node{
int data;
struct node *next;
};