Skip to content

Instantly share code, notes, and snippets.

diff --git a/socialregistration/utils.py b/socialregistration/utils.py
--- a/socialregistration/utils.py
+++ b/socialregistration/utils.py
@@ -210,7 +210,7 @@
('oauth_callback', 'http://%s%s' % (Site.objects.get_current(),
reverse(self.callback_url))),
])
- request_token_url = '%s?%s' % (self.request_token_url, params)
+ request_token_url = '%s?%s' % (self.request_token_url, urllib.quote(params))
else:
@altendky
altendky / Doxyfile
Created November 12, 2012 02:13
Trouble with Doxygen modules and custom TeX layout
# Doxyfile 1.7.6.1
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
#
# All text after a hash (#) is considered a comment and will be ignored.
# The format is:
# TAG = value [value, ...]
# For lists items can also be appended using:
# TAG += value [value, ...]
@altendky
altendky / xx-vmhgfs-f_dentry-kernel-3.19.0-15-tools-9.6.2.patch
Created May 19, 2015 13:49
xx-vmhgfs-f_dentry-kernel-3.19.0-15-tools-9.6.2.patch
diff --new-file -ur vmhgfs-only.orig/dir.c vmhgfs-only/dir.c
--- vmhgfs-only.orig/dir.c 2015-05-19 09:09:27.798505116 -0400
+++ vmhgfs-only/dir.c 2015-05-19 09:19:27.056442833 -0400
@@ -31,6 +31,7 @@
#include "compat_kernel.h"
#include "compat_slab.h"
#include "compat_mutex.h"
+#include "compat_dentry.h"
#include "cpName.h"
g++ -c -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -Wall -W -DNDEBUG -I. -I/usr/include/x86_64-linux-gnu/ -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/python3.4m -o sipqcustomplotcmodule.o sipqcustomplotcmodule.cpp
g++ -c -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -Wall -W -DNDEBUG -I. -I/usr/include/x86_64-linux-gnu/ -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/python3.4m -o sipqcustomplotQList0101QCPBars.o sipqcustomplotQList0101QCPBars.cpp
g++ -c -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -Wall
@altendky
altendky / kwargs.diff
Last active April 23, 2016 18:41 — forked from anonymous/-
diff --git a/canmatrix/canmatrix.py b/canmatrix/canmatrix.py
index 12b0eed..82eed9e 100644
--- a/canmatrix/canmatrix.py
+++ b/canmatrix/canmatrix.py
@@ -116,69 +116,47 @@ class Signal(object):
# def __init__(self, name, startbit, signalsize, is_little_endian, is_signed=False, factor=1, offset=0, min=0, max=0, unit="", receiver=[], multiplex=None):
def __init__(self, name, **kwargs):
- if 'startBit' in kwargs:
- self._startbit = int(kwargs["startBit"])
diff --git a/canmatrix/canmatrix.py b/canmatrix/canmatrix.py
index 78cda25..8199023 100644
--- a/canmatrix/canmatrix.py
+++ b/canmatrix/canmatrix.py
@@ -149,16 +149,6 @@ class Signal(object):
else:
self._offset = float(0)
- if 'min' in kwargs:
- self._min = float(kwargs["min"])
diff --git a/sunspec/core/client.py b/sunspec/core/client.py
index b2d825b..ed730d3 100644
--- a/sunspec/core/client.py
+++ b/sunspec/core/client.py
@@ -21,6 +21,7 @@
IN THE SOFTWARE.
"""
from __future__ import division
+oldstr = str
from builtins import str
commit ffbdd14134da551657d5d0f7b30729ce94498b66
Author: Kyle Altendorf <[email protected]>
Date: Tue Aug 16 10:25:29 2016 -0400
Futurized
```
pip3 install future
futurize --both-stages --no-diffs --write --nobackups .
```
commit ffbdd14134da551657d5d0f7b30729ce94498b66
Author: Kyle Altendorf <[email protected]>
Date: Tue Aug 16 10:25:29 2016 -0400
Futurized
```
pip3 install future
futurize --both-stages --no-diffs --write --nobackups .
```
commit ffbdd14134da551657d5d0f7b30729ce94498b66
Author: Kyle Altendorf <[email protected]>
Date: Tue Aug 16 10:25:29 2016 -0400
Futurized
```
pip3 install future
futurize --both-stages --no-diffs --write --nobackups .
```