Skip to content

Instantly share code, notes, and snippets.

Davide Spataro knotman90

Block or report user

Report or block knotman90

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Fedora Dynamic Message of the day - motd
# Installation:
# 1. vim /etc/ssh/sshd_config
# PrintMotd no
# 2. vim /etc/pam.d/login
# # session optional
View cmd_line_args_manager.cpp
#include <string>
#include <algorithm>
#include <vector>
#include <tuple>
#include <iostream>
#include <optional>
void usage(const std::string& progName) {
std::cout << progName << " -X FILE -P FILE -O DIRECTORY " << std::endl
View codechef_DPAIR.cpp
#include <bits/stdc++.h>
using namespace std;
using namespace std::chrono;
using pii = pair<int, int>;
using l = long;
using ll = long long;
using ull = unsigned long long;
void solve();
View stefano_mock_interview.cpp
#include <algorithm>
#include <array>
#include <cmath>
#include <iostream>
#include <iterator>
#include <limits>
#include <numeric>
#include <unordered_map>
#include <vector>
using namespace std;
View gist:9b4e47dc04e7dbfefe4a
/* *
* Copyright 1993-2012 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.
#include <stdio.h>
View ProjectEuler_problem68.cpp
//problem 68---
template<class COLLECTION>
bool cmp_arr(const COLLECTION& v1, const COLLECTION& v2) {
for(int i=0; i<v1.size() ; i++) {
return true;
return false;
View ProjectEulerProblem#187.cpp
#include <bits/stdc++.h>
#include <gmpxx.h>
#include <functional>
#include <numeric>
typedef unsigned long long ull;
typedef signed long long ll;

Keybase proof

I hereby claim:

  • I am knotman90 on github.
  • I am davidespataro ( on keybase.
  • I have a public key whose fingerprint is 7D5A 3C6B 50E3 16C3 BAAB 3D12 8069 C984 9E14 40FC

To claim this, I am signing this object:

Author: Davide Spataro
typedef double2 cl_double_complex;
typedef float2 cl_float_complex;
View list.c
#include <stdio.h>
typedef struct node{
int payload;
node* next;
} node;
void print(node* head){
printf("%d ",head->payload);
You can’t perform that action at this time.