Skip to content

Instantly share code, notes, and snippets.

@reverocean
reverocean / DYLD_LIBRARY_PATH
Created Feb 22, 2019 — forked from Brideau/DYLD_LIBRARY_PATH
Install GDAL with Java bindings on macOS High Sierra
View DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=/usr/local/opt/gdal2/lib:$DYLD_LIBRARY_PATH
View gist:5563937
public class Foo {
private int value;
private final static String constant = "Test";
private static int money = 12;
public Foo(int value){
this.value = value;
}
public void foo(){
View gist:3683064
<web-app version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd
metadata-complete="true">
<servlet>
<servlet-name>bookstore</servlet-name>
<servlet-class> org.springframework.web.servlet.DispatcherServlet
</servlet-class> <load-on-startup>1</load-on-startup>
@reverocean
reverocean / gist:2601514
Created May 5, 2012
When we run: python manage.py test, we have the following fails
View gist:2601514
======================================================================
FAIL: test_should_render_home_view (datawinners.home.tests.test_home.TestHome)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/home/tests/test_home.py", line 14, in test_should_render_home_view
self.assertEquals(response.status_code,200)
AssertionError: 404 != 200
======================================================================
FAIL: test_should_render_link_to_trial_registration (datawinners.home.tests.test_home.TestHome)
View stacktrack
ERROR: test_should_render_alldata_view_if_logged_in (datawinners.alldata.tests.test_alldata.TestAllData)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/alldata/tests/test_alldata.py", line 16, in test_should_render_alldata_view_if_logged_in
response = self.client.get('/alldata/')
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 445, in get
response = super(Client, self).get(path, data=data, **extra)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 229, in get
return self.request(**r)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
View stacktrack
Problem installing fixture '/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/fixtures/test_location_level.json': Traceback (most recent call last):
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 174, in handle
obj.save(using=using)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/serializers/base.py", line 165, in save
models.Model.save_base(self.object, using=using, raw=True)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/base.py", line 553, in save_base
result = manager._insert(values, return_id=update_pk, using=using)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/manager.py", line 195, in _insert
return insert_query(self.model, values, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-p