This file contains 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
// List all files in a directory in Node.js recursively in an asynchronous fashion | |
let walkAsync = async(dir, filelist)=> { | |
if( dir[dir.length-1] != '/') dir=dir.concat('/') | |
let fse = fse || require('fs-extra'), | |
files = await fse.readdir(dir); | |
filelist = filelist || []; | |
for (let file of files) { | |
if ((await fse.stat(dir + file)).isDirectory()) { |
This file contains 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
class ITEMINFO: | |
def __init__(self, ICode, Item, Price, Qty, Discount): | |
self.ICode = ICode | |
self.Item = Item | |
self.Price = Price | |
self.Qty = Qty | |
self.Discount = Discount | |
# self.Netprice = | |
def FindDisc(self): | |
pass; |
This file contains 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
print sorted(input("Enter your Strings: "), key=lambda string: len(string)) |