I hereby claim:
- I am teodanciu on github.
- I am teodanciu (https://keybase.io/teodanciu) on keybase.
- I have a public key ASBOuwzM0VlSpyHJBhM3Rxy-pDvFp0sQL8-LYvjnSiwM_Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
"users-backup-0508": { | |
"mappings": { | |
"user": { | |
"properties": { | |
"bio": { | |
"type": "string" | |
}, | |
"createdAt": { | |
"type": "date", |
# Get aliases | |
GET http://:esHost/_aliases | |
# { | |
# "filter": { "terms": { "postId": ["dGfbX_4XQ5aq34X_PY8OTA"] } } | |
# } | |
# Create the posts index | |
PUT http://:esHost/posts-0003 |
import XMonad | |
import XMonad.Config.Gnome | |
import XMonad.Hooks.SetWMName | |
import qualified Data.Map as M | |
import Graphics.X11.Xlib | |
import Data.Ratio | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ICCCMFocus | |
import XMonad.Hooks.SetWMName |
select tags.name, tree_nodes.id from tree_nodes inner join tags on tree_nodes.tag_id = tags.id where tags.name in ( | |
'afternoon tea', | |
'byob', | |
'bar', | |
'breakfast', | |
'brunch', | |
'cafe', | |
'catering', | |
'dj (facilities)', | |
'dinner', |
{ | |
"body": [ | |
"owner": [ | |
{ | |
"id": 798 | |
}, | |
{ | |
"id": 842 | |
} | |
], |
{ | |
"body": { | |
"owner": [ { "id": 798 }, { "id": 842}], | |
"editorial": [{ "id": 747 } ] | |
} | |
} | |
{ | |
"body": [ | |
"owner": [ { "id": 798 }, { "id": 842}], |
class Test { | |
case class User(name: String, age: Int) | |
implicit val formats = Json.formats | |
implicit val validate: Validate[User] = Validate[User]() | |
implicit val read: Read.Json[User] = Read.reflect[User] | |
val json = Json.parseJObject( | |
s""" | |
|{ |
bf=linear(editorial_rating_i,20,-60) | |
bf=product(popularity_norm_d,2) | |
bf=sub(product(product(div(ratings_count_i,sum(10,ratings_count_i)),user_rating_i),14),30) | |
boost=freshness_boost | |
boost=pow(frequency_boost, 0.0) | |
bq=((node_id:783 AND NOT(editorial_rating_i:[* TO *]))^10) | |
bq=((type:event OR type:event_master OR (type:film AND release_date_tdt:[NOW/DAY-60DAY TO NOW/DAY+7DAY])) AND occurrence_dates:[NOW/DAY TO NOW/DAY+7DAY])^10 OR type:venue^5 | |
bq=(node_id:1082 AND NOT(node_id:783 OR editorial_rating_i:[* TO *]))^8 | |
bq=(sponsored_b:true AND (editorial_rating_i:4 OR (node_id:783 AND NOT editorial_rating_i:5)))^0.3333333333333333 | |
bq=(sponsored_b:true AND (editorial_rating_i:[1 TO 2]))^0.1 |
bf=linear(editorial_rating_i,20,-60) | |
bf=product(popularity_norm_d,2) | |
bf=sub(product(product(div(ratings_count_i,sum(10,ratings_count_i)),user_rating_i),14),30) | |
boost=freshness_boost | |
boost=pow(frequency_boost, 0.0) | |
bq=((node_id:783 AND NOT(editorial_rating_i:[* TO *]))^10) | |
bq=((type:event OR type:event_master OR (type:film AND release_date_tdt:[NOW/DAY-60DAY TO NOW/DAY+7DAY])) AND occurrence_dates:[NOW/DAY TO NOW/DAY+7DAY])^10 OR type:venue^5 | |
bq=(node_id:1082 AND NOT(node_id:783 OR editorial_rating_i:[* TO *]))^8 | |
bq=(sponsored_b:true AND (editorial_rating_i:4 OR (node_id:783 AND NOT editorial_rating_i:5)))^0.3333333333333333 | |
bq=(sponsored_b:true AND (editorial_rating_i:[1 TO 2]))^0.1 |