This file contains 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
#!/usr/bin/env python | |
try: | |
import cjson as jsonlib | |
jsonlib.dumps = jsonlib.encode | |
jsonlib.loads = jsonlib.decode | |
except ImportError: | |
try: | |
from django.utils import simplejson as jsonlib |
This file contains 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
{ | |
"amount": "81.52", | |
"beneficiary_address": "F1 Soft\nNepal", | |
"beneficiary_agent_code": "745", | |
"beneficiary_id": "0425261410", | |
"beneficiary_name": "Sumit Baskota", | |
"beneficiary_phone": "5551234", | |
"commission": "0", | |
"exchange_rate": "81.52", | |
"id_type": "O", |
This file contains 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
from haystack.views import FacetedSearchView | |
class StickyFacetedSearchView (FacetedSearchView): | |
def top_level_facets(self): | |
""" | |
When selecting a facet to drill down the results, | |
we need to keep the top level facet counts | |
""" | |
stored_query = self.request.session.get('query', None) |
This file contains 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
root /path/to/wordpress; | |
index index.php index.html; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
location / { | |
fastcgi_index index.php; | |
# if your fast-cgi is somewhere else, change this | |
fastcgi_pass 127.0.0.1:9000; |
This file contains 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta name="viewport" content="width=default-width; user-scalable=no" /> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/> | |
<title>Load WebSQL Database from text file of SQL statements;</title> | |
<style type="text/css"> | |
body, html { background-color: #444444; } |
NewerOlder