Skip to content

Instantly share code, notes, and snippets.

View 0asa's full-sized avatar
🐽

Vincent Botta 0asa

🐽
View GitHub Profile
@0asa
0asa / activity.csv
Last active February 7, 2017 21:06
Day Pulse Ox [^automatically detected] Charge 2 [^manual trigger]
1 12 min / 165 cals / 2.27 km 13 min / 164 cals / 1.91 km
2 - -
3 17 min / 175 cals / 2.76 km 13 min / 154 cals / 1.93 km
4 - -
5 - -
6 - -
7 42 min / 161 cals / 4.5 km 41 min / 328 cals / 3.68 km

Keybase proof

I hereby claim:

  • I am 0asa on github.
  • I am 0asa (https://keybase.io/0asa) on keybase.
  • I have a public key ASAI-Wl8hiPkV-7MrngtxFlDzqUGrPsoRX-qPwzdqnwpgQo

To claim this, I am signing this object:

@0asa
0asa / usage.html
Last active April 18, 2023 15:49 — forked from aloncarmel/randombg.js
A minimal HTML example to grab a random background from unsplash.com using their API and apply to a div.
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" type="text/javascript"></script>
<script>
function GetRandomBackground()
{
var app_id = 'YOUR_APPLICATION_ID'
var url = 'https://api.unsplash.com/photos/random?client_id=' + app_id;
$.ajax({
url: url,
@0asa
0asa / Timer.py
Last active December 14, 2018 10:57
Timing with python context manager
import time
import logging
class Timer:
def __init__(self, timed, logger=None):
self.logger = logger
self.timed = timed
def __enter__(self):
self.start = time.perf_counter()
@0asa
0asa / interleave-deinterlace.py
Last active April 26, 2019 13:30
Interleave fields and deinterlace
# https://ffmpeg.org/ffmpeg-filters.html#il
import ffmpeg
try:
top = ffmpeg.input("top/%d.jpg")
bot = ffmpeg.input("bottom/%d.jpg")
s = (
ffmpeg
.filter([top, bot], 'vstack')
.filter('il', l='i', c='i')