Skip to content

Instantly share code, notes, and snippets.

View senthilsweb's full-sized avatar
💭
I may be slow to respond.

Senthilnathan Karuppaiah senthilsweb

💭
I may be slow to respond.
View GitHub Profile
@senthilsweb
senthilsweb / GoogleCalendarEventSmsNotifier
Last active July 4, 2018 12:59
C# class file to send SMS by adding Google Calender Event who in turn sends SMS notifications & reminder provided the user enabled SMS alert in his/her google calendar settings.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Security.Cryptography.X509Certificates;
using Google.Apis.Auth.OAuth2;
using Google.Apis.Calendar.v3;
using Google.Apis.Services;
using Google.Apis.Calendar.v3.Data;
using System.Dynamic;
@senthilsweb
senthilsweb / Calendar-icons
Created November 30, 2014 15:12
A colorful calendar icons in pure html & css. This will be very useful for web widgets and mobile list views
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>colorful calendar icons</title>
<style type="text/css">
/*
Css gradient generated from http://www.colorzilla.com/gradient-editor/
Calendar HTML/Css source reference from http://line25.com/wp-content/uploads/2012/date-icon/demo/index.html
*/
@senthilsweb
senthilsweb / flickerphotos.js
Created January 31, 2016 17:55
Search & paginate flicker photos for a given search filters and returns the collection of photos urls
var Client = require('node-rest-client').Client;
var _ = require("underscore");
var json2xls = require('json2xls');
var fs = require('fs');
//API Explorer : https://www.flickr.com/services/api/explore/flickr.photos.search
var flickr_api_endpoint = "https://api.flickr.com/services/rest/?method=flickr.photos.search&format=json&nojsoncallback=1";
var flickerPhotos = [];
@senthilsweb
senthilsweb / syntheticData-company.js
Last active September 13, 2016 20:07
Synthetic data generator for "Company" Entity using JSON-SCHEMA-FAKER node library
/*
* File Name : index.js
* Description : Synthetic data generator for "Company" Entity using JSON-SCHEMA-FAKER node library
* Author : Senthilnathan Karuppaiah
* Date Created : 09.12.2016
* Date Modified : 09.13.2016
* Dependencies : npm init
* npm install chance --save
* npm install json-schema-faker --save
* npm install json2csv --save
@senthilsweb
senthilsweb / csv2sqlite.py
Last active December 15, 2019 01:19
Python utility script to load large CSV data into sqlite in chunks
# -----------------------------------------------------
# python utility script to load large CSV data into sqlite in chunks
# dependencies: Pandas & sqlalchemy
# csv file used for testing : https://www.kaggle.com/sirpunch/meetups-data-from-meetupcom#members.csv
# -----------------------------------------------------
# {Modification Log}
# -----------------------------------------------------
# Author: Senthilnathan
# Maintainer: {maintainer}
# Created At: 12/14/2019
# -----------------------------------------------------
# Query sqlite using sqlalchemy
# dependencies: Pandas & sqlalchemy
#
# -----------------------------------------------------
# {Modification Log}
# -----------------------------------------------------
# Author: Senthilnathan
# Maintainer: {maintainer}
# Created At: 12/14/2019
@senthilsweb
senthilsweb / Grafana-install.md
Last active February 23, 2021 23:09
Grafana Installation
issuer: DeeMash Badminton Academy
fields:
invoice_number: Invoice\s*Number\:\s*([0-9]+)
Invoice_Date: Invoice\s*Date\:\s*([\w]+\s+[0-9]+\,\s*\d{4})
Payment_Due: Payment\s*Due\:\s*([\w]+\s+[0-9]+\,\s*\d{4})
amount: Amount\s*\Due\s*\(\w+\)\:\s*[\w\W]{2}\s*([0-9,.]+)
Mobile: Mobile\:\s*([0-9+]+)
date: Invoice Date:\s*([\w]+\s*[\d]+\,\s*\d{4})
# -*- coding: utf-8 -*-
issuer: DHAKA ELECTRIC SUPPLY COMPANY LTD.(DESCO)
fields:
Billing_Month : Billing Month :\s+\w{4,}\,\s+\d{4}
Bill_Number: Bill No. :\s\d{9,}
Account_Number: Account No.\\n\d{6,}
Issue Date:Issue Date :\\n(\d{2}\/\d{2}\/\d{4})
Due_Date: Due Date:\s(\d{2}\/\d{2}\/\d{4})
Meter_number: Meter No(\S\s\d{8})
Contact_number: contact no:(\s\d[0-9]{8})