This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using PyCall | |
| @pyimport sys | |
| @pyimport sip | |
| # Complicated stuff | |
| api2_classes = [ | |
| "QData", "QDateTime", "QString", "QTextStream", | |
| "QTime", "QUrl", "QVariant"] | |
| for cl = api2_classes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!C:\Python2.7\python.exe | |
| # EASY-INSTALL-ENTRY-SCRIPT: 'ipython==2.1.0','console_scripts','ipython' | |
| __requires__ = 'ipython==2.1.0' | |
| import sys | |
| from pkg_resources import load_entry_point | |
| if __name__ == '__main__': | |
| sys.exit( | |
| load_entry_point('ipython==2.1.0', 'console_scripts', 'ipython')() | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| from twisted.internet import interfaces, reactor | |
| from twisted.python.runtime import platform | |
| from zope.interface import implements | |
| # Adapted from paramiko demo code | |
| # Original note: thanks to Mike Looijmans for this code | |
| class WindowsIO(object): | |
| implements(interfaces.ITransport) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.define "master", primary: true do |m| | |
| m.vm.box = "remram/debian-7-amd64" | |
| m.vm.network "private_network", ip: "10.4.8.11" | |
| m.vm.provider "virtualbox" do |v| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -e | |
| ca_conf=' | |
| [ ca ] | |
| default_ca = ca_default | |
| [ ca_default ] | |
| dir = ./ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NOPE HAHA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "metadata": { | |
| "name": "", | |
| "signature": "sha256:82b14ec273a20467370c8840073bdf9397837b301b2a1e1648900aadf100c39f" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set(what "RESULT_VARIABLE") | |
| execute_process(COMMAND echo ${what}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ echo hello | hexdump -v -e "\"\\x\" 1/1 \"%02X\"" | |
| x68x65x6Cx6Cx6Fx0A | |
| $ echo hello | hexdump -v -e "\"\\\\x\" 1/1 \"%02X\"" | |
| \\68\\65\\6C\\6C\\6F\\0A | |
| expected: \x68\x65\x6C\x6C\x6F\x0A | |
| $ echo hello | hexdump -v -e "1/1 \"\\x%02X\"" | |
| hexdump: %A: bad conversion character |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *.py[co] | |
| # Packages | |
| *.egg | |
| *.egg-info | |
| dist | |
| build | |
| eggs | |
| parts | |
| bin |