const myIndex = apiClient.initIndex('contacts');
myIndex
.addObject({
firstname: 'James',
lastname: 'Raynor',
company: 'Jimmy & Sarah's Cafe'
})
.then(content => console.log(content))
.catch(err => console.error(err));
describe('When there are no videos', () => {
it('the videos container should be empty', () => {
browser.url('/');
assert.equal(browser.getText('#vid-wrapper'), '');
});
});
myIndex = apiClient.init_index("contacts")
myIndex.add_object({"firstname": "James",
"lastname": "Raynor",
"company": "Jimmy & Sarah's Cafe"})
my_index = Searchgem::Index.new('contacts')
my_index.add_object :firstname => "James",
:lastname => "Raynor",
:company => "Jimmy & Sarah's Cafe"
Index myIndex = apiClient.InitIndex("contacts");
var jsonObject = new JObject();
jsonObject.Add("firstname", "James");
jsonObject.Add("lastname", "Raynor");
jsonObject.Add("company", "California Paint");
myIndex.AddObject(jsonObject);
daily_players AS (
SELECT
date(created_at) AS dt,
count(DISTINCT user_id) AS players
FROM gameplays
GROUP BY 1
)
query Hero($episode: Episode, $withFriends: Boolean!) {
hero(episode: $episode) {
name
friends @include(if: $withFriends) {
name
}
}
}
<div id="search"></div>
<div id="hits"></div>
<script>
const { searchBox, hits } = instantsearch.widgets;
search.addWidget(searchBox({ container: "#search" }));
search.addWidget(hits({ container: "#hits" }));
search.start();
</script>
using UnityEngine;
public class DestroyBasic : MonoBehaviour
{
void Update()
{
if(Input.GetKey(KeyCode.Space))
{
Destroy(gameObject);
}
}
}
<ais-index>
<ais-search-box />
<ais-results>
<template scope="{ result }">
<h2>{{ result.name }}</h2>
<p>{{ result.description }}</p>
</template>
</ais-results>
<ais-refinement-list attributeName="company" />
<ais-pagination />
</ais-index>
const App = (
<InstantSearch>
<SearchBox />
<Results />
<Pagination />
<RefinementList
attribute="company"
/>
</InstantSearch>
);
@Component({
selector: 'search-ui',
template: `
<input type="search" (input)="search()">
<div *ngFor="let result of results">
{{result.title | highlight}}
</div>
`
})
export mysearch(App);
<div id="chart"></div>
<script>
d3.select('#chart')
.selectAll("div")
.data([1, 4, 8, 14, 15, 38, 42])
.enter()
.append("div")
.style("height", (d) => d + "px")
</script>
$total: 10;
$step: 360deg / $total;
.ray {
height: 30px;
}
@for $i from 1 through $total {
.ray:nth-child(#{$i}) {
background: adjust-hue(blue, $i * $step);
}
}