These are field notes gathered during installation of website search facility for the ElasticSearch website.
You may re-use it to put a similar system in place.
The following assumes:
gophone = function() { | |
var generateQuery, query, queryString, searchColumns, url, val; | |
val = document.getElementById("val_e").value.replace(/\D/g,''); | |
queryString = void 0; | |
url = void 0; | |
searchColumns = "583.587.528.531.754.685.571.564.565.570.529.530.684.574.566.531".split("."); | |
generateQuery = function(str) { | |
return "{'" + str + "'.CT.'" + val + "'}"; | |
}; | |
query = searchColumns.map(generateQuery).join("OR"); |
var listToGet = [{ | |
url: 'https://example.quickbase.com/db/dbid?a=q&qid=##', | |
name: 'jobs' | |
}, | |
{ | |
url: 'https://example.quickbase.com/db/dbid?a=q&qid=##', | |
name: 'messages', | |
}] | |
def get_color_choices(rid): | |
r_server = redis.Redis('localhost') | |
order_items = r_server.smembers('orderitems:%s' % rid) | |
roofing_brand = '' | |
for o in order_items: | |
c = json.loads(o) | |
if c['94'] == '1' and c['19'] == '1': | |
roofing_brand = c['22'] | |
break | |
key = 'colors:%s' % (roofing_brand) |
class ContractWizard(SessionWizardView): | |
def get_template_names(self): | |
return [TEMPLATES[self.steps.current]] | |
def get_form_kwargs(self, step): | |
kwargs = super(ContractWizard, self).get_form_kwargs(step) |
Vagrantfile | |
```ruby | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "raring" | |
config.vm.box_url = 'http://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-amd64-vagrant-disk1.box' |
These are field notes gathered during installation of website search facility for the ElasticSearch website.
You may re-use it to put a similar system in place.
The following assumes:
""" | |
Python 3.5.2 (default, Dec 17 2016, 20:19:49) | |
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import threading | |
>>> import copy | |
>>> x = threading.local() | |
>>> x.a = 1 | |
>>> y = copy.deepcopy(x) | |
>>> y.a |
<?xml version="1.0" encoding="utf-8"?><testsuite errors="0" failures="0" name="pytest" skips="0" tests="470" time="50.830"><testcase classname="tests.test_hooks" file="tests/test_hooks.py" line="11" name="test_hooks[hooks_list0-ata]" time="0.000707149505615"></testcase><testcase classname="tests.test_hooks" file="tests/test_hooks.py" line="11" name="test_hooks[hooks_list1-ta]" time="0.000586032867432"></testcase><testcase classname="tests.test_hooks" file="tests/test_hooks.py" line="21" name="test_default_hooks" time="0.000357151031494"></testcase><testcase classname="tests.test_lowlevel" file="tests/test_lowlevel.py" line="12" name="test_chunked_upload" time="0.517649888992"></testcase><testcase classname="tests.test_lowlevel" file="tests/test_lowlevel.py" line="27" name="test_digestauth_401_count_reset_on_redirect" time="2.01818013191"></testcase><testcase classname="tests.test_lowlevel" file="tests/test_lowlevel.py" line="92" name="test_digestauth_401_only_sent_once" time="1.01179909706"></testcase><testca |
from virgil_sdk.cards import card_manager | |
class CardManager(card_manager.CardManager): | |
# THIS IS A DIRECT COPY OF THE VIRGIL CardManager, just copied here to explain the issue | |
def search_card(self, identity): | |
# THIS IS A DIRECT COPY OF THE original method (without docs), just copied here to explain the issue | |
if not identity: |
I hereby claim:
To claim this, I am signing this object: