This file contains hidden or 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
eclipseClasspath { | |
defaultOutputDir = file('build/eclipse-build') | |
} |
This file contains hidden or 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
#!/usr/bin/ruby | |
#Retrieve data from MusicBrainz in JSON format and upload it to server | |
require 'rubygems' | |
require 'json' | |
require 'open-uri' | |
require 'active_support' | |
require 'net/http' | |
$KCODE = "UTF8" |
This file contains hidden or 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
_all | |
_source | |
_type | |
_uid | |
artist-credit.name-credit.artist.id | |
artist-credit.name-credit.artist.name | |
artist-credit.name-credit.artist.sort-name | |
id | |
length | |
puid-list.puid.id |
This file contains hidden or 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
{ | |
"recording-list":{ | |
"offset":0, | |
"count":243, | |
"recording":[ { | |
"score":"100", | |
"id":"1d86aa9d-21a2-4504-a668-61d488d3f251", | |
"title":"Bowie", | |
"length":162400, | |
"artist-credit":{ |
This file contains hidden or 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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'open-uri' | |
require 'nokogiri' | |
require 'net/http' | |
require 'uri' | |
require 'amazon/aws/search' | |
include Amazon::AWS |
This file contains hidden or 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
{ | |
"bool":{ | |
"must":[ | |
{ | |
"query_string":{ | |
"default_field":"content", | |
"query":"test1" | |
} | |
}, | |
{ |
This file contains hidden or 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
package org.elasticsearchtest; | |
import static org.elasticsearch.common.io.Streams.copyToStringFromClasspath; | |
import java.io.IOException; | |
import org.apache.lucene.search.Query; | |
import org.elasticsearch.common.inject.Injector; | |
import org.elasticsearch.common.inject.ModulesBuilder; | |
import org.elasticsearch.common.settings.ImmutableSettings; |
This file contains hidden or 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
package org.apache.hadoop.hbase; | |
import java.util.Map; | |
import org.apache.hadoop.conf.Configuration; | |
public class HBaseConfigurationSpringWrapper extends HBaseConfiguration { | |
public HBaseConfigurationSpringWrapper(Configuration config, | |
Map<String, String> configParams) { |
This file contains hidden or 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
<bean id="resourceStore" scope="singleton" | |
class="my.hbase.using.Webapp"> | |
<constructor-arg> | |
<bean scope="singleton" | |
class="org.apache.hadoop.hbase.HBaseConfigurationSpringWrapper"> | |
<constructor-arg> | |
<bean scope="singleton" class="org.apache.hadoop.conf.Configuration" /> | |
</constructor-arg> | |
<constructor-arg> | |
<map> |
This file contains hidden or 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
env CFLAGS="-m64" CXXFLAGS="-m64" ./configure --enable-shared | |
make | |
make check | |
make test | |
make DESTDIR=$PWD/build install |