Skip to content

Instantly share code, notes, and snippets.

View amalgamatedclyde's full-sized avatar

Clyde Tressler amalgamatedclyde

View GitHub Profile
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 December 10, 2016 14:57 — forked from mhayes/supervisord.sh
init.d for supervisord for Amazon Linux AMI
#!/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 December 5, 2016 22:29 — forked from didip/supervisord-example.conf
Example configuration file for supervisord.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
@amalgamatedclyde
amalgamatedclyde / gist:8257202
Created January 4, 2014 16:41
if i add the gridlayout directly to the scrollview instead of adding it to the relative layout the scroll works
import kivy
from kivy.lang import Builder
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.anchorlayout import AnchorLayout
from kivy.uix.relativelayout import RelativeLayout
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.image import Image
from kivy.uix.button import Button
@amalgamatedclyde
amalgamatedclyde / gist:8185603
Created December 30, 2013 18:12
atlas fails at 50596px but succeeds at 36400
[INFO ] Logger: Record log in /home/clyde/.kivy/logs/kivy_13-12-30_14.txt
[INFO ] Kivy v1.8.0-dev
[INFO ] Atlas: create an 50596x50596 rgba image
[WARNING ] stderr: Traceback (most recent call last):
[WARNING ] stderr: File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
[WARNING ] stderr: "__main__", fname, loader, pkg_name)
[WARNING ] stderr: File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
[WARNING ] stderr: exec code in run_globals
[WARNING ] stderr: File "/usr/lib/python2.7/dist-packages/kivy/atlas.py", line 388, in <module>
[WARNING ] stderr: ret = Atlas.create(outname, filenames, size, use_path=use_path)
@amalgamatedclyde
amalgamatedclyde / gist:8163247
Created December 28, 2013 19:35
i did not write this code. it was a demo posted somewhere
import kivy
kivy.require('1.8.0')
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.uix.camera import Camera
from kivy.uix.button import Button
from kivy.core.window import Window
class MyApp(App):
@amalgamatedclyde
amalgamatedclyde / gist:7894289
Created December 10, 2013 17:12
here is an example
mylistobj.adapter = ListAdapter(data= sorted([item[0]+','+ item[1] for item in missing]), args_converter= args_conv, cls= ListItemButton)
I/python (14371): File "/home/clyde/buildozer/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/uix/textinput.py", line 1009, in on_focus
I/python (14371): File "/home/clyde/buildozer/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/core/window/window_pygame.py", line 378, in request_keyboard
I/python (14371): File "_android.pyx", line 190, in android._android.show_keyboard (android/_android.c:2286)
I/python (14371): TypeError: show_keyboard() takes exactly 2 positional arguments (0 given)
I/python (14371): Python for android ended.
I/AndroidRuntime(14371): VM exiting with result code 0, cleanup skipped.
clyde@clyde-N55SF:/home/kivy$ sudo make
python setup.py build_ext --inplace
[INFO ] Kivy v1.8.0-dev
Found GLES 2.0 headers at /usr/include/GLES2/gl2.h
running build_ext
Build configuration is:
* use_opengl_es2 = True
* use_sdl = False
* use_glew = False
* use_rpi = False
# Install distribute
# Run 'curl http://python-distribute.org/distribute_setup.py | venv/bin/python'
# Cwd /home/clyde/buildozer/.buildozer
/bin/sh: 1: curl: not found
# Install requirement datetime in virtualenv
# Run 'pip-2.7 install --download-cache=/home/clyde/.buildozer/cache --target=/home/clyde/buildozer/.buildozer/applibs datetime'
# Cwd /home/clyde/buildozer/.buildozer
Traceback (most recent call last):
File "/home/clyde/buildozer/.buildozer/venv/bin/pip-2.7", line 5, in <module>
from pkg_resources import load_entry_point