Skip to content

Instantly share code, notes, and snippets.

View madebydna's full-sized avatar
🏠
Working from home

Andrea Singh madebydna

🏠
Working from home
  • Ad Hoc, LLC
  • CA
  • 12:27 (UTC -07:00)
View GitHub Profile
@softwaredoug
softwaredoug / es_syn.txt
Last active January 18, 2024 15:56
Synyomyms in Elasticsearch
DELETE syntest
PUT syntest
{
"mappings": {
"article": {
"properties": {
"text": {
"type": "string",
"analyzer": "syn_text"
}
@smartinm
smartinm / html_capybara.rb
Created October 26, 2015 11:40
How to print HTML of elements in Capybara
element = page.find("div.example")
p element.native.attribute('outerHTML')
@mbostock
mbostock / README.md
Last active June 7, 2023 18:33
Underscore’s Equivalents in D3

Collections

each(array)

Underscore example:

_.each([1, 2, 3], function(num) { alert(num); });