Skip to content

Instantly share code, notes, and snippets.

View ajayverse404's full-sized avatar

Ajay Ramesh ajayverse404

View GitHub Profile
@ajayverse404
ajayverse404 / 3.java
Last active January 26, 2019 16:21
solid-blog
interface doc { void display(String content); }
interface doc_feature1 { void feature1(String content); }
class MSWord2020 implements doc, doc_feature1
{
public void display(String content) { ... }
public void feature1(String content) { ... }
}
@ajayverse404
ajayverse404 / 2.java
Last active January 26, 2019 16:15
Solid-Blog
public class Doc {
String content;
String reportJson;
String reportPdf;
Doc(String content) {
this.content = content;
this.reportJson = json();
this.reportPdf = pdf();
}
@ajayverse404
ajayverse404 / 1.java
Last active January 26, 2019 16:12
SOLID-Blog-gists
public class Doc {
private String content
Doc(String content) {
this.content = content
}
}
// Report in seperate class
public class ReportPDF {
public String reportPdf;
@ajayverse404
ajayverse404 / Lst_sort_time.py
Created December 28, 2018 21:08
A tiny experiment to know performance among sorting versus set construction
# coding: utf-8
# # A tiny experiment to know performance among sorting versus set construction
# It is more fun write a few lines of code to know the performance rather reading documents to know the time complexity. Below code is a tiny experiment where I am comparing the list sort method in python and set construction time on random numbers.
# In[132]:
import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread("dps3.jpg")
img2 = img
img2[:] = [32,33,34]
cv2.imshow('image',img2)
kernel = np.ones((100,100),np.float32)/10000
dst = cv2.filter2D(img,-1,kernel)
cv2.imshow('image',dst)
@ajayverse404
ajayverse404 / DigitRecognition.ipynb
Last active July 19, 2017 02:00
Digit Recognition using Machine Learning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ajayverse404
ajayverse404 / ge.ipynb
Created July 13, 2017 03:44
CAKE - POC
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
//
// ViewController.swift
// ColorMaker
//
// Created by Ajay Ramesh on 7/7/17.
// Copyright © 2017 ajayramesh23. All rights reserved.
//
import UIKit
@ajayverse404
ajayverse404 / getSystemInfo.js
Last active July 8, 2017 23:04
Gather System Information in Node JS
// npm install systeminformation --save
'use strict';
const { promisify } = require('util');
const getIP = promisify(require('external-ip')());
const si = require('systeminformation');
var beautify = require("json-beautify");
var flag = true;