Posts

Showing posts from 2014

Playing with Swift.

Image
Finally Udacity lauched there iOS Development course with Swift. I started the course. Its been just few hours that I say the launch of the course on their website I have already completed 4 Units out 6 units from the course. I must say I have learnt alot.

A Simple Script to remove all numbers from file names and renaming them

#Script to remove numbers from file names and rename them import os import string def renameFiles():     files_list = os.listdir(r'/home/jayc/Python/prank/')     print(files_list)     saved_path = os.getcwd()     os.chdir(r'/home/jayc/Python/prank/')     print(os.getcwd())     for file_name in files_list:         os.rename(file_name, file_name.translate(file_name.maketrans('0123456789', '          ')))     os.chdir(saved_path) renameFiles()

A Simple Script to open a browser every two hours

#Script to open youtube after every 2hours import webbrowser import time total_breaks = 3 break_counter = 1 while(break_counter <= total_breaks):     time.sleep(2*60*60)     webbrowser.open("http://www.youtube.com")     break_counter = break_counter+1

Introduction to Insertion Sort - But this not an introduction to Insertion Sort

I am not gonna explain how Insertion Sort works or anything about it. I am just here to share some things with you today that I fond very usefull and the fact is that I fond those items today only. I was watching a v