Skip to content

Instantly share code, notes, and snippets.

Avatar

Clyde Tressler amalgamatedclyde

View GitHub Profile
View sample_iamges.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
url
https://slack-imgs.com/?c=1&url=https%3A%2F%2Fscontent-ord1-1.cdninstagram.com%2Ft51.2885-15%2Fe35%2F16789559_383811988664997_8622720864804143104_n.jpg
http://ak2.polyvoreimg.com/cgi/img-set/cid/218897905/id/5mi-Ro4Q5xGz_iYjtn1LOQ/size/y.jpg
http://i57.tinypic.com/aczt39.jpg
https://cdn.lookastic.de/looks/bikerjacke-t-shirt-mit-rundhalsausschnitt-enge-jeans-large-17811.jpg
https://s-media-cache-ak0.pinimg.com/originals/c4/98/10/c49810b58a584d5af0b0b50b66a05e0c.jpg
https://belighter.files.wordpress.com/2013/07/casualrosie_rexfeatures_2596508b.jpg
http://www.gotceleb.com/wp-content/uploads/photos/kirsten-dunst/at-good-friday-family-brunch-in-la/Kirsten-Dunst-at-Good-Friday-family-brunch--02-300x420.jpg
https://images.asos-media.com/products/asos-golden-floral-bardot-midi-dress/7609569-1-multi?$XXL$&wid=513&fit=constrain
http://s4.thingpic.com/images/Ns/nSS9gJX5RsSYCfPgtN3ajgfc.jpeg
@amalgamatedclyde
amalgamatedclyde / supervisord.sh
Last active Dec 10, 2016 — forked from mhayes/supervisord.sh
init.d for supervisord for Amazon Linux AMI
View supervisord.sh
#!/bin/sh
# Amazon Linux AMI startup script for a supervisor instance
#
# chkconfig: 2345 80 20
# description: Autostarts supervisord.
# Source function library.
. /opt/anaconda2/etc/rc.d/init.d/functions
supervisorctl="/opt/anaconda2/bin/supervisorctl"
@amalgamatedclyde
amalgamatedclyde / supervisord-example.conf
Created Dec 5, 2016 — forked from didip/supervisord-example.conf
Example configuration file for supervisord.conf
View supervisord-example.conf
[unix_http_server]
file=/tmp/supervisor.sock ; path to your socket file
[supervisord]
logfile=/var/log/supervisord/supervisord.log ; supervisord log file
logfile_maxbytes=50MB ; maximum size of logfile before rotation
logfile_backups=10 ; number of backed up logfiles
loglevel=error ; info, debug, warn, trace
pidfile=/var/run/supervisord.pid ; pidfile location
nodaemon=false ; run supervisord as a daemon
View gist:8a7e414af20ce3d18cd2
Traceback (most recent call last):
[Tue Dec 16 02:13:18.378302 2014] [:error] [pid 7569] [remote 127.0.0.1:0] File "/opt/python/current/app/application.py", line 4, in <module>
[Tue Dec 16 02:13:18.378326 2014] [:error] [pid 7569] [remote 127.0.0.1:0] from moviepy.editor import *
[Tue Dec 16 02:13:18.378335 2014] [:error] [pid 7569] [remote 127.0.0.1:0] File "/opt/python/run/venv/lib/python2.7/site-packages/moviepy/editor.py", line 22, in <module>
[Tue Dec 16 02:13:18.378350 2014] [:error] [pid 7569] [remote 127.0.0.1:0] from .video.io.VideoFileClip import VideoFileClip
[Tue Dec 16 02:13:18.378359 2014] [:error] [pid 7569] [remote 127.0.0.1:0] File "/opt/python/run/venv/lib/python2.7/site-packages/moviepy/video/io/VideoFileClip.py", line 3, in <module>
[Tue Dec 16 02:13:18.378374 2014] [:error] [pid 7569] [remote 127.0.0.1:0] from moviepy.video.VideoClip import VideoClip
[Tue Dec 16 02:13:18.378382 2014] [:error] [pid 7569] [remote 127.0.0.1:0] File "/opt/python/run/venv/lib/python2.7/site
View gist:11348240
'''
Android GPS
-----------
'''
from plyer.facades import GPS
from plyer.platforms.android import activity
from jnius import autoclass, java_method, PythonJavaClass
Looper = autoclass('android.os.Looper')
View gist:11298436
E/LocSvc_LocAdapterBase( 583): W/virtual void loc_core::LocAdapterBase::reportPosition(UlpLocation&, GpsLocationExtended&, void*, loc_sess_status, LocPosTechMask): default implementation invoked
E/LocSvc_LocAdapterBase( 583): W/virtual void loc_core::LocAdapterBase::reportSv(GpsSvStatus&, GpsLocationExtended&, void*): default implementation invoked
E/LocSvc_LocAdapterBase( 583): W/virtual void loc_core::LocAdapterBase::reportPosition(UlpLocation&, GpsLocationExtended&, void*, loc_sess_status, LocPosTechMask): default implementation invoked
@amalgamatedclyde
amalgamatedclyde / main.py
Created Apr 14, 2014
reproduce TextInput bug
View main.py
__version__ = '0.9.0'
import kivy
from kivy.uix.textinput import TextInput
from kivy.app import App
class AutoComplete(TextInput):
def __init__(self, **kwargs):
super(AutoComplete, self).__init__(**kwargs)
self.current_cursor = (0,0)
View gist:10675510
D/Python: (16736): TextAfterCursor
I/python (16736): TEXT IS: SUBSTRING IS: 
I/python (16736): TEXT IS: SUBSTRING IS: I
I/python (16736): TEXT IS: SUBSTRING IS: N
I/python (16736): TEXT IS: SUBSTRING IS: S
I/python (16736): TEXT IS: SUBSTRING IS: E
I/python (16736): TEXT IS: SUBSTRING IS: R
I/python (16736): TEXT IS: SUBSTRING IS: T
I/python (16736): TEXT IS: SUBSTRING IS: :
I/python (16736): TEXT IS: SUBSTRING IS: h
@amalgamatedclyde
amalgamatedclyde / gist:10668650
Created Apr 14, 2014
errors from textinput on Android
View gist:10668650
I/python ( 7129): File "/home/clyde/trip_stats/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/uix/textinput.py", line 1097, in <lambda>
I/python ( 7129): File "/home/clyde/trip_stats/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/uix/textinput.py", line 1035, in _position_handles
I/python ( 7129): IndexError: list index out of range
@amalgamatedclyde
amalgamatedclyde / gist:10584955
Created Apr 13, 2014
problem with texture.o during build
View gist:10584955
------------------------------------------------------------
/home/clyde/camapp/.buildozer/venv/bin/pip run on Sun Apr 13 09:33:53 2014
Downloading/unpacking kivy
Getting page https://pypi.python.org/simple/kivy/
URLs to search for versions for kivy:
* https://pypi.python.org/simple/kivy/
Analyzing links from page https://pypi.python.org/simple/Kivy/
Found link https://pypi.python.org/packages/source/K/Kivy/Kivy-1.0.1-alpha.tar.gz#md5=3610522fce080ccf91c4ea6beb14f706 (from https://pypi.python.org/simple/Kivy/), version: 1.0.1-alpha
Found link https://pypi.python.org/packages/source/K/Kivy/Kivy-1.0.2-alpha.tar.gz#md5=779ae7b1e62195647e314d86b3a98bcd (from https://pypi.python.org/simple/Kivy/), version: 1.0.2-alpha
Found link https://pypi.python.org/packages/source/K/Kivy/Kivy-1.0.3-alpha.tar.gz#md5=dbd113ef52f7430ec92053a8f6f61588 (from https://pypi.python.org/simple/Kivy/), version: 1.0.3-alpha