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
# AppScale | |
# | |
# VERSION 0.0.1 | |
# Based on the file of Chris Bunch <chris@appscale.com> @ http://www.appscale.com/blog/2013/10/30/appscale-on-docker/ | |
FROM ubuntu | |
MAINTAINER Jose Angel Espinoza Portillo <jose@ngel.es | |
# First, update the apt-get | |
RUN apt-get update |
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
var domain = ""; | |
//var domain = "http://secure.tok3n.com"; | |
/* | |
Tok3n Core | |
*/ | |
//Get a session/transaction ID for this atempt of ussage of the API. Very important for security reasons. | |
function getSessionId(publicKey,userKey){ |
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
load data local infile 'uniq.csv' into table tblUniq fields terminated by ',' | |
enclosed by '"' | |
lines terminated by '\n' | |
(uniqName, uniqCity, uniqComments) |
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 com.asynctaskdemo; | |
import android.app.Activity; | |
import android.os.AsyncTask; | |
import android.os.Bundle; | |
import android.os.SystemClock; | |
import android.util.Log; | |
import android.view.View; | |
import android.view.View.OnClickListener; | |
import android.widget.Button; |
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
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
This example code is in the public domain. | |
*/ | |
void setup() { | |
// initialize the digital pin as an output. | |
// Pin 13 has an LED connected on most Arduino boards: |
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 T2 { | |
public static void main(String arg[]){ | |
double acum = 0; | |
for (int n = 1;n<=10;n++){ | |
acum+=factorial(n)/nALaN(n,n); | |
} | |
System.out.print(acum); | |
} | |
public static Long factorial(int i){ | |
if (i==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
public class T1 { | |
public static void main(String [ ] args){ | |
double acum = 0; | |
for (int n = 1;n<=100;n++){ | |
acum+=1/Math.sqrt(n); | |
} | |
System.out.print(acum); | |
} | |
} |
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
browser.loadData("<html><body>Hello, world!</body></html>", "text/html", "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
<uses-permission android:name="android.permission.INTERNET" /> |
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
// AndroidManifest.xml must have the following permission: | |
// <uses-permission | |
// android:name="android.permission.ACCESS_FINE_LOCATION"/> | |
LocationManager locationManager = | |
(LocationManager) getSystemService(Context.LOCATION_SERVICE); | |
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, | |
0, new LocationListener() { | |
public void onStatusChanged(String provider, int status, | |
Bundle extras) { | |
// called when the provider status changes. Possible |
OlderNewer