View wordpress.php
// get plugin name
$plugin = plugin_basename( __FILE__ );
View labur.js
jQuery(document).ready(function($) {
jQuery("#button_labur_get_url").click(function(){
var url = document.location.protocol+'//'+document.location.host+'/aldakurnet/wp-admin/admin-ajax.php';
jQuery.ajax({
type: 'POST',
url: url,
dataType: 'text',
data: {
postID: MyAjax.post_id, // PHP-tik
View laburURL.sh
curl --request GET 'https://labur.eus/api/v2/action/shorten?key=YOUR_API_KEYd&url=URL_YOU_WANT_TO_SHORTEN&is_secret=false'; echo '\n'
View laburURL.py
import requests
res = requests.get('https://labur.eus/api/v2/action/shorten?key=YOUR_API_KEYd&url=URL_YOU_WANT_TO_SHORTEN&is_secret=false')
shortened_url = res.text
print shortened_url
View ChangeTextViewSizeWithAsyncActivity.java
package service.webservice.facilito.codigo.com.ejemplocfwebservices;
import android.content.Intent;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
View TaskInParallelModeExample.java
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.view.View;
import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.TextView;
import java.util.ArrayList;
View PorgressBarExample.java
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.view.View;
import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.TextView;
public class PorgressBarExample extends AppCompatActivity {
View ThreadChangesInterface.java
// [EU] Hari berdinean (app-aren hari nagusia) interfaze aldaketa burutzeko. Kasu honetan
// TextView baten aldaketa
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
View ThreadSleepyhead.java
// [ES] Hilo dormilón
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class ThreadSleepyhead extends AppCompatActivity {
View ThreadSleepyheadIndependentClass.java
// [ES] Hilo dormilón
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class ThreadSleepyheadIndependentClass extends AppCompatActivity {