Skip to content

Instantly share code, notes, and snippets.

---
total_records: 36
keywords:
-
id: 1
position: null
name: "blue"
total: 1
people:
-
{
"page": 0,
"search": {
"_all": "",
"sort": {},
"date_range": {
"gt": "2000/01/01",
"lt": "2020/01/01"
},
"event_id": "",
---
total_records: 1
keywords:
-
id: 2
position: null
name: "green"
total: 1
-
id: 3
---
id: 1
name: "LET'S PANIC ISSUE 02 LAUNCH DINNER"
image: "BFA_1_1.jpg"
event_id: 1
created_at: "2015-06-16T19:34:43.000Z"
is_visible: true
img:
thumb: "http://dev-photos.bfa.com/uploads/thumb_BFA_1_1.jpg"
thumb_rollover: "http://dev-photos.bfa.com/uploads/thumb_rollover_BFA_1_1.jpg"
/* EVENTS */
{ id: 6,
name: 'Some test record',
photos:
[ { people_names: ["John", "Mike"], people_ids: [1, 2] },
{ people_names: ["John", "Henry"], people_ids: [1, 3] } ] }
{ id: 7,
name: 'Some test record',
photos:
/* EVENTS */
{ id: 6,
name: 'Some test record',
photos:
[ { people_names: ["John", "Mike"], people_ids: [1, 2] },
{ people_names: ["John", "Henry"], people_ids: [1, 3] } ] }
{ id: 7,
name: 'Some test record',
photos:
var EventThumb = React.createClass({
propTypes: {
title: React.PropTypes.string
},
render: function() {
return (
<div className='span3'>
HELLOWORLD
</div>
{"id"=>"evt_675Gm9Bc2MAsOo", "created"=>1429821533, "livemode"=>false, "type"=>"invoiceitem.updated", "data"=>{"object"=>{"object"=>"invoiceitem", "id"=>"ii_675G4vsbfszHQN", "date"=>1429821518, "amount"=>0, "livemode"=>false, "proration"=>false, "currency"=>"usd", "customer"=>"cus_66cj9kVxwsR9SK", "discountable"=>true, "description"=>"test", "metadata"=>{}, "invoice"=>"in_675Go7Rk4MkxfR", "subscription"=>"sub_66cjqxSffN4bKP", "quantity"=>nil, "plan"=>nil, "period"=>{"start"=>1429821518, "end"=>1429821518}}, "previous_attributes"=>{"invoice"=>nil}}, "object"=>"event", "pending_webhooks"=>1, "request"=>"iar_675GkDAqxtzezR", "api_version"=>"2015-04-07", "user_id"=>"acct_0hOZyh81dBQDyYrRuodi", "action"=>"stripe_webhooks", "controller"=>"application", "application"=>{"id"=>"evt_675Gm9Bc2MAsOo", "created"=>1429821533, "livemode"=>false, "type"=>"invoiceitem.updated", "data"=>{"object"=>{"object"=>"invoiceitem", "id"=>"ii_675G4vsbfszHQN", "date"=>1429821518, "amount"=>0, "livemode"=>false, "proration"=>false, "curre
:javascript
$( document ).ready(function() {
$("#donor_user_firstname").val("foo");
$("#donor_user_lastname").val("foo");
$("#donor_user_address").val("foo");
$("#donor_user_zip").val(12345);
$("#donor_user_city").val("Brooklyn");
$("#donor_user_state").val("New York");
$("#donor_user_email").val("fake_" + Math.random().toString(36).substring(7) + "@gmail.com");
$("#donor_user_phone").val("555-555-5555");
(defn matcher-func [a b]
(if (re-find (re-matcher (re-pattern (clojure.string/lower-case b)
) (clojure.string/lower-case a)))
true
false))
(def my-rules
'[
[(matchCaption ?p ?input)[?p :photo/caption ?fe][(blakbox.event/matcher-func ?fe ?input)]]
[(fuzzyFind ?p ?input)[?p :photo/caption ?fe][(blakbox.event/matcher-func ?fe ?input)]]