This file contains 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
stagepush() { | |
local current_branch=`git rev-parse --abbrev-ref HEAD` | |
git checkout staging | |
git pull | |
git merge $current_branch -m 'Merged into staging' |
This file contains 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
class JobSearch | |
class << self | |
def create_index | |
Tire.index self.to_s.downcase do | |
delete | |
create mappings: { | |
job: { | |
properties: { | |
id: { type: 'string', index: 'not_analyzed', include_in_all: false}, |
This file contains 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.elasticsearch.index.similarity; | |
import org.apache.lucene.search.similarities.TFIDFSimilarity; | |
import org.apache.lucene.index.FieldInvertState; | |
import org.apache.lucene.util.BytesRef; | |
/** | |
* Custom similarity class | |
* | |
* @author tanguy |
This file contains 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
#include <opencv.hpp> | |
int main () | |
{ | |
// Open the file. | |
cv::Mat image; | |
image = cv::imread("Img01.jpg"); | |
if (!image.data) | |
{ | |
printf("Error: Couldn't open the image file.\n"); | |
return 1; |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="horizontal" > | |
<fragment | |
android:id="@+id/searchparamsFragment" | |
android:name="android.support.v4.app.ListFragment" | |
android:layout_width="0dp" |