Skip to content

Instantly share code, notes, and snippets.

@mridah
mridah / timestamp.js
Created December 23, 2016 08:35 — forked from hurjas/timestamp.js
Print out a nicely formatted timestamp in JavaScript.
/**
* Return a timestamp with the format "m/d/yy h:MM:ss TT"
* @type {Date}
*/
function timeStamp() {
// Create a date object with the current time
var now = new Date();
// Create an array with the current month, day and time
@mridah
mridah / csv2vcf.py
Created December 23, 2016 11:58
csv2vcf is a small command line tool to convert CSV files to VCard (.vcf) files.
"""
Author : Mridul Ahuja
Github : https://github.com/mridah/csv2vcf
Description : A small command line tool to convert CSV files to VCard files
"""
import os
import sys
import csv
@mridah
mridah / extractdocx.py
Created July 28, 2017 17:25 — forked from etienned/extractdocx.py
Simple function to extract text from MS XML Word document (.docx) without any dependencies.
try:
from xml.etree.cElementTree import XML
except ImportError:
from xml.etree.ElementTree import XML
import zipfile
"""
Module that extract text from MS XML Word document (.docx).
(Inspired by python-docx <https://github.com/mikemaccana/python-docx>)
package com.mridulahuja.appname;
import android.util.Log;
import com.loopj.android.http.JsonHttpResponseHandler;
import org.json.JSONObject;
import cz.msebera.android.httpclient.Header;
@mridah
mridah / Startup.cs
Created January 13, 2018 15:23 — forked from HelBorn/Startup.cs
Adding a program to startup in C#
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;
namespace RunOnStartup
{
/// <summary>
/// It attempts to write to HKEY_LOCAL_MACHINE first, which will run on startup on all user accounts.
@mridah
mridah / Barcodereader.cs
Created August 1, 2018 06:23
Sample program to read barcode data over TCP C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
@mridah
mridah / connmanctl.md
Created August 2, 2020 12:41 — forked from kylemanna/connmanctl.md
Connmanctl Cheat Sheet