A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
Alias /javascript /usr/share/javascript/ | |
<Directory "/usr/share/javascript/"> | |
Options FollowSymLinks MultiViews | |
</Directory> |
(devpi)graingert@adhominem:~/projects/djangosaml2$ tox | |
GLOB sdist-make: /home/graingert/projects/djangosaml2/setup.py | |
py26-dj13 inst-nodeps: /home/graingert/projects/djangosaml2/.tox/dist/djangosaml2-0.11.0.zip | |
py26-dj13 runtests: PYTHONHASHSEED='1754004049' | |
py26-dj13 runtests: commands[0] | python tests/run_tests.py | |
Creating test database for alias 'default'... | |
.Login process started | |
spentityid: http://sp.example.com/saml2/metadata/ | |
service_url: http://sp.example.com/saml2/acs/ | |
my_name: Test SP |
$ python | |
Python 2.7.6 (default, Mar 22 2014, 22:59:56) | |
[GCC 4.8.2] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> print u"£" | |
£ | |
>>> import pdb; pdb.set_trace() | |
--Return-- | |
> <stdin>(1)<module>()->None | |
(Pdb) print u"£" |
No. Time Source Destination Protocol Length Info | |
1113 76.387428000 52.10.35.87 192.168.1.152 TLSv1.2 1293 Server Hello, Certificate, Server Key Exchange, Server Hello Done | |
Frame 1113: 1293 bytes on wire (10344 bits), 1293 bytes captured (10344 bits) on interface 0 | |
Interface id: 0 (any) | |
Encapsulation type: Linux cooked-mode capture (25) | |
Arrival Time: Aug 24, 2015 20:31:14.065002000 BST | |
[Time shift for this packet: 0.000000000 seconds] | |
Epoch Time: 1440444674.065002000 seconds | |
[Time delta from previous captured frame: 0.198376000 seconds] |
class Foo | |
def handle(obj) | |
yield obj | |
end | |
end | |
class Bar < Foo | |
def handle(obj) | |
super { | a | yield a.downcase } | |
end |
function dataURItoBlob(dataURI) { | |
// convert base64 to raw binary data held in a string | |
var byteString = atob(dataURI.split(',')[1]); | |
// separate out the mime component | |
var mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0]; | |
// write the bytes of the string to an ArrayBuffer | |
var arrayBuffer = new ArrayBuffer(byteString.length); | |
var _ia = new Uint8Array(arrayBuffer); |
/** | |
* Sample of serverside generation of Highcharts using an extension to jsdom in node.js. | |
* | |
* Usage: | |
* npm install jsdom | |
* npm install highcharts | |
* node highcharts-jsdom | |
*/ | |
/* eslint-env node */ |
I hereby claim:
To claim this, I am signing this object:
The MIT License (MIT) | |
Copyright (c) 2017 Thomas Grainger. | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |