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
https://api.datamarket.azure.com/Bing/Search/v1/Image?Query=%27playstation%27&ImageFilters=%27Size%3AWidth%3A300%2BSize%3AHeight%3A300%27&$format=json |
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
Making a hangman game, woohoo | |
#Get input and convert to list | |
word = raw_input("Please input your word: "); | |
word = list(word); | |
guesses = 5; | |
#Setting up our hashes list | |
guessingWord = len(word)*["*"]; |
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
# Pi2Go Motor Test | |
# Moves: Forward, Reverse, turn Right, turn Left, Stop - then repeat | |
# Press Ctrl-C to stop | |
# | |
# Also demonstrates writing to the LEDs | |
# | |
# To check wiring is correct ensure the order of movement as above is correct | |
# Run using: sudo python motorTest.py | |
import pi2go, 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
https://www.youtube.com/watch?v=byeqpfBUyaU |
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
$n | |
[1] 573 | |
$cluster.number | |
[1] 3 | |
$cluster.size | |
[1] 112 310 151 | |
$min.cluster.size |
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
d = dist(cl, method = "euclidean") | |
fit = hclust(d, method = "ward") | |
plot(fit, labels=rownames(d), xaxt = "n") | |
groups = cutree(fit, k=3) | |
x = rect.hclust(fit, k=3, border="red", cluster = groups) |
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
Removed comments for dissertation. | |
dataSmall <- read.delim("//Users//jamie//Programming//R//Dissertation//SmallData.out", row.names = 1) | |
dataBig <- read.delim("//Users//jamie//Programming//R//Dissertation//LargeData.tab", row.names = 1) | |
dataComplete <- merge(dataSmall,dataBig,by="row.names") | |
dataComplete[1]<-NULL |
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
check = as.factor(groups) | |
#fit tree model with training data | |
tree_model = tree(check~., training_data) | |
plot(tree_model) | |
text(tree_model, pretty=0) | |
#model precision check | |
tree_pred = predict(tree_model, testing_data, type="class") |
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
acm | |
siteseerx | |
research gate |
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.Scanner; | |
public class Solution { | |
public static void main(String[] args){ | |
Solution x = new Solution(); | |
int[] A = {-7,1,5,2,-4,3,0}; | |
System.out.println(x.solution(A)); | |
} |
NewerOlder