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
import React from 'react'; | |
class App extends React.Component { | |
constructor() { | |
this.state = { | |
users: [ | |
{ id: 1, name: 'Cory' }, | |
{ id: 2, name: 'Meg' } | |
] | |
}; |
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
require 'coffee-rails' | |
require 'fileutils' | |
class JsBuilder | |
def initialize(base_directory:, bin_folder: 'bin', lib_directory: File.join(base_directory, 'lib'), rebuild: false) | |
@base_directory = base_directory | |
@lib_directory = lib_directory | |
@bin_folder = bin_folder | |
@rebuild = rebuild |
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
{ | |
"Stops": [ | |
{ | |
"MustFollowLocationId": 0, | |
"MappingMethod": null, | |
"MappingPlaceName": null, | |
"PickupSequence": null, | |
"DeliverySequence": null, | |
"StopSequence": null, | |
"IsStore": true, |
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
> curl -XGET localhost:9200/_percolator/test3/percwild | |
> {"_index":"_percolator","_type":"test3","_id":"percwild","_version":2, "_source" : {"query":{"bool":{"should":[],"must":[{"wildcard":{"EmailSubject":{"value":"*txtag*"}}}],"must_not":[{"field":{"Trashed":{"query":true}}}]}}}} | |
> curl -XGET localhost:9200/test3/type1/_percolate -d' | |
{"doc":{"EmailSubject":"TxTAG Activity Statement Too", "Trashed":false}}' | |
> {"ok":true,"matches":["percwild"]} | |
> curl -XGET localhost:9200/_percolator/9494a77d-04a4-4e19-8b7f-4eea5cdf27d6/d52e6ff7-6239-4f0e-b25c-9ef500ae3abf |
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
curl -XPUT localhost:9200/test -d' | |
> {"settings":{"index":{"number_of_shards":3, "number_of_replicas":2}}} | |
{"ok":true,"acknowledged":true} | |
curl -XPUT localhost:9200/test/tweet/_mapping -d' | |
> { | |
> "tweet" : { | |
> "properties" : { | |
> "message" : {"type" : "string", "store" : "yes"} | |
> } |
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
curl -XPUT localhost:9200/test/test/1?pretty=true -d' | |
{"Content": "foo bar"}' | |
{ | |
"ok" : true, | |
"_index" : "test", | |
"_type" : "test", | |
"_id" : "1", | |
"_version" : 1 | |
} |