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 | |
# | |
#To upload files to remote server | |
$ scp -i /home/huber/Desktop/TechnicalInformation/HuberFlores/Ireland/pk-huber_flores.pem -r /home/huber/Desktop/code.zip ubuntu@ec2-xxx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com:/home/ubuntu/android-x86/ | |
#To download files from remote server | |
$ scp -i /home/huber/Desktop/TechnicalInformation/HuberFlores/Ireland/pk-huber_flores.pem -r ubuntu@ec2-xxx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com:/home/ubuntu/android-x86/code.zip /home/huber/Desktop/code.zip |
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 | |
# | |
###Download JDK latest version | |
Upload the files to the server | |
put /home/huber/setups/jdk-6u22-linux-i586.bin.zip /home/murakas/huber/software | |
put /home/huber/setups/apache-tomcat-7.0.4.tar.gz /home/murakas/huber/software | |
put /home/huber/setups/jdk-6u22-linux-x64.bin /home/murakas/huber/software |
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
###DO NOT delete header### | |
# | |
# author Huber Flores | |
# | |
#clear screen | |
> command | |
Ctrl + l | |
> |
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; |
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 | |
# | |
> using 1:3 | |
X Y1 Y2 | |
1 10 100 | |
2 20 200 | |
... | |
#takes 1 as x axis, and 3 as y axis |