Skip to content

Instantly share code, notes, and snippets.

Avatar
🇨🇭
Working from home

Philip Sahli philipsahli

🇨🇭
Working from home
View GitHub Profile
View Mongoblog
```python
import findspark
findspark.init("/usr/local/Cellar/apache-spark/2.2.1/libexec/")
```
```python
sc
@philipsahli
philipsahli / Imaging-1.1.7_setup.patch
Created Oct 12, 2011
Imaging installation under ubuntu needs a patch
View Imaging-1.1.7_setup.patch
# Usage:
# wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz
# tar -zxvf Imaging-1.1.7.tar.gz
# cd Imaging-1.1.7
# patch -p1 -i ../patch
# # continue with installation
Only in Imaging-1.1.7-patched: build
Only in Imaging-1.1.7-patched: patch
diff -crB Imaging-1.1.7/setup.py Imaging-1.1.7-patched/setup.py
@philipsahli
philipsahli / tests.py
Created Oct 5, 2011
XML Webservice in Django for Debugging
View tests.py
from django.test import TestCase
from django.test.client import Client
import logging
logging.disable("debug")
class XMLWebserviceTest(TestCase):
c = Client()
def setUp(self):
You can’t perform that action at this time.