Skip to content

Instantly share code, notes, and snippets.

View deepanshululla's full-sized avatar
👋
holla

Deepanshu Lulla deepanshululla

👋
holla
View GitHub Profile
@deepanshululla
deepanshululla / numpy_tutorial_part1.ipynb
Last active November 18, 2018 17:12
Numpy Tutorial for blog part 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@deepanshululla
deepanshululla / numpy_tutorial_part2.ipynb
Created November 18, 2018 17:17
Numpy tutorial part 2
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Type your code here, or load an example.
#include <string>
#include <iostream>
using namespace std;
template<typename T, size_t N>
constexpr size_t arraySize(T (&)[N]) noexcept {
return N;
@deepanshululla
deepanshululla / MyString.h
Last active August 11, 2021 04:29
Custom string class implementation in C++
#include<iostream>
#include <cstring>
using namespace std;
template <typename T=char>
class MyString {
public:
MyString();//default constructor
@deepanshululla
deepanshululla / thread_safe_queue.cpp
Last active April 27, 2022 09:42
thread_safe_queue.cpp
#include <exception>
#include <memory>
#include <mutex>
#include <queue>
struct EmptyQueueException : std::exception {
const char * what() const throw() {
return "Empty queue";
}
};