Skip to content

Instantly share code, notes, and snippets.

Avatar

Steven Van Vaerenbergh steven2358

View GitHub Profile
@steven2358
steven2358 / hello_world.py
Created Jul 23, 2020
Python Hello World - Empty file template with main() function.
View hello_world.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def main():
print('Hello world!')
if __name__ == '__main__':
main()
@steven2358
steven2358 / ffmpeg.md
Last active Jun 20, 2021
FFmpeg cheat sheet
View ffmpeg.md
@steven2358
steven2358 / gource.sh
Last active May 15, 2018 — forked from lancewalton/gource.sh
Produces a video of the evolution of a git repository using gource (see https://gource.io/).
View gource.sh
#!/bin/zsh
if (( !($# == 3) ))
then
echo "Usage:"
echo $0 "<ffmpeg preset> <output file base name> <seconds per day>"
exit 1
fi
"""
View conda_environment.md
@steven2358
steven2358 / cheatsheet.py
Created Apr 24, 2017
Python Cheat Sheet
View cheatsheet.py
###
# numpy
###
# convert variable to other data type
x.astype(np.float32)
@steven2358
steven2358 / index.html
Created Mar 24, 2016
Blank HTML5 document
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body>
<!-- page content -->
@steven2358
steven2358 / kaggle.py
Last active Mar 8, 2016
Check if Kaggle has launched a competition today
View kaggle.py
# Check if Kaggle has launched a competition today.
#
# Ported to Python 2 from https://github.com/BraunPhilipp/snippets/blob/master/kaggle.py
from urllib2 import urlopen
from bs4 import BeautifulSoup
import time
import random
import string
import datetime
@steven2358
steven2358 / .htaccess
Created Feb 9, 2016
.htaccess for 301 redirect to new domain
View .htaccess
Redirect 301 / http://www.newdomain.com/
@steven2358
steven2358 / cue_sheet_converter.py
Last active Oct 2, 2019
Convert a playlist in text format to a cue file
View cue_sheet_converter.py
# Convert a playlist in text format to a cue file
# Author: steven2358
# Usage:
# 1. Make a playlist file "playlist.txt" using this format:
'''
Album Artist - Album Name
FileName.mp3
MM:SS:mm - Artist1 - Title1
MM:SS:mm - Artist2 - Title2
MM:SS:mm - Artist3 - Title3
View shopping_carts.md