View PKGBUILD-juce.sh
# Maintainer: Gergely Imreh <imrehg@gmail.com>
pkgname=juce
pkgdesc='Cross-platform C++ framework, including the Projucer C++ editor'
pkgver=5.3.1
pkgrel=1
arch=('i686' 'x86_64')
url='https://www.juce.com/'
license=('custom')
depends=('hicolor-icon-theme' 'webkit2gtk' 'zenity')
View PKGBUILD-dexed-0.9.3.sh
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
pkgname="dexed"
pkgver=0.9.3
pkgrel=1
pkgdesc="A software synth closely modelled on the Yamaha DX7"
arch=('i686' 'x86_64')
url="http://asb2m10.github.io/dexed/"
license=("GPL3")
groups=('vst-plugins')
View PKGBUILD-pianoteq-stage5.sh
# Maintainer: Saiki81 <saikia81 at hotmail dot com>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
# adapted from package: pianoteq-stage-trial-bin
# adapted from pkgbuild creator: CrocoDuck <crocoduck dot oducks at gmail dot com>
pkgname=pianoteq-stage5
pkgver=5.8.1
pkgrel=1
pkgdesc="Virtual piano instrument using physical modelling synthesis. Both standalone and plugin versions."
View debounce.py
#
# inspired by: https://forum.micropython.org/viewtopic.php?t=1938#p10931
#
import micropython
try:
from machine import Timer
timer_init = lambda t, p, cb: t.init(period=p, callback=cb)
except ImportError:
from pyb import Timer
View pipe.py
>>> pipe('md5sum', 'This is a test')
--> 'ce114e4501d2f4e2dcea3e17b546f339 -\n'
>>> pipe('md5sum', b'This is a test')
--> b'ce114e4501d2f4e2dcea3e17b546f339 -\n'
>>> pipe(['gzip', '-c'], b'This is a test')
b'\x1f\x8b\x08\x00\xd6\x91\x13Z\x00\x03\x0b\xc9\xc8,V\x00\xa2D\x85\x92\xd4\xe2\x12\x002\x9fz\xc0\x0e\x00\x00\x00'
>>> pipe('bash', 'ls').splitlines()
View get_aliases.py
from subprocess import PIPE, run, STDOUT
def get_aliases():
aliases = []
for line in run(["bash", '-i'], input='alias', stdout=PIPE, stderr=PIPE,
env={'PS1': ''}, encoding='utf-8').stdout.splitlines():
name, cmd = line.split('=', 1)
aliases.append((name[6:], cmd[1:-1]))
return aliases
View open-in-firefox.sh
#!/bin/bash
#
# open-in-firefox.sh - open URL from Termux command line in Firefox Android browser
#
# Works with file:// URLs too, unlike with termux-open{-url}.
#
exec am start --user 0 -a android.intent.action.VIEW -n org.mozilla.firefox/.App -d "$1" >/dev/null
View test.sh
$ micropython upost.py foo=bar spamm=42
{'files': {}, 'headers': {'Host': 'httpbin.org', 'Content-Length': '16', 'Content-Type': 'application/x-www-form-urlencoded', 'Connection': 'close'}, 'args': {}, 'form': {'spamm': '42', 'foo': 'bar'}, 'origin': '213.196.215.83', 'data': '', 'json': None, 'url': 'http://httpbin.org/post'}
View unscrape.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import requests
import time
from io import BytesIO
from os.path import join
from selenium import webdriver
View extscreenmanager.py
# -*- coding: utf-8 -*-
"""Extended Screen Manager for kivy with better convenience for switching between screens."""
from six import string_types, iteritems
from kivy.logger import Logger
from kivy.uix.screenmanager import ScreenManager
from kivy.uix.screenmanager import ScreenManagerException
from kivy.uix.screenmanager import Screen