kubectl create secret generic aws-secret --from-literal=AWS_ACCOUNT= --from-literal=AWS_ACCESS_KEY_ID= --from-literal=AWS_SECRET_ACCESS_KEY= --from-literal=AWS_DEFAULT_REGION= --from-literal=AWS_REGION=
import cv2 | |
import numpy as np | |
def mse(imageA, imageB): | |
err = np.sum((imageA.astype("float") - imageB.astype("float")) ** 2) | |
err/=float(imageA.shape[0] * imageA.shape[1]) | |
return err | |
original_testfigure1 = cv2.imread("testfigure1.png") | |
expected_testfigure1 = cv2.imread("testfigure2.png") |
# sample content of replace_dictionary.csv | |
#gooood, god | |
#baaaad, bad | |
#coool, cool | |
# | |
replace_dict = {} |
#!/usr/bin/env python3 | |
# Author: T Shrinivasan | |
# Email : [email protected] | |
# License : GNU GPL 3.0 | |
# sudo apt install libimage-exiftool-perl imagemagick gwenview | |
# /etc/ImageMagick-6/policy.xml |
import sys | |
import re | |
import tamil | |
infile = sys.argv[1] | |
spechal_charecers = ["~","`","!","@","#","$","%","^","&","*","(",")","_","-","+","=","[","{","]","}",'\\',"|",";",":","\'",'\"',"<",">",".","?","/",',',"’","\’",'“','”'] | |
numbers = [1,2,3,4,5,6,7,8,9,0] | |
sandhi_chars = ['க்','ச்', 'த்', 'ப்'] |
import os | |
import sys | |
import glob | |
#import telegram_send | |
all_pdf = glob.glob("*.pdf") | |
all_pdf_count = len(all_pdf) |
# program name : fix_records.py | |
# author : [email protected] | |
# version : 0.1 | |
import sys | |
import os | |
import argparse | |
parser = argparse.ArgumentParser(description='A program to find and replace bibliographical data') |
import sys | |
in_file = sys.argv[1] | |
content = open(in_file).read() | |
out = open("result.csv","a") | |
con = content.split("வாக்காளர் பெயர்") |
//var langCode ='ta'; -- TODO Make it language independent. | |
function doGet() { | |
return HtmlService.createTemplateFromFile('Index.html') | |
.evaluate(); | |
} | |
function doSomething() { | |
Logger.log('I was called!'); | |
} |
#This program helps to remove the given words in a file to all the files inside a directory, recursively. | |
# Got the sed idea from http://www.linuxask.com/questions/replace-multiple-strings-using-sed | |
import sys | |
import glob | |
import os | |
import argparse | |
parser = argparse.ArgumentParser() |