Skip to content

Instantly share code, notes, and snippets.

Avatar

Steven Van Vaerenbergh steven2358

View GitHub Profile
View exponentiation_table.md

Exponentiation table

Results are rounded to two decimals.

base \ exponent 2 3 4 5 6 7 8 9 10
1,01 1,02 1,03 1,04 1,05 1,06 1,07 1,08 1,09 1,10
1,02 1,04 1,06 1,08 1,10 1,13 1,15 1,17 1,20 1,22
1,03 1,06 1,09 1,13 1,16 1,19 1,23 1,27 1,30 1,34
1,04 1,08 1,12 1,17 1,22 1,27 1,32 1,37 1,42 1,48
View power_table.md

Power table

base \ exponent 2 3 4 5 6 7 8 9 10
1,01 1,02 1,03 1,04 1,05 1,06 1,07 1,08 1,09 1,10
1,02 1,04 1,06 1,08 1,10 1,13 1,15 1,17 1,20 1,22
1,03 1,06 1,09 1,13 1,16 1,19 1,23 1,27 1,30 1,34
1,04 1,08 1,12 1,17 1,22 1,27 1,32 1,37 1,42 1,48
1,05 1,10 1,16 1,22 1,28 1,34 1,41 1,48 1,55 1,63
1,06 1,12 1,19 1,26 1,34 1,42 1,50 1,59 1,69 1,79
@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 26, 2022
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/