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"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.growthlink" > | |
<uses-permission android:name="android.permission.INTERNET"/> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" |
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
public class RefReceiver extends BroadcastReceiver { | |
@Override | |
public void onReceive(Context context, Intent intent) { | |
String encodedInstallReferrer = intent.getStringExtra("referrer"); | |
String installReferrer = ""; | |
if (encodedInstallReferrer != null) { | |
try { | |
installReferrer = URLDecoder.decode(encodedInstallReferrer, "utf-8"); |
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
public class MainActivity extends ActionBarActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
if (getIntent().getData() != null) { | |
Log.d("GrowthLink", getIntent().getData().getQueryParameter("referrer")); | |
String query = getIntent().getData().getQueryParameter("referrer"); | |
String clickId = null; |
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
def calc_score(str1,str2) | |
vector = [] | |
vector1 = [] | |
vector2 = [] | |
frag_vector1 = [] | |
frag_vector2 = [] | |
node1 = MeCab::Tagger.new.parseToNode(str1) | |
node2 = MeCab::Tagger.new.parseToNode(str2) | |