Skip to content

Instantly share code, notes, and snippets.

View jrabbit's full-sized avatar
🍡

J Laxson jrabbit

🍡
View GitHub Profile
<template is="dom-bind">
<iron-ajax url="/total" last-response="{{A}}total{{B}}" handle-as="json" auto></iron-ajax>
<paper-card heading="Grand Total" class="pink">
<div class="card-content">
[[total]] dead flies
</div>
<div class="card-actions">
<form is="ajax-form" action="/kill" method="POST" id="anon-form">
<paper-button id="submitButton2">I killed a fly (anonymously)</paper-button>
</form>
on host:
drwxr-xr-x 7 jack jack 4096 Aug 31 18:18 .
drwxr-xr-x 19 jack jack 4096 Aug 30 19:53 ..
drwxr-xr-x 2 jack jack 4096 Aug 30 19:53 bin
-rw-r--r-- 1 jack jack 106 Aug 30 19:53 .buildpacks
-rw-r--r-- 1 jack jack 2037 Aug 31 20:25 Dockerfile
drwxr-xr-x 2 jack jack 4096 Aug 30 19:53 docs
-rw-r--r-- 1 jack jack 189 Aug 30 19:53 .editorconfig
-rw-r--r-- 1 jack jack 253 Aug 30 19:53 .env-example
-rw-r--r-- 1 jack jack 69 Aug 31 18:18 Gemfile
✗ docker run -it --rm e3f3c26820e9
root@11136adf566a:/# source /usr/local/rvm/scripts/rvm && \
> cd /usr/src/quirell && \
> gem install bundler && bundler install
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /usr/src/quirell/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.
Fetching: bundler-1.10.6.gem (100%)
Successfully installed bundler-1.10.6
libtool: link: arm-linux-androideabi-ranlib .libs/libuuid.a
libtool: link: ( cd ".libs" && rm -f "libuuid.la" && ln -s "../libuuid.la" "libuuid.la" )
make[1]: Entering directory '/home/jack/Projects/taskandroid/.buildozer/android/platform/python-for-android/build/libuuid/libuuid-1.0.3'
/bin/mkdir -p '/home/jack/Projects/taskandroid/.buildozer/android/platform/python-for-android/build/libuuid/libuuid-1.0.3/build/lib'
/bin/mkdir -p '/home/jack/Projects/taskandroid/.buildozer/android/platform/python-for-android/build/libuuid/libuuid-1.0.3/build/lib/pkgconfig'
/bin/mkdir -p '/home/jack/Projects/taskandroid/.buildozer/android/platform/python-for-android/build/libuuid/libuuid-1.0.3/build/include/uuid'
/bin/bash ./libtool --mode=install /usr/bin/install -c libuuid.la '/home/jack/Projects/taskandroid/.buildozer/android/platform/python-for-android/build/libuuid/libuuid-1.0.3/build/lib'
/usr/bin/install -c -m 644 uuid.h '/home/jack/Projects/taskandroid/.buildozer/android/platform/python-for-android/build/libuu
diff --git a/html/tools/index.html b/html/tools/index.html
index 3852ea6..a57c574 100644
--- a/html/tools/index.html
+++ b/html/tools/index.html
@@ -316,6 +316,18 @@
<td>MIT</td>
<td>2.4.4</td>
</tr>
+ <tr>
+ <td><a href="https://pypi.python.org/pypi/taskc">taskc</a></td>
from twisted.internet import reactor
from twisted.internet.protocol import Protocol
from twisted.python import log
from twisted.internet.endpoints import SSL4ClientEndpoint, connectProtocol
from twisted.internet.ssl import ContextFactory
import transaction
s: INFO Handshake was completed
s: INFO expecting 119 bytes.
s: INFO Receiving 'XXXXclient: taskc-py 0.0.2
protocol: v1
org: Public
user: foobar
key: 730b7377-e548-4cd5-a6b4-5cdbc2696e85
type: sync
' (119 bytes)
# Taskd on docker
FROM debian:latest
MAINTAINER Jack Laxson <[email protected]>
#Depends: libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libgnutls-deb0-28 (>= 3.3.0), libstdc++6 (>= 4.9), libuuid1 (>= 2.16)
RUN apt-get update && apt-get install -y libc6 libgcc1 libgnutls-deb0-28 libstdc++6 libuuid1 init-system-helpers
#Technically optional
# gnutls for cert gen unless you want to hand install them for clients
RUN apt-get install -y gnutls-bin
@jrabbit
jrabbit / yolo.opml
Created April 26, 2015 02:51
yolo (testing opml for hitman.py
<opml version="1.0">
<body>
<outline text="Democracy Now! Video" xmlUrl="http://www.democracynow.org/podcast-video.xml" type="rss" />
<outline text="HUMORLESS QUEERS" xmlUrl="http://humorlessqueers.com/feed" type="rss" />
<outline text="The Changelog" xmlUrl="http://feeds.5by5.tv/changelog" type="rss" />
</body>
</opml>
class PaperEmailInput(EmailInput):
def render(self, name, value, attrs=None):
if value is None:
html = """<paper-input-decorator label='{0}' floatingLabel autoValidate>
<input is="core-input" name="{1}" type="email">
</paper-input-decorator>"""
if 'label' in attrs:
print "Hello"
return format_html(html, attrs['label'], name)
else: