Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
"""
vidstab - Performs video stabilization on input using vid.stab in ffmpeg
Usage:
vidstab <input> [--with-trf=TRFILE | --transform-only] [options]
vidstab (-h | --help)
vidstab --version
#!/usr/bin/env python3
"""
Multitranscode - Perform a series of h264 video transcodes on the input video
Usage:
multitranscode <input> [-p PRESET] [-t TUNE] CRF ...
multitranscode (-h | --help)
multitranscode --version
@SavinaRoja
SavinaRoja / transcription.hs
Created December 7, 2015 21:14
Using Lazy ByteStrings to quickly transcribe DNA to RNA (replace T with U) on input sequences of arbitrary length
-- A solution to Rosalind Problem: RNA by SavinaRoja
-- http://rosalind.info/problems/rna/
-- Uses Data.ByteString to remove unnecessary overhead of string or Text
-- representation, and Data.ByteString.Lazy in particular for safety in
-- handling sequence files of arbitrary length.
--
-- This script is really quite trivial, it just replaces bytes of value 84 with
-- bytes of value 85, converting T to U in ASCII.
module Main where
@SavinaRoja
SavinaRoja / bytecounter.hs
Created December 7, 2015 20:21
Using Lazy ByteStrings and Data.Map to quickly count unique byte occurrences in input of arbitrary length
-- A solution to Rosalind Problem: DNA by SavinaRoja
-- http://rosalind.info/problems/dna/
-- Uses Data.ByteString to remove unnecessary overhead of string or Text
-- representation, and Data.ByteString.Lazy in particular for safety in
-- handling sequence files of arbitrary length.
--
-- The countMap function expresses the solution to the general problem
-- of efficiently counting all unique bytes encountered in a bytestring.
-- This program should perform linearly with respect to sequence length.
@SavinaRoja
SavinaRoja / application.py
Created September 15, 2015 04:02
gruepy minimal test
#encoding: utf-8
"""
The application module supplies the Application object, which provides the core
utilities for running an application with gruepy.
"""
import asyncio
from concurrent.futures import CancelledError
import curses
@SavinaRoja
SavinaRoja / .vimrc
Created September 8, 2015 18:10
.vimrc for python
" A good writeup of the .vimrc is here:
" http://dougblack.io/words/a-good-vimrc.html
syntax on
colorscheme badwolf
" Tab Handling
set tabstop=4
set softtabstop=4
@SavinaRoja
SavinaRoja / .pymolrc
Created July 30, 2015 02:44
.pymolrc example file
#Beware: when scripting in PyMOL Command Language, full-line comments only
#Rendering Settings
# (<default>), <remark>
set ribbon_width, 8
# (3), wider ribbons
set antialias, 2
# (1), smoother antialiasing
set cartoon_fancy_helices, 1
@SavinaRoja
SavinaRoja / data_to_fit.txt
Created June 8, 2015 14:01
Curve Fitting for Reversible Two Object Binding
0 0.145 0.33495 0.77285 1.7835 3.6685 9.541 22.04 50.895 117.595 271.15 481.4 1450
339.3333333333 492 1418.6666666667 1341 3130 5509.3333333333 11389.3333333333 19671.6666666667 28406 35452 36769.6666666667 41462.8422425033 44774.3333333333
20.4042479237 35.9304884464 968.3849096993 125.9325216138 688.8454108144 573.4407845047 508.4302639825 691.4913834122 1150.2830086548 1451.6841943067 1052.0058618341 1456.6797863635 437.9866816849
0.1
10.0
440000.0
@SavinaRoja
SavinaRoja / desktop.profile
Created April 6, 2015 20:55
Profiling Xonsh Shell init
694368 function calls (688599 primitive calls) in 1.439 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
68 0.000 0.000 0.000 0.000 <frozen importlib._bootstrap>:1000(__init__)
54 0.000 0.000 0.002 0.000 <frozen importlib._bootstrap>:1019(init_module_attrs)
54 0.000 0.000 0.002 0.000 <frozen importlib._bootstrap>:1099(create)
54/5 0.000 0.000 0.086 0.017 <frozen importlib._bootstrap>:1122(_exec)
14 0.000 0.000 0.006 0.000 <frozen importlib._bootstrap>:1156(_load_backward_compatible)
@SavinaRoja
SavinaRoja / Container Design.md
Last active August 29, 2015 14:07
Design Document - Container System for npyscreen

Purpose

This document exists to help formalize design concepts for the building of a Container System for npyscreen. This should clarify the building of the basic structure, as well as compliance with expected behaviors for the creation of objects deriving from this system. This document may use the terms Container and Layout Manager interchangeably; it may help the reader to know that the term Layout Manager is the more common general term in GUI design.

Authors

The following persons have contributed to this document:

  • Paul Barton (SavinaRoja)