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
| ''' | |
| def to_list(a): | |
| return [a] | |
| def append(a, b): | |
| a.append(b) | |
| return a | |
| def extend(a, b): | |
| a.extend(b) | |
| return a | |
| ''' |
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
| export SPARK_HOME="/home/aritz/data/personal/proiektuak/nemDataChallenge/spark-2.2.0-bin-hadoop2.7" | |
| export PATH=$SPARK_HOME/bin:$PATH | |
| export PYSPARK_DRIVER_PYTHON=jupyter | |
| export PYSPARK_DRIVER_PYTHON_OPTS='notebook' | |
| pyspark |
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
| <#assign PortalUtil = staticUtil["com.liferay.portal.util.PortalUtil"] /> | |
| <#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()> | |
| <#assign httpServletRequest = serviceContext.getRequest()> | |
| <#if .vars['keywords']??> | |
| <#assign kWords = .vars['keywords'].getData()> | |
| <#else> | |
| <#assign kWords = ""> | |
| </#if> | |
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 net.sareweb.android.lostandfound.util; | |
| import android.accounts.Account; | |
| import android.accounts.AccountManager; | |
| import android.content.Context; | |
| import com.google.android.gms.auth.GoogleAuthUtil; | |
| /** | |
| * Created by aritz on 11/06/13. |
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
| @Click(R.id.btnShare) | |
| void clickOnBtnShare(){ | |
| Intent shareIntent = new PlusShare.Builder(this) | |
| .setType("text/plain") | |
| .setText("Testing Google+ Share!") | |
| .setContentUrl(Uri.parse("http://txootx.org/web/guest/play")) | |
| .getIntent(); | |
| startActivityForResult(shareIntent, 0); | |
| } |
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
| private boolean newVersionAvailable(){ | |
| Log.d(TAG, "Check for updates"); | |
| RestUtils.initRestTemplate(apkRestClient.getRestTemplate()); | |
| Log.d(TAG, "Remote version " + apkRestClient.getVersion()); | |
| return false; | |
| } | |
| private void update() { | |
| Log.d(TAG, "Updating apk"); | |
| String apkurl = "http://aaa/aaa.apk"; |