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
/* | |
* author Huber Flores | |
*/ | |
#This is a set of instruction to utilize the code offloading converter at https://github.com/huberflores/CodeOffloadingAnnotations.git | |
1) Clone the repository and built the tool using mvn install | |
2) Create an Android project with the code to offload. Annotated the required method to offload with "@Cloud" | |
for example |
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
/* | |
* author Huber Flores | |
*/ | |
Android-maven development environment. | |
-Requirements | |
1) Eclipse Juno with Eclipse Market Place | |
Help -> EclipseMarketPlace, |
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
#!/bin/sh | |
#This wrapper works with our Dalvik x86 image running in Amazon | |
#Please contact at huber AT ut DOT ee for granting access to the image | |
# base directory, at top of source tree; replace with absolute path | |
base=`pwd` | |
root=$base/out/host/linux-x86 | |
export ANDROID_ROOT=$root |
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 symlab.ust.hk.abstract.profiler; | |
import java.lang.reflect.Method; | |
import java.util.Random; | |
/* | |
* author Huber Flores | |
*/ |
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
import java.util.*; | |
/* | |
* @author Huber Flores | |
*/ | |
public class RandomDemo { | |
public static void main( String args[] ){ | |
Random randomNo= new Random(); | |
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
# | |
# @author Huber Flores | |
# source: http://electronicsclub.info/power.htm | |
# | |
#Calculate energy consumed from power | |
The amount of energy used depends on the power and the time: | |
<Energy = Power × Time> |
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
# | |
# author Huber Flores | |
# | |
Go to: https://code.google.com/apis/console/ | |
###Server | |
- API access |
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 ee.ut.cs.mc.exercise; | |
public class NQueens { | |
static int[] x; | |
public NQueens(int N) { | |
x = new int[N]; | |
} | |
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
# | |
# author Huber Flores | |
# | |
#Instructions to Uninstall in Linux (Debian) | |
#use the utility "purge" | |
#Example |
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 ee.ut.cs.mc.example; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.ObjectOutputStream; | |
import java.io.Serializable; | |
import java.math.BigInteger; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.util.Random; |
OlderNewer