Skip to content

Instantly share code, notes, and snippets.

View pyexpect.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View keybase.md

Keybase proof

I hereby claim:

  • I am dwt on github.
  • I am dwt (https://keybase.io/dwt) on keybase.
  • I have a public key ASD88WOXhGIVzeLR5SBqiWXkkmwdJwtAwjRPOEE7MeeNsQo

To claim this, I am signing this object:

View visit_with_anchor.rb
CHROMEDRIVER_PATH = '/Users/dwt/.virtualenvs/yeepa/bin/chromedriver'
CHROME_PATH = '/Users/dwt/Applications/Network/Browser/Google Chrome.app/Contents/MacOS/Google Chrome'
def selenium()
require 'capybara'
require 'capybara/dsl'
require 'selenium-webdriver'
Capybara.register_driver :chrome do |app|
Selenium::WebDriver::Chrome.driver_path = CHROMEDRIVER_PATH
@dwt
dwt / # cracklib - 2018-01-16_14-26-12.txt
Created Jan 16, 2018
cracklib on macOS 10.13.2 - Homebrew build logs
View # cracklib - 2018-01-16_14-26-12.txt
Homebrew build logs for cracklib on macOS 10.13.2
Build date: 2018-01-16 14:26:12
@dwt
dwt / .kermit-vocore.conf
Created Dec 31, 2017
Connect to Vocore v2 via Kermit
View .kermit-vocore.conf
set line /dev/tty.usbmodem_____1
set speed 115200
set stop-bits 1
set parity none
set carrier-watch off
connect
# Escape character: Ctrl-\
@dwt
dwt / gist:3ab3489cbed83f9aa789
Created Jul 14, 2015
Ansible bug in variable resolution order
View traceback
2015-07-03T10:04:22.855073+00:00 app[web.1]: Internal Server Error: /admin/process/processstep/2/
2015-07-03T10:04:22.855079+00:00 app[web.1]: Traceback (most recent call last):
2015-07-03T10:04:22.855081+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 164, in get_response
2015-07-03T10:04:22.855083+00:00 app[web.1]: response = response.render()
2015-07-03T10:04:22.855085+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/template/response.py", line 158, in render
2015-07-03T10:04:22.855086+00:00 app[web.1]: self.content = self.rendered_content
2015-07-03T10:04:22.855088+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/template/response.py", line 135, in rendered_content
2015-07-03T10:04:22.855090+00:00 app[web.1]: content = template.render(context, self._request)
2015-07-03T10:04:22.855092+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/templ
View gist:e8fc9f8e0a4859d2eef8
typedef struct color {
byte r,g,b;
} color;
// if I delete the word 'struct' from the following line - the programm doesn't compile anymore
void writeToDiode(struct color aColor) {
}
void setup() {
}
View deform_reduction.py
#!/usr/bin/env python
import colander
import deform
from deform.widget import TextAreaWidget, SequenceWidget
class AnswerEditSchema(colander.Schema):
answer_title = colander.SchemaNode(
View deform_reduction.py
#!/usr/bin/env python
import colander
import deform
from deform.widget import TextAreaWidget, SequenceWidget
class AnswerEditSchema(colander.Schema):
title = colander.SchemaNode(