Skip to content

Instantly share code, notes, and snippets.

View vvps's full-sized avatar

Vijay Parsi vvps

  • Germany
View GitHub Profile
@vvps
vvps / jekyll-new-post.sh
Last active February 11, 2016 12:56 — forked from flohei/jekyll-new-post.sh
This script creates a new blog post for Jekyll.
#!/bin/sh
# variables
title="New Post"
postdate=`date +%Y-%m-%d`
posttime=`date +%H:%M:%S`
timezone="+0100"
publishdate="$postdate $posttime $timezone"
tags=
categories=
@vvps
vvps / TakeRestAlarm
Created April 20, 2015 16:48
Arduino LED Blink in Loop
#include <Metro.h>
#define rLED 10
#define gLED 9
#define LED 13
Metro pauseTimer = Metro(1200000);
void setup()
{
pinMode(rLED,OUTPUT);
@vvps
vvps / Countdown
Created March 24, 2015 14:52
AHK script to show number of days remaining | Project deadline, etc
#^+?:: ;Winkey + Ctrl + Shift + ?
FormatTime, Today,, yyyyMMdd
rDays := 20200101
rDays -= Today, days
rWeeks := rDays//7
rWeekDays := mod(rDays,7)
rWorkDays := rDays - (rWeeks*2) ;Removing Saturdays and Sundays
MsgBox, 64, Countdown , %rDays% total days `n%rWeeks% weeks and %rWeekDays% days `n%rWorkDays% workdays approx.
@vvps
vvps / balloontip.py
Last active August 29, 2015 14:17 — forked from boppreh/balloontip.py
# -- coding: utf-8 --
from win32api import *
from win32gui import *
import win32con
import sys, os
import struct
import time
class WindowsBalloonTip:
@vvps
vvps / whois
Last active August 29, 2015 14:11
A Python script to open file(s) in a root folder with regex like input
import os
import sys
import fnmatch
from PIL import Image
dirPath = r'I:\A_folder_with_photos_and_subfolders'
if len(sys.argv) > 1:
searchParam = sys.argv[1]
regExpParam = '*' + searchParam + '*.*'
@vvps
vvps / Matlab intensity plot
Created September 6, 2013 10:15
This is a small Matlab script to plot current/intensity values from a data in [x,y,current] or [x,y,intensity] format.
clear all
clc
%Read from file
load 'datafile';
x = datafile(:,1);
y = datafile(:,2);
I = datafile(:,3);