Skip to content

Instantly share code, notes, and snippets.

View bhandarisaurav's full-sized avatar
💻
Full Stack Software Developer

Saurav Bhandari bhandarisaurav

💻
Full Stack Software Developer
View GitHub Profile
@jasalt
jasalt / namesub.py
Created April 5, 2013 20:24
rename subtitle files to match video files in same folder
'''
Rename subtitle files in same folder to match the movie file
(for xbmc-share folder)
Jarkko Saltiola 2013
'''
import os
import re
video_types = ["mkv","avi"]
@AleksJev
AleksJev / tree.php
Created April 5, 2013 05:28
Creating a Christmas Tree
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Eglite</title>
<style type="text/css">
body{
margin:0;
padding:0;
color:#000;
@AleksJev
AleksJev / index.php
Last active March 13, 2018 00:38
Guessing Game
<? session_start(); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Adapt</title>
<style type="text/css">
.num{
font-size: 244px;
height: 270px;
@colinux
colinux / subtitles-renamer.sh
Created January 27, 2011 23:21
Rename subtitles files according to tv shows names found in a directory
#!/bin/bash
# Renames subtitles files according to tv shows names found in a directory
# Acceped syntaxes for season/episode are: 304, s3e04, s03e04, 3x04 (case insensitive)
#
# Usage:
# Put this gist somewhere in your $PATH, like /usr/local/bin/subtitles-renamer
# Chmod +x it
# cd ~/YourHolidaysTvShowsWithSubtitles
# subtitles-renamer