Photo

Test Yourself Big O - Test
0 notes
Text
Big 0 - Exercise 2 : Cracking the coding interview
Big 0 – Exercise 2 : Cracking the coding interview
* Created by tommyacton on 22/11/2017. */ public class Ex2 { public static int pairSum (int a, int b){ return a + b; } public static int pairSumSequence (int n ){ int sum = 0 ; for( int i = 0; i < n; i ++){ sum += pairSum(i, i + 1); } return sum; } public static void main (String [] args){ int simpleAdd = pairSum(2,4); System.out.println(simpleAdd); int s = pairSumSequence(2);…
View On WordPress
0 notes
Text
Big 0 - Exercise 1
Big 0 – Exercise 1
/** * Created by tommyacton on 21/11/2017. */ public class Ex1 { public static int sum(int n) { if (n <= 0) { return 0; } return n + sum(n - 1); } public static void main(String[] args) { int s = sum(5); System.out.print(s); } }
View On WordPress
0 notes
Text
Deaio 101
Today’s I worked on some design on a app that might just change the world
View On WordPress
0 notes
Text
Clean Code (Chapter 2) - Naming your variables/methods
Clean Code (Chapter 2) – Naming your variables/methods
Make Meaningful Distinctions Tell me the difference between public void s.play(){ } vs public void sound.play(){ } Do you see what is wrong with the naming convention here. Yes? See, Having the method name s.play() doesn’t give other developers what the method does. But the developer that wrote the method knows that it means. As developers this is one of the biggest mistakes we do, give bad…
View On WordPress
0 notes
Text
Cant download google-services.json
If you cant download your google fire-base “google-services.json” file and you receive or see this error on your screen )]}’ {“code”:7,”errorSpace”:”generic”,”placeholders”:{“trackingId”:”7798309476173440794″},”status”:403,”message”:”backend error This error typically means that you have signed-in to more than one google account. Simply sign-out to the account that you are not using at the…
View On WordPress
0 notes
Text
Access array value with index in Handlebars and Node Js
Access array value with index in Handlebars and Node Js
var express = require('express'); var router = express.Router(); /* GET home page. */ router.get('/', function(req, res, next) { res.render('index', { title: 'Thomas',condition: true, anyArray: ["First","2nd","4rth"]}); }); module.exports = router;
{{title}} Welcome to {{title}} {{#if condition }} Condition is true {{else}} Condition is false {{/if}}
{{#if anyArray}}
{{any…
View On WordPress
0 notes
Text
Homework 1 - CS 61B
Homework 1 – CS 61B
Hello Guys Here is my solution the the first homework problem CS 61B Problem 1 ——— Write a program that reads a String from the keyboard. The program should then construct a URL for http://www.X.com/, replacing X with the String read in, and print the first five lines of the Web page at that URL in REVERSE ORDER; i.e., the fifth, fourth, third, second, and first lines. We’ve already created a…
View On WordPress
0 notes
Text
Exams
Hey i'm in my room listening to Phantom - Scars ( Discovered her music today ). I have 4 exams coming up in less than a moth..! I know i will pass it and i will put in the work, but its just that i haven't done exams in such a long time..
"But like the Law Of Attraction States you can accomplish what ever you set your mind to.."
http://www.youtube.com/watch?v=MPnudujlBZI
Night People
(02:42am : 23/12/2012)
SOON TO CHANGE THE WORLD
THOMAS ACTON
0 notes
Video
tumblr
Hex code baby. The code starts from 1 and increasing by 2.
0 notes
Conversation
Hey Guys
Hey guys whats up, just saying hi to all of the computer science people out there. This is my new blog, it will mainly consist of computer science information, pics, videos, codes, ideas, etc. Please reply if your reading this say hi, comment or follow
:)
Thanks
Tommy boi
1 note
·
View note