Forked from Richard Bray's Pen CSS3 hover text animate in div.
A Pen by Anonasaurus Rex on CodePen.
<style> | |
#browser { padding: 20px; } | |
img { width: 100px; height: 100px; float: left; } | |
</style> | |
<h1>THE CATS</h1> | |
<button>Pls give me a cat</button> | |
<div id="cats"></div> |
package main | |
import ( | |
"code.google.com/p/go-tour/wc" | |
"strings" | |
) | |
func WordCount(s string) map[string]int { | |
stringList := strings.Fields(s) | |
wordCount := make(map[string]int) |
from functools import wraps | |
from flask import request, current_app | |
def support_jsonp(f): | |
"""Wraps JSONified output for JSONP""" | |
@wraps(f) | |
def decorated_function(*args, **kwargs): | |
callback = request.args.get('callback', False) | |
if callback: | |
content = str(callback) + '(' + str(f().data) + ')' |
Forked from Richard Bray's Pen CSS3 hover text animate in div.
A Pen by Anonasaurus Rex on CodePen.
# Create an index: | |
# | |
curl -XDELETE 'http://127.0.0.1:9200/articles' | |
curl -XPUT 'http://127.0.0.1:9200/articles' -d ' | |
index : | |
number_of_shards : 1 | |
' | |
# Insert the action mapping: | |
# |
# Create an index: | |
# | |
curl -XDELETE 'http://127.0.0.1:9200/articles' | |
curl -XPUT 'http://127.0.0.1:9200/articles' | |
# Insert the action mapping, as a child of articles: | |
# | |
curl -XPUT 'http://127.0.0.1:9200/articles/article/_mapping' -d ' | |
{ | |
"article": { |
# Create an index: | |
# | |
curl -XDELETE 'http://127.0.0.1:9200/articles' | |
curl -XPUT 'http://127.0.0.1:9200/articles' | |
# Insert the action mapping, as a child of articles: | |
# | |
curl -XPUT 'http://127.0.0.1:9200/articles/article/_mapping' -d ' | |
{ | |
"article": { |