Skip to content

Instantly share code, notes, and snippets.

View jerilkuriakose's full-sized avatar

Jeril Kuriakose jerilkuriakose

  • Cochin, Kerala, India
View GitHub Profile

Quick Wins implementation from analysis

Session ID: ses_3e21fade1ffecORaoKJwTugpH9 Created: 2/2/2026, 10:22:46 AM Updated: 2/2/2026, 11:41:15 AM


User

@jerilkuriakose
jerilkuriakose / convert_excel.py
Last active May 20, 2024 07:19
Recover corrupt excel file using Python
# Changing the data types of all strings in the module at once
from __future__ import unicode_literals
# Used to save the file as excel workbook
# Need to install this library
from xlwt import Workbook
# Used to open to corrupt excel file
import io
filename = r'SALEJAN17.xls'
# Opening the file using 'utf-16' encoding
@jerilkuriakose
jerilkuriakose / upload-post.jsx
Last active July 5, 2019 14:39
Working of file-upload and sending the uploaded file as a POST request using ReactJS
import React from 'react';
import Dropzone from 'react-dropzone';
import Request from 'superagent';
class UploadPost extends React.Component {
constructor() {
super()
this.state = { files: [] }
}
# import the required library to open HDF file
from pandas import HDFStore
class OpenHDFS():
"""
Context Manager class to open / create a HDFS / h5 file
"""
def __init__(self, filename):
"""
#!/bin/bash
dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.Suspend" boolean:true
@jerilkuriakose
jerilkuriakose / process3dGraph.py
Last active October 19, 2017 09:26 — forked from meganehouser/process3dGraph.py
This is a script which draws the amount of CPU used and memory usage of a process to a 3D graph.
#coding:utf-8
import psutil
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
TIME_NUM = 90
FRAMES = 360
1
2
5
1
2
9
8
4
6
7
1
2
5
1
7
9
8
4
6
7
a = 25
from pandas import DataFrame
# import the required library to open HDF file
from pandas import HDFStore
# File that stores the dataframe
filename = 'data.h5'
# Creating a dataframe
df = DataFrame(np.random.randn(5,3), columns=['A', 'B', 'C',])
class OpenHDFS():