Skip to content

Instantly share code, notes, and snippets.

View rkorsak's full-sized avatar

Ryan Korsak rkorsak

  • In orbit around Philadelphia, PA
View GitHub Profile
@rkorsak
rkorsak / config.xml
Created January 31, 2018 14:16
Tizen web app background audio
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/BackgroundAudio" version="1.0.0" viewmodes="maximized">
<tizen:application id="59hzphXAzx.BackgroundAudio" package="59hzphXAzx" required_version="3.0"/>
<tizen:background-category value="media"/>
<content src="index.html"/>
<feature name="http://tizen.org/feature/screen.size.all"/>
<icon src="icon.png"/>
<name>BackgroundAudio</name>
<tizen:profile name="mobile"/>
<tizen:setting screen-orientation="portrait" context-menu="enable" background-support="enable" encryption="disable" install-location="auto" hwkey-event="enable"/>
@rkorsak
rkorsak / promptListSigint.js
Created October 2, 2018 17:18
prompt-list SIGINT example
// prompt-list@3.2.0
const PromptList = require('prompt-list');
function wait(duration) {
return new Promise((resolve) => {
setTimeout(resolve, duration);
});
}
function run() {
#!/bin/bash
# Generates an animated GIF from a source video (e.g. a .mov file)
# See:
# * http://superuser.com/questions/556029/how-do-i-convert-a-video-to-gif-using-ffmpeg-with-reasonable-quality
# * http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
# Requires ffmpeg on the PATH
# Usage:
# mkgif filename [output_width]
@rkorsak
rkorsak / .dockerignore
Last active October 1, 2020 16:14
A simple reproduction of multi-processing issues when running FastAPI in Docker
__pycache__
*.pyc
*.pyo
*.pyd