cypthon test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) { ... } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Doc { | |
| String content; | |
| String reportJson; | |
| String reportPdf; | |
| Doc(String content) { | |
| this.content = content; | |
| this.reportJson = json(); | |
| this.reportPdf = pdf(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Doc { | |
| private String content | |
| Doc(String content) { | |
| this.content = content | |
| } | |
| } | |
| // Report in seperate class | |
| public class ReportPDF { | |
| public String reportPdf; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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]: | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ViewController.swift | |
| // ColorMaker | |
| // | |
| // Created by Ajay Ramesh on 7/7/17. | |
| // Copyright © 2017 ajayramesh23. All rights reserved. | |
| // | |
| import UIKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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; | |