Skip to content

Instantly share code, notes, and snippets.

View BasmaRG's full-sized avatar
🏠
Working from home

Basma Elshoky+ BasmaRG

🏠
Working from home
View GitHub Profile
@BasmaRG
BasmaRG / youtube2srt.py
Created November 18, 2017 16:28 — forked from YungSang/youtube2srt.py
Convert a youtube transcript in srt subtitle (Python recipe)
#!/usr/bin/python
# -*- encoding:utf-8 -*-
"""Translate Google's Transcript into srt file.
Takes google's transcript filename as argument (xml extension required).
NB: to get google's transcript, use tihs URL:
http://video.google.com/timedtext?lang=en&v=VIDEO_ID
"""
@BasmaRG
BasmaRG / AES.c
Created May 6, 2016 18:06 — forked from bricef/AES.c
A simple example of using AES encryption in Java and C.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* MCrypt API available online:
* http://linux.die.net/man/3/mcrypt
*/
#include <mcrypt.h>