Note: This was written using elasticsearch 0.9.
Elasticsearch will automatically create an index (with basic settings and mappings) for you if you post a first document:
$ curl -X POST 'http://localhost:9200/thegame/weapons/1' -d \
'{
"_id": 1,| import android.os.Environment; | |
| import android.support.annotation.NonNull; | |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.util.concurrent.TimeUnit; |
Note: This was written using elasticsearch 0.9.
Elasticsearch will automatically create an index (with basic settings and mappings) for you if you post a first document:
$ curl -X POST 'http://localhost:9200/thegame/weapons/1' -d \
'{
"_id": 1,| on run {targetBuddyPhone, targetMessage, repeatCount} | |
| tell application "Messages" | |
| set targetService to 1st service whose service type = iMessage | |
| set targetBuddy to buddy targetBuddyPhone of targetService | |
| set myCount to repeatCount as integer | |
| repeat myCount times | |
| send targetMessage to targetBuddy | |
| end repeat | |
| end tell | |
| end run |
| #!/bin/ruby | |
| if __FILE__ == $0 | |
| vars = {} | |
| Dir.glob("**/*") do |name| | |
| if File.file? name and name =~ /\.clj$/ | |
| File.open(name,"r") do |f| | |
| content = f.read | |
| if content =~ /environ.core/ | |
| content.scan(/\(env :([a-zA-Z\-]+) ("([^\)]+)")?\)/).each do |matches| |